Hello Paul,
Java Web Start and JNLP environments can be very challenging/difficult to script.
Micro Focus has stated the following in regards to scripting Java Web Start and JNLP :
From Document ID (KM169714):
Support for Java Web Start in VuGen / LoadRunner-Performance Center
Java Web Start is provided by Sun Microsystems.Java Web Startcould have a HTTP or aJava Network Launching Protocol (JNLP)implementation. LoadRunner-Performance Center will capture HTTP communication.
JNLP Implementation:
Verify if you can run the application outside of Java Web Start. If so, please contactHP SoftwareSupport for the RMI/Corba qualifier to verify the support first before attempting to record.
Using Java Web Start technology, standalone Java software applications can be deployed with a single click over the network. Java Web Start ensures the most current version of the application is deployed including the correct version of the Java Runtime Environment. All the jar files are downloaded to the cache and the environment is setup on the fly by Java webstart -- hence the environment for recording using VuGen is not set correctly by default.
Follow these steps to do the recording:
1. Create a folder ''jars'' in a temp folder to save all the application specific jar files.
2. Follow the procedure below to download all the jar files to the above folder:
a. Open the .jnlp file associated with the application launch.
b. Locate thetag in the file. Link to all the jar files will be within this tag.
c. Open a browser. Paste the.jar
d. Save the jar in the above location when asked.
e. Do the same for all the jar files.
SUMMARY OF ABOVE: Determine all of the jar files the app is using, and put them in a temporary folder (preferably in a path without spaces -- like c:tempjars etc). If the jnlp file is not available, use any other means to determine which jar files are in use, and copy these application's jar files to a temp directory.
Follow theSystem Configurationas mentioned below:
A. You will need the JRE and JDK 32 bit version of both, installed on your client machine (the same version used by the app) -- it is preferable to install LoadRunner-Performance Center and Sun'sJava Development Kit (JDK)to a location using a path without spaces.
Example:C:LoadRunneror C:JDK but not C:Program FileLoadRunner
B. Setup the System PATH as follows:
i. Right click on My Computer > Properties > System Properties > Advanced > Environment Variables
ii. Append LoadRunner and JDK to the path. The information should be entered in the following order ;note that the order is very important:
--[JDK]bin
--[LoadRunnner]bin
--[JDK]jrebinclient (** For JDK 1.5, the Classic folder is replaced by the Client folder)
-- The rest of the PATH for your machine
Example:PATH=C:JDKbin;C:LoadRunnerbin;C:JDKjrebinclient
iii. Click [OK] and close the System Properties Window.
C. Setup the System CLASSPATH as follows:
i. Right click on My Computer > Properties > System Properties > Advanced > EnvironmentVariables
ii. Add LoadRunner and JDK to the CLASSPATH.The informationmust be entered in the following order:
--[LoadRunner]classes
--[LoadRunner]classessrv
--Any files needed for your Java application/JAR files stored in temp directory & collected in step (2) above.
--jrelibrt.jar (** JDK 1.2.2 and above only)
--libclasses.zip (** Lower than JDK 1.2.2 only)
Example:CLASSPATH=C:LoadRunnerclasses;C:LoadRunnerclassessrv;C:JDKjrelibrt.jar
iii. Click and close the System Properties Window.
D. How to verify your Environment setup in LoadRunner
i. After setting up the machine as specified in the System Configuration section above, run a ''blank''Java Virtual User in Virtual User Generator (Vugen):
Create a new Java Record and Replay script, and when you start recording, immediately click ''cancel'' to the ''Start Recording'' dialog box. Replay this script --there shoul