Configuring Silk4J 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 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.
  1. If the test fails, because Silk4J cannot start the application, edit the application configuration.
  2. Click the drop-down arrow next to the Silk Test toolbar icon Toolbar and choose Edit Application Configurations. The Edit Application Configurations dialog box opens and lists the existing application configurations.
  3. 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.
  4. 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.