如何以编程方式启动 JNLP 应用程序?

发布于 2024-11-30 10:20:07 字数 88 浏览 4 评论 0原文

我有一个正在运行的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

廻憶裏菂餘溫 2024-12-07 10:20:07

您可以使用 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.

塔塔猫 2024-12-07 10:20:07

要以编程方式启动 JNLP 应用程序(Linux),您可以执行以下操作:

public static void main(String[] args) throws IOException, InterruptedException {
    String[] cmd = {"/usr/java/jdk1.6.0_17_limpo/jre/javaws/javaws", "/opt/exata/projetosNB/InterfaceVisualizador/dist/launch.jnlp"};
    Process p = Runtime.getRuntime().exec(cmd);
}

To start an JNLP application programatically(Linux) you could do something like this:

public static void main(String[] args) throws IOException, InterruptedException {
    String[] cmd = {"/usr/java/jdk1.6.0_17_limpo/jre/javaws/javaws", "/opt/exata/projetosNB/InterfaceVisualizador/dist/launch.jnlp"};
    Process p = Runtime.getRuntime().exec(cmd);
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文