Configuring a Script to Launch an Application that Uses the Java Network Launching Protocol (JNLP)

Applications that start using the Java Network Launching Protocol (JNLP) require additional configuration in Silk Test Workbench. Because these applications are started from the Web, you must manually configure the application configuration to start the actual application as well as the application that launches the "Web Start". Otherwise, the visual test will fail on playback unless the application is already running.

  1. If the test fails, because Silk Test Workbench cannot start the application, edit the application configuration.
  2. Open the script in which you want to include the code to start the application.
  3. In the Properties pane, navigate to the Application Configurations category.
  4. Double-click on the application configuration that you want to modify. The Edit Application Configuration dialog box appears.
  5. Edit the base state to ensure that the Web Start launches during playback.
    1. Click Edit.
    2. 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
    3. 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"
    4. Click OK.
  6. 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.