Testing Mobile Native Phone applications using Load runner.




Recording Mobile Native Phone application using LoadRunner.

Select MobileApp(HTTP/HTML) protocol from the list of protocols available in LoadRunner v11.52 or higher and proceed with the below steps specified
  • Mobile App (HTTP/HTML): A protocol enabling you to develop scripts using mobile devices or device emulators communicating with servers over HTTP. You can record network traffic into a capture file (PCAP file) and create a VuGen script. Additionally, you can use a mobile emulator on your VuGen machine to develop your scripts.
Instead of using phone emulator that can run on windows, we can capture the network traffic to generate the vugen script.

Find the below link to Setup an Ad hoc connection to connect the Phone to the vugen machine to capture the network traffic.


1.     Mobile App (HTTP/HTML) protocol.
Using Record and Analyze Traffic – Use Mobile sniffer agent to capture traffic and then analyze recording option we can capture the network traffic
 


Click on next to go to below screen   
 



  • Recording Traffic on local host: We can capture traffic to our local computer by connecting your mobile device to your local host. Clicking Connect will launch the mobile sniffer agent. Continue the Record and Analyze method using the Recording Wizard.
  • Host URL: The URL where sniffer agent resides.
  • Click on connect
 



  • Record Network Interface: Select the network adapter on which you want the mobile agent to listen.
  • Click on Start Recording and perform the business process on the Phone while Load runner records the traffic.


  •  Once business process is completed stop recording. Then a pop up comes to save the recorded traffic.



  • Save it as .PCAP file and use this file to generate the script.


  • Follow the Generating script using the captured file steps to generate the script.
Filter based on server side: The IP address and port of the server whose traffic you want to examine

Filter based on client side: The IP address of the client whose traffic you want to examine

Click on Finish to generate the script from the captured file

The generated script looks like web HTTP/HTML protocol script. All the enhancements like parameterization, correlation, transaction points, verification checks etc., can be done to the script.