Code Generation Issue - Mobile Http/Html protocol - iPad application

19 views
Skip to first unread message

Gaurav Rathor

unread,
Jan 8, 2013, 10:50:57 PM1/8/13
to LR-Loa...@googlegroups.com
Hi James/Shane/Experts/Group Members,
 
I am currently involved in performance tesing of an iPad Native Application. I am using Mobile (Http/Html) protocol capabilty provided in LR 11.50 to acheive this but i am unable to generate loadrunner script. I am receiving a message as "Analyzing traffic file... Please wait" and then nothing happens after that. (waited for more than 1 hr but still seeing this message.. this according to me is a long time to analyse a pcap file that is just 64KB in size)
 
I have ensured that i performed all the pre-requisites before generating a PCAP file as suggested in Vugen user guide.
 
Steps that we performed in order to record the script for iPad app using Mobile Http/Html protocol:
 
1. Installed Vugen's mobile agent sniffer (WinPcap_4_1_2.exe) on localhost (my laptop which has loadrunner 11.50)
2. Configured localhost as hotspot using Connectify (as i was encountering some problems configuring hotspot via conventional way  i.e creating ad-hoc network). I made sure that hotspot is correctly configured .( connected the device to localhost,selecting hotspot network in device and checked by opening a website in device's browser.)
3.  Selected mobile http/html protocol and clicked "Record & Analyse traffic" to generate the pcap file. - This step was successful.
4. After genration of PCAP file, i selected the PCAP file generated and gave the IP of client (ip of the iPad) to start generation of loadrunner script. (Note: I ensured that traffic was captured in PCAP file as i opened packet tranferred between application and my device "IP of my device was in the PCAP file").
 
Result - Getting "Analyzing traffic file... Please wait" and then no code is being generated. Please find attached snapshot. "CodeGenerationIssue.docx"
 
I browsed all over the net to see if someone encountered this problem before but had no luck.
 
Request you all to help me understand where i am going wrong.
 
--
Thanks,
Gaurav
CodeGenerationIssue.docx

James Pulley

unread,
Jan 9, 2013, 1:30:27 PM1/9/13
to LR-Loa...@googlegroups.com

I prefer the proxy model, which I consider easier to implement if you are using Connectify as a proxy for recording

 

Step 1, change your recording model to the old recording engine.   You may be asked to restate your VUGEN, or (at the minimum) create a new virtual user which takes the old recording engine options.

 

Step 2, set your recording options to record an external application

 

Step 3, State recording.   You will have a dialog present which will instruct you to set your proxy for your application to the host for VUGEN and port 7777.

 

Step 4, on the iPAD, in the settings for your connectify WIfi connection, set your HTTP proxy (assuming that your application uses HTTP/XML for communication) to the host IP address for your VUGEN/Connectify host and port 7777.    This should trap all communications from your iPad browser or for any application which is leveraging HTTP as the basis for communication to the next upstream host.

 

Step 5, As you walk through the application on your iPad be sure and mark transactions and introduce comments into your recording session on VUGEN just as if you had the application on your own workstation.

 

Notes:  

a)      If this is an application running in Mobile Safari, then you can use Safari for windows, adjust your user agent string and window size to allow you to record on the same VUGEN host without having to involve an iPad or iPhone for recording

b)      The proxy recording model has been tested with the following conditions

a.       Linux workstation (Chrome|Firefox|opera) to VUGEN proxy recording across a live network

b.      Unsupported browser (Safari, Opera, …) on local machine with VUGEN

c.       Mobile Chrome on Android connecting across a WiFi network and across  Connectify

d.      Mobile Safari on iPhone|iPod|iPad connecting across WiFi and Connectify

 

I cannot speak to whether this would be an officially supported deployment model for recording mobile applications by HP, but the proxy model for recording has worked for off-host application recording across HTTP since version 5.x of LoadRunner…..and that is going back almost 14 years now.

 

‘Pulley

 

 

 

From: LR-Loa...@googlegroups.com [mailto:LR-Loa...@googlegroups.com] On Behalf Of Gaurav
Sent: Wednesday, January 09, 2013 11:39 AM
To: LR-Loa...@googlegroups.com
Subject: Re: Code Generation Issue - Mobile Http/Html protocol - iPad application

 

Hi James/Shane/Experts/Group Members

 

Can anyone kindly help/suggest in below issues that i am facing. Please let me know incase more details are required.

 

Thanks in advance.

 

Regards,

Gaurav

--
 
 

Reply all
Reply to author
Forward
0 new messages