Issue recording Java over HTTP LR 12.55

  • Questions
  • Issue recording Java over HTTP LR 12.55
Question ID: 108396
0
0

Good afternoon,
I have a Java Application which is launch via WebStart and application.jnlp. The web page opens and the Java Application opens in a separate window as expected. We enter our login information and the system attempts to connect. The application shows a connection error. We are recording the Java Application on an HTTP port we specified of 8888. LoadRunner is being used as a proxy to capture the traffic.

LoadRunner Recording shows the first error as:
[Proxy Recording.Error (1920:2160)] Exception is caught while trying to connect to https://urs.microsoft.com:443, message=Authentication failed because the remote party has closed the transport stream.
[Proxy Recording.Error (1920:2160)] Exception is caught while connecting to , message=Stream was not readable.
[Proxy Recording (1920:2174)] Empty http command received from client’s ssl connection

The second error is:
[Proxy Recording.Error (1920:19e0)] Exception is caught while trying to connect to https://iecvlist.microsoft.com:443, message=Authentication failed because the remote party has closed the transport stream.
[Proxy Recording.Error (1920:19e0)] Exception is caught while connecting to , message=Stream was not readable.

Any suggestions would be greatly appreciated.

Thank you,
Paul

Marked as spam
Posted by (Questions: 1, Answers: 0)
Asked on May 10, 2018 6:53 pm
74 views
Answers (3)
0
Private answer

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

Marked as spam
Posted by (Questions: 151, Answers: 15)
Answered on October 16, 2018 2:01 pm
0
Private answer

Also See:

To record the application, use a batch file as explained in Document ID KM185190- How to record the Corba/RMI protocol using a batch file or in listener mode (You will need to login to Micro Focus Support) https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM185190
and

From

Marked as spam
Posted by (Questions: 12, Answers: 363)
Answered on October 16, 2018 2:19 pm
0
Private answer

and this article

https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM169714?lang=en&cc=us&hpappid=202392_SSO_PRO_HPE

Marked as spam
Posted by (Questions: 12, Answers: 363)
Answered on October 16, 2018 2:21 pm