Configuring a Test Application that Uses the Java Network Launching Protocol (JNLP)

This functionality is supported only if you are using the Open Agent.

Applications that start using the Java Network Launching Protocol (JNLP) require additional configuration in Silk Test Classic. 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 test will fail on playback unless the application is already running.

  1. Record a test case for the application that you want to test.
  2. In the INC file, replace the const sCmdLine = value with the command line pattern that includes the absolute path to javaws.exe and the URL to the Web Start.

    For example, to use the SwingSet3 JNLP application, type const sCmdLine = "%ProgramFiles%\Java\jre6\bin\javaws.exe"

    When you replay the test case, the JNLP application starts as expected.