如何以编程方式启动 JNLP 应用程序?
我有一个正在运行的 JNLP 应用程序,但想添加一些端到端冒烟测试。
是否可以通过给定 URL 来下载、启动和以编程方式操作 JNLP 应用程序?
I have a working JNLP application, but would like to add some end-to-end smoke test.
Is it possible given an URL to download, start and programatically manipulate a JNLP application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用 javaws 工具 ( JDK 的一部分)来启动 WebStart 应用程序。要以编程方式操作它,您可以使用任何模拟用户输入的测试工具和框架。
You can use the javaws tool (part of the JDK) to start a WebStart app. To programmatically manipulate it, you can use any of a number of testing tools and frameworks that simulate user input.
要以编程方式启动 JNLP 应用程序(Linux),您可以执行以下操作:
To start an JNLP application programatically(Linux) you could do something like this: