HP LoadRunner Mobile Recorder – a short tutorial

This post was written by David Bekel from the LoadRunner R&D team

 

The recently-released HP LoadRunner Mobile Recorder is an Android application that enables you to record all of the network traffic of your native, browser-based or hybrid mobile web applications to a capture file. The file is then used to generate a LoadRunner script.

 

Before you use the LoadRunner Mobile Recorder, here are a few important notes:

  • You can only install the application on a rooted device
  • The application has been tested on a Samsung Galaxy device with the Android OS version 4.0.3 to 4.2.2

Here are four simple steps to create a VuGen script that you can use in your LoadRunner scenarios:

 

1. Download and install the application

Download and install the LoadRunner Mobile Recorder from the Google Play Store.

 

2. Record the business process

We recommend that you close all running applications before you begin a recording session. This will make the recorded script smaller and more manageable.

  1. Tap the application icon to open it.
  2. Start the recording session by tapping the StartRecording.png button.
  3. Open the application to record, and perform the steps of the business process.
  4. To stop the recording either:
  • Press the home button, tap the application icon, tap the StopRecording.png button to stop the recording session, or
  • Tap the LoadRunner Mobile Recorder icon in the notification bar. This automatically brings you to the LoadRunner Mobile Recorder home screen. Tap the StopRecording.png button to stop the recording session.

3. Send the recorded session by email

The recorded session is on your mobile device, and it needs to be sent to the computer where VuGen is installed. This is done via email, as follows:

  1. When you stop the recording session, the default .lrcap file is selected and displayed.
  2. You can tap Browse.png to select a previously recorded .lrcap file.
  3. Specify an email address in the send to box:

email.png

4. Tap 'Send'.

 

4. Create a vuser script

 

  1. On the computer where VuGen is installed, download the .lrcap file that was sent from the mobile device.
  2. When you double click it, VuGen will automatically open the .lrcap file, and create and generate the script.

Note: If the recorded traffic contains SSL communications, you’ll need to create a new Mobile Application – HTTP/HTML script in Vugen first, and use the Analyze Traffic option of the recording wizard to select the .lrcap file. You can then click on the ‘SSL Configuration’ button to add the server-side certificates.

 

Tips and Tricks

 

1. Logging 

 

Logs and capture files are saved to the HP LoadRunner Mobile Recorder’s default working directory on the mobile device, usually located under:

 

/storage/sdcard0/Android/data/com.hp.mobileRecorder/cache/

 

The log file name is log.csv. When the application is uninstalled, these files will be deleted permanently. If you want to save the .lrcap files, back them up in a safe place, or change the working directory in the HP LoadRunner Mobile Recorder’s advanced settings page. 

 

2. lrcap file format

 

Currently, .lrcap is a pcap file. The file can be viewed in Wireshark by renaming the .lrcap to a .pcap extension. 


3. WIFI vs 3G Link-layer header types

 

The pcap file may be compressed by two compression methods that can be read by VuGen:

  • If recorded on a 3G interface, the header type will be LINKTYPE_LINUX_SLL (aka “Linux cooked”).
  • If recorded on a WIFI interface, the header type will be LINKTYPE_ETHERNET (IEEE 802.3).

 

 

To learn more about mobile performance testing with LoadRunner, take a look at this previous blog post, Who’s up for some mobile performance testing?

 

 

Leave a comment in the box below to let us know how you’re using the HP LoadRunner Mobile Recorder.

 

 

Thanks to David for providing this post!

Comments
Lday75 | ‎07-12-2013 10:23 AM

Hello Load Runner Folks,

 

I am very new to Load Runner, In fact, I WILL BE using this in my future postion, however have not yet been exposed to LR at all. 

 

With that piece of info, I have a couple questions that I hope someone out there could answer as I have not been able to find any info on this from HP or Google searches.

 

1) Does anyone know if LoadRunner can be used to test Progress based applications?

 

2) Does anyone know if LoadRunner can be used to test Microsoft Dynamincs AX based applications?

 

I appreciate any info on these two questions.

 

Thank You

HP Expert | ‎07-30-2013 07:17 AM

Hi,

In answer to your question - LR support of certain application is determined by the technology that application uses. I'm not familiar with Progress or with MS Dynamics AX, but if these applications are using standard technologies, such as HTTP or SOAP, then there's a good chance that we support them.

I believe you could get more info if you post your question at LR customer forum, which is visited by many customers and support engineers.

Satzz | ‎08-06-2013 07:30 AM

What is the need to record the application in mobile?If this is for caturing the response in mobile, do we need to use mobile as a load agent?

Also, what does a rooted device mean?

will it support sony tipo?

| ‎08-07-2013 12:30 AM

HI Satzz,

 

I recommend that you read an earlier post on this blog, Who's up for some mobile performance testing?  There's a section called 'What support does LoadRunner offer for mobile applications?' where the different types of recording are described.  That should give you some more information.

 

 

test2 | ‎08-22-2013 11:30 PM
You completed various good points there. I did a search on the subject and found a good number of persons will agree with your blog.
Prakash Patil | ‎10-29-2013 11:40 AM

Hello,

 

I am currently working on to conduct performance testing IVR application server. Please let me know does LR support VXML browser, if yes. How can we hook up LR tool with the VXML browser. Please help. Thanks

tomau | ‎06-10-2014 02:08 AM

Hi Consultant,

 

I followed you procedure to try the HP LoadRunner Mobile Recorder apps, but I encountered a problem is the HP LoadRunner Mobile Recorder’s default working directory only can found the log file. No capture file in default working directory. So I encountered message "File not found! Probably not generated successfully" .

SuperUser has already granted to this apps.

 

Please advise.

 

Br,

Tom

kamalvpm777 | ‎10-13-2014 07:54 PM

Once I downloaded this app from playstore and installed in the nexus5 ,  this app throws an error saying "No root access. Please check your device"

 

Not sure what rooted device means and how to resolve it. Please advise on how to fix this and instructions to suucessfully install this app in Nexus 5

Gilles Ciret | ‎10-29-2014 08:08 AM

Hello,

 

I'm using the mobile recorder to record a native application for my customer which uses HTTPS.

As this is the first time I use this tool, I'm not sure I'm doing it the right way but I managed to record HTTP browser activity on my tablet (connected to a hotspot on my laptop) and to import the .lrcap file into VUGen. I can see the request in my script, which is good! Thanks for that usefull tool.

 

Now I'm trying to record HTTPS traffic the same way and I can only see the HTTP requests, the HTTPS requests are not generated in the script. I supposed that was because I had to set the server certificate in the traffic analyser before generating the script. 

So, I navigated to an HTTPS website and exported the certificate as a .cer file and used the SSL converter tool to create a .pem file. That done, I've got my .pem certificate and I can use it in the SSL configuration of the traffic analyser, setting the IP of the server, the 443 port, the .pem file and no password as I did not set one in the converter.

 

But when I try to generate the script using that ssl configuration, nothing is generated.

If I look at the recording log, I can see the message :

"[Traffic Analyzer (1bc4:1430)] Internal Error - invalid PEM file password or bad format.

[Traffic Analyzer (1bc4:1430)] An error occurred while analyzing the traffic file.Not all data was analyzed.(bad PEM file)"

 

What am I doing wrong? 

I'm not using a password either when I export the file from the browser or when I convert the certificate.

I tried to convert my certificate with online converter or openssl but it doesn't help.

 

Thank you for your help.

 

Gilles

Maradana | ‎12-12-2014 05:57 AM

Hello All,

 

Any one is able to generate script succesfully .  While exporting i am seeing error as

"File not found! Probably not generated successfully" .

SuperUser has already granted to this apps

 

Can anyone please help me !!

 

Thanks in advance

 

Vamsi

Leave a Comment

We encourage you to share your comments on this post. Comments are moderated and will be reviewed
and posted as promptly as possible during regular business hours

To ensure your comment is published, be sure to follow the Community Guidelines.

Be sure to enter a unique name. You can't reuse a name that's already in use.
Be sure to enter a unique email address. You can't reuse an email address that's already in use.
Type the characters you see in the picture above.Type the words you hear.
Search
Showing results for 
Search instead for 
Do you mean 
About the Author
Malcolm is a functional architect, focusing on best practices and methodologies across the software development lifecycle.
Featured


Follow Us
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.