Applications that start using the Java Network Launching Protocol (JNLP) require additional configuration in
Silk4J. Because these applications are started from the Web, you must manually configure the application configuration to start
the actual application and launch the "Web Start". Otherwise, the test will fail on playback unless the application is already
running.
-
If the test fails, because
Silk4J cannot start the application, edit the application configuration.
-
Click
the drop-down arrow next to the
Silk Test toolbar icon
and choose
Edit Application Configurations.
The
Edit Application Configurations dialog box opens and lists the existing application configurations.
-
Edit the base state to ensure that the Web Start launches during playback.
-
Click
Edit.
-
In the
Executable Pattern text box, type the absolute path for the
javaws.exe.
For example, you might type:
%ProgramFiles%\Java\jre6\bin\javaws.exe
-
In the
Command Line Pattern text box, type the command line pattern that includes the URL to the Web Start.
"<url-to-jnlp-file>"
For example, for the SwingSet3 application, type:
"http://download.java.net/javadesktop/swingset3/SwingSet3.jnlp"
-
Click
OK.
-
Click
OK.
The test uses the base state to start the web-start application and the application configuration executable pattern to attach
to javaw.exe to execute the test.
When you run the test, a warning states that the application configuration EXE file does not match the base state EXE file.
You can disregard the message because the test executes as expected.