Load Runner with Chrome browser

2,553 views
Skip to first unread message

LNP Student

unread,
Mar 9, 2011, 5:59:12 PM3/9/11
to LoadRunner
Hello All
I need some urgent help. Hope some one will take some time to help me
out. I need to test an mobile application which only supports chrome
and safari browser. That means when I try to browse the application
with any other browser, the page does not load properly. It is loading
properly only with chrome.

I can simulate request by modifying the user agent. But how can I
record the application/script through chrome? As it is not loading
properly with IE or Firefox. I tried to use Chrome ( from recording
option : application type: win32 Applications, Program to record :
path to chrome), but it does not open the browser or do anything.

Can you any please suggest if there is any workaround with this?
Appreciate your help-

Thanks
Jay

James Pulley

unread,
Mar 10, 2011, 7:32:12 AM3/10/11
to lr-loa...@googlegroups.com
First, let's establish the value of the answer. How long have you been
trying to solve this problem?

Thanks
Jay

--
You received this message because you are subscribed to the Google
"LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

Sumanth Reddy

unread,
Mar 9, 2011, 11:47:35 PM3/9/11
to lr-loa...@googlegroups.com
HI,

Record a script on any browser and change the user agent in run time setting to user agent of browser you want to.

For Mobile each has different user agent such as IPhone,BB etc have their  .Try that if you requirement needs.

For Iphone on Firefox you can add "Mozilla/5.0 (iPhone; U; CPU like Mac OS X; en) AppleWebKit/420+ (KHTML, like Gecko) Version/3.0 Mobile/1A543a Safari/419.3" and change it similarly based on you requirement.

Google Chrome user agent is "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.X.Y.Z Safari/525.13."

Guys,

Correct me if am wrong.

Thanks,
Sumanth

Sagar Aggarwal

unread,
Mar 10, 2011, 12:58:50 AM3/10/11
to LoadRunner
I think you can record your application using IE that open up while
recording in Vugen.
but while replaying your script you can change the User- agent of
Chrome browser..
LR will send request as per chrome.

User-agent for chrome is Mozilla/5.0 (Windows; U; Windows NT 5.1; en-
US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C Safari/
525.13
PFB the link for the same.
http://www.mattcutts.com/blog/google-chrome-user-agent/

I am a newbie so pardon my ignorance if i am wrong.

Guigo

unread,
Mar 10, 2011, 1:43:30 AM3/10/11
to LoadRunner
Open the browser manually and capture all the information with
WireShark into a pcap file.

Go to VuGen and create a Multi-Protocol Web Services+Web(HTTP/HTML)
script. (Probably only with Web Services will work, haven't tried it
yet.

Vuser -> Analyze Traffic
Click Next
Set all the needed options (specify the server with the IP of your Web
Server, you will probably need to open the pcap file and see what IP
you are accessing)
Click Finish.

That must do the trick here.

ravidev gill

unread,
Mar 10, 2011, 6:36:14 AM3/10/11
to LoadRunner
Record the communication between the desired browser and server using
LR proxy (edit browser proxy settings) and or any other proxy software
in which you can log the requests and responses, then just recreate
the behavior manually in LR.

LNP Learner

unread,
Mar 10, 2011, 9:41:53 AM3/10/11
to lr-loa...@googlegroups.com, ravidev gill
Thank you everybody for your suggestion.
I opened a case with HP and got the solution. Actually, I was not able to browse the application with any other browser other than Chrome. As I am using LR 9.5.2 version, I had to install 2 patches provided by HP to resolve my recording issue with Chrome. Here is the solution given by HP:

Install patch that allows to record IE8 on LR 9.5.2, you can download the file from the following link

http://support.openview.hp.com/selfsolve/document/KM1012898?searchIdentifier=102ece05:12e8ff1cfd4:3f70&resultType=document&documentURL=KM1012898&resultsURL=/selfsolve/patches&allowReturn=true

 

Please perform the following steps:

1.     Go to the <LoadRunner (or Vugen) folder>\bin

2.     Backup bbhook.dll

3.     Download the attached zip: bbhook

4.     Extract it over the bin folder


Thanks Again for your suggestion and time-

LNP Student

James Pulley

unread,
Mar 10, 2011, 10:06:18 AM3/10/11
to lr-loa...@googlegroups.com

Patches not needed.   Out of the box LoadRunner can record Chrome, Safari and Opera even if they are running on Macs, LINUX or UNIX Workstations.

 

How?

 

LoadRunner VUGEN has the ability to act as a man-in-the-middle proxy for conversations between unsupported applications/hosts for recording in addition to the more natural application integration with IE.   This proxy recording mechanism is documented in the manuals.   This path should provide insight (and did not require a call to HP support or the application of a patch)

  LoadRunner Virtual User Generator Users Guide ->

  Working with VUGEN->

  Configuring the Port Mappings->

  Adding a new Server Entry->
  Traffic Forwarding.

 

James Pulley, http://www.loadrunnerbythehour.com/PricingMatrix

Krishnakanth PPS

unread,
Mar 13, 2011, 12:55:11 AM3/13/11
to lr-loa...@googlegroups.com
This is interesting. Did not know this.

nyairh

unread,
Mar 13, 2011, 8:59:08 AM3/13/11
to LoadRunner
There's also a special fix for this on top of LoadRunner 11.
Just open a support case with HP to receive it.

Yair

Praveen Dama

unread,
Dec 30, 2011, 4:51:22 AM12/30/11
to lr-loa...@googlegroups.com
Hi ,

Can you please attach below file and send it to me. I have a problem with chrome.

Thanks,
Praveen Dama

James Pulley

unread,
Dec 30, 2011, 9:12:33 AM12/30/11
to lr-loa...@googlegroups.com

Uhhhmmmm, please disregard the request from this user from Praveen Dama.

 

This patch has to come from HP directly.   This is why you pay for a support and maintenance agreement.  

 

From: lr-loa...@googlegroups.com [mailto:lr-loa...@googlegroups.com] On Behalf Of Praveen Dama
Sent: Friday, December 30, 2011 4:51 AM
To: lr-loa...@googlegroups.com
Subject: Re: Load Runner with Chrome browser

 

Hi ,

Reply all
Reply to author
Forward
0 new messages