Thursday, 20 February 2014

Issues while recording with a batch file

Problem Details:- We are still facing issues while recording a script using a batch file.

Kindly assign this ticket to Paul Thompson and Jorge Osorio.

Please refer to the recently closed HP Ticket 4627037923


Problem Solution:-  I understand that Sophos has been removed from the machine.

Could you please create a process Explorer log for the .bat file, application under test and Vugen?

a. Please find below where you can download the process explorer. It is a third party executable (no need for installation.)
http://www.microsoft.com/technet/sysinternals/Utilities/ProcessExplorer.mspx

b. Bring up the above application. Go to View -> Select Columns -> Dll -> Check Description, Version, Time Stamp, Name, Path, Company Name and click on OK.

c. go to View -> Lower Pane View and select DLLs instead of handles. This should show the list of dlls in the lower panel.

d. Bring up vugen and the application. Select the application in process explorer.

e. Please sort the list by Path, then Go to File ->Save -> Save this file as application.txt.

f. Do the same thing for vugen.exe and the .bat file. Save the files as Vugen.txt and bat.txt and send the files to us.

More Information:-

Next, set the Application type to "Listener" and double-click on the application batch file that you have created in step 2 in order to start the Java application. You can then proceed in your business process to record the traffic.

More Information:-

 

I expect the TeamCenter.exe file to be under the process tree of Vugen, command prompt and java.exe like the following:

++Vugen.exe
++cmd.exe
++java.exe
++TeamCenter.exe

I seems like TeamCenter.exe is a java based application.

The attached batch file that will allow us to make sure we have the right environment configuration.

1- Please modify that batch file JavaEnv.bat in order to match your jdk directory, LoadRunner directory and add all of you application jar files required in order to start the application.

2- Create another batch file that will allow you application to start. This file will call the application client through the command line with the -Xrunjdkhook -Xbootclasspath options. For instance the batch file can include the following:
java -Xrunjdkhook -Xbootclasspath/p:c:\LoadRunner\classes;c:\LoadRunner\classes\srv JavaMainClass.

3- To start recording, run the JavaEnv.bat file. Once you invoke it, vugen will come up make sure the following options are set:

Under Recording Properties > Recording Options

Recorded protocol: RMI
Extensions list: JDNI
Use DLL hooking to attach LoadRunner support: Checked
Load parent class before class: Checked
Use _JAVA_OPTION flag: Unchecked
Insert functional check: Unchecked
Bytes as characters: Checked
Unreadable strings as bytes: Checked
Byte array format: Regular
Record LoadRunner callback: Checked

Under Recording Properties > Log Options
Log Level: Debug

Next, set the Application type to "Listener" and double-click on the application batch file that you have created in step 2 in order to start the Java application. You can then proceed in your business process to record the traffic.

7 comments:

  1. Hi, were you able to configure Teamcenter and load runner?. We are getting the similar sort of error with Vugan.

    ReplyDelete