Highlighted
Contributor.
Contributor.
8294 views

Java applet not recording in LoadRunner

Jump to solution

Hi All,

 

I'm trying to record a web based application which launches a java applet and after performing certain actions and closing the applet control returns back to the same page(web browser) from where it was invoked. The application uses web protocol and even is able to launch the applet and work further on it successfully, however after launching the applet LR is not recording any action that has performed on the applet. In turn when the control is back to the browser, VuGen is recording the remaining steps(i.e.. Logout).

 

I am using LR version: 11 and IE 7.0 on Windows XP. The protocol I have used is Web(Http/html) in both Html and URL modes as suggested by developer.

 

Thanks in advance

 

Regards,
Ramesh

 

 

 

P.S. This thread has been moevd Performance Center Support and News Forum to LoadRunner Support Forum - HP Forum moderator

Tags (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Contributor.
Contributor.

Hi All,

 

My issue was resolved by HP person. He found in the recording log of vugen that my application was  requesting connection to some remote servers. So he added the ip addresses and port numbers of these remote servers under the Recording Options -> Port Mappings -> New Entry. He placed the remote server ip address in the Target Server list box and port number in the Port Number field and selected Direct from the Record Type List box.

 


Now Vugen was able to successfully recording the actions performed on the Java Applet. Thanks HP 🙂

 

Thanks & Regards,

Ramesh

View solution in original post

9 Replies
Highlighted
Absent Member.
Absent Member.

It may mean the applet does not use web protocol and you would need to use java record and replay for the applet. Or java over http.

 

Regards,

Mario M.

HP LR/PC Support

If you are customer you can try posting on our internal forums for more personalized support.

LoadRunner:
http://h30499.www3.hp.com/t5/LoadRunner-Support-Customer/bd-p/loadrunner-support-customer-forum

Performance Center:
http://h30499.www3.hp.com/t5/Performance-Center-Support/bd-p/performance-center-support-customer

How to:
http://www.youtube.com/watch?v=4ChlysWupWM

If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
0 Likes
Highlighted
Contributor.
Contributor.

Hi Mario,

 

I have tried with Java Over Http protocol and it is also generating the script similar to Web protocol only(i.e... Generating script for actions performed on browser but not for actions on Applet). Java Record Replay protocol is not at all working.

 

Developer mentioned  that the applet uses normal web protocol only for  communication with the  server.

 

FYI, Sometime back(2 years), somebody created the script on the same application and he is not available now. That script is working fine when replaying and I'm able to see the normal Web protocol options only in its Recording Options.

 

Thanks,

Ramesh

0 Likes
Highlighted
Acclaimed Contributor.
Acclaimed Contributor.

There may be two reasons - the applet is not using http protocol for communication or the Java Serialized objects are not wrapped around http and something else.

Tags (1)
0 Likes
Highlighted
Contributor.
Contributor.

Hi All,

 

My issue was resolved by HP person. He found in the recording log of vugen that my application was  requesting connection to some remote servers. So he added the ip addresses and port numbers of these remote servers under the Recording Options -> Port Mappings -> New Entry. He placed the remote server ip address in the Target Server list box and port number in the Port Number field and selected Direct from the Record Type List box.

 


Now Vugen was able to successfully recording the actions performed on the Java Applet. Thanks HP 🙂

 

Thanks & Regards,

Ramesh

View solution in original post

Highlighted
Absent Member.
Absent Member.

The following fix worked for me:

 

  • On Recording Options in VUgen goto  Network-Port Mapping and select WinInet on Capture Level.
  • (Optional). To prevent memory segmentation fault, as an option, go to HTTP Properties - Advance and uncheck box "Reset Context For each Action"
0 Likes
Highlighted
Valued Contributor.
Valued Contributor.

Hi All,

 

I tried the all the above options. But still i could not proceed with.

Empty script was generated after applet loading.

Please let me know for any suggestions.

0 Likes
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Hi Stazz,

 

The original issue has been solved. I think you'd better create a new topic and explian your issue with details.

 

Thanks,

Kert

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Hi Ramesh,

 

Currently I am facing the same issue and as you have mentioned, I am also seeing multiple IP Address are getting used. I am trying to set those IP and Port number in the recording options but still not able to process. Can you please tell me actually how to know which IP and port needs to be given in the recording option.

 

Need your help on high priority.

 

Thanks,

Tanaji

0 Likes
Highlighted
Contributor.
Contributor.

Hi Tanaji,

 

Please see the attachment of my post. I have highlighted the server ip address and port number in that screenshot which I have added in my recording options.

 

Thanks & Regards,

Ramesh

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.