How to run a JNLP application programmatically?

I have a working JNLP application, but I would like to add some end-to-end smoke test.

Is it possible if the url loads, runs, and programmatically manages the JNLP application?

+8
java integration-testing jnlp testing
source share
2 answers

To run the JNLP application programmatically (Linux), you can 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); } 
+2
source share

You can use the javaws tool (part of the JDK) to launch the WebStart application. To programmatically manage it, you can use any of several testing tools and frameworks that simulate user input.

+3
source share

All Articles