以编程方式运行 Swing 应用程序(远程类)
我有一个稍微复杂的情况,我没有源代码(或编译的类)我试图自动运行的 swing 应用程序。
我将尝试在此应用程序上执行一系列任务,按一些按钮,单击某些部分等。我希望能够以编程方式执行此操作。
我遇到的每一个 Swing 调试器/机器人都希望您拥有正在启动的类,并且调试器与该类一起启动。
这里的问题是我的应用程序是通过启动 JNLP 应用程序来启动的,该应用程序对我进行身份验证(我必须输入用户名和密码),然后在远程服务器上运行一堆类。 Swing 应用程序启动。
我希望现在可以附加到 swing 应用程序并以编程方式运行它。抱歉,这看起来太复杂了,但这就是这里的情况...
也许根本没有办法做到这一点,如果是这种情况,也请告诉我...
I have a slightly complicated case where I do not have source code (or the compiled class) the swing application that I am trying to run automatically.
I will try to do a series of tasks on this application, press some buttons, click on some parts etc. I want to be able to do this programatically.
Every single Swing debugger/robot I have come across wants you to have the class you are launching and the debugger launches together with the class.
Problem here is my application is launched by me launching a JNLP application, which authenticates me (I have to enter username and password), then runs a bunch of classes on a remote server. And the Swing application gets launched.
I want to be at a point where I can now perhaps attach to the swing application and run it programatically. Sorry this seems too complicated, but this is the scenario here...
Perhaps there is no way to do it at all, please tell me so also if that is the case...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只知道在哪里单击,那么创建自己的机器人应用程序就不成问题。它通常只需要一个启动标准 - 实际程序在屏幕上的位置。
这可能会帮助您开始:
If you just know where to click it's not a problem doing your own Robot application. It normally only needs a start criteria - where the actual program is on the screen.
This might help you get going: