LoadRunner Recording Mobile

Source: Internet
Author: User
Tags network troubleshooting hp loadrunner

Method One: Install the Android simulator locally and use LR to select the simulator recording mode
Method Two: The real machine needs root, you can download a key root tool (such as Master) on the computer, then the phone and the computer with a data cable, and then root.
Run mobile Recorder on your phone
Press "Start recording" to start recording
Switch to your mobile client and complete the normal procedure
Switch back to mobile recorder, point to "Stop recording"
Send the captured packet by email or copy the data file (extension Lrcap) directly to the Vugen
New Mobile HTTP Script->record-> Select "Analyze traffic"->capture file to select the Lrcap files generated above, specify the server IP and port or the ip-> of the phone Finish

http://h30499.www3.hp.com/t5/HP-LoadRunner-and-Performance/ recording-http-traffic-on-ios-devices-with-hp-loadrunner/ba-p/6582844#. Vuhcvznuncd

Article Options

Recording HTTP traffic on IOS devices with HP LoadRunnerMore sharing ServicesMalcolmisaacs| August, 2014-last edited August,Post a Comment

(This post is written by Gennady Gorenshtein from the LoadRunner R & R Team)

IOS devices such as IPhones and IPads has become a valuable part of the IT infrastructure, and accordingly, there is a NE  Ed to validate the performance of these devices as they run applications. LoadRunner, as the leading performance load testing tool in the market, was the perfect choice for this validation. To get started, LoadRunner needs to obtain the HTTP activity performed by the device. Because LoadRunner ' s network traffic recording mechanism doesn ' t run on IOS, we have a-to-do of getting at the HTTP activity . This post describes some of the solutions, LoadRunner offers to solve this problem.

LoadRunner Proxy Recorder

Starting from version 11.52, LoadRunner includes a new component called Proxy Recorder. This component was responsible for recording, the HTTP activity that takes place on the remote host. In short, the remote host simply sees LoadRunner's Proxy Recorder as a regular HTTP Proxy and routes all the HTTP network Activity through it. LoadRunner then captures the remote host's HTTP traffic and creates a script for the load testing.

Since any IOS device can is seen as remote network host, we can use LoadRunner's Proxy Recorder to capture the device ' s HT TP activity.

If you haven ' t downloaded HP LoadRunner, here are your opportunity to see what it can does for you! Dow ...

Configuring Vugen

First, set the recording mode to 'Remote application via LoadRunner proxies ' mode in Vugen ' s Start Recording dialog :

The proxy mechanism is launched when you press the "Start Recording" button. You then need to configure the settings for the Device-which if use a wireless connection or a cellular connection. The settings for each connection type is slightly different.

Configuring the device ' s proxy settings for a wireless connection

Configure the proxy settings on the device by going into the device ' s Wi-Fi settings and configuring the network to use a Manual HTTP Proxy. Set the IP and port to the values of the dialog above (10.0.0.11 and 8888 in the example here):

From now on, LoadRunner'll record any HTTP network activity on the device.

As an alternative to using a actual iOS device, LoadRunner can record from the iOS emulator on OS X, using the same Setti Ngs:loadrunner Proxy Recording should is started on the Vugen machine, and the emulator ' s proxy should being configured to P  Oint to Vugen ' s IP and proxy port. You can check out the this post for more information on proxy recording in LoadRunner for mobile applications.

Configuring the device ' s proxy settings for a cellular connection

To record a cellular network connection, create a special APN (Access point Name) profile and load it onto the device. You can use the iPhone Configuration Utility, available for Windows and OS X, to create the APN. This screenshot shows how to create a profiles on OS X:

Proxy server and port settings should point to the LoadRunner proxy IP and port.

To load the profiles onto the device, it can be loaded through the IPhone Configuration utility, downloaded as a file, or E mailed as an attachment.

If you need to record SSL traffic, you need to obtain and install the LoadRunner Proxy SSL CA certificate on the device. To obtain the certificate, point your device's browser to Http://lr_proxy_ip:80/proxyroot.cer (note that it's usually a G Ood idea-to-install the certificate before recording in any case, even if you don ' t know for sure so you ' re going SSL communication, as SSL sessions often start implicitly). After this, save the downloaded certificate and install it on the device:

Wireshark Recording

Wireshark is a free and Open-source packet Analyzer. It is used for network troubleshooting, analysis, software and communications protocol development, and education. In promiscuous mode, Wireshark are capable of capturing all traffic that passes through the network interface, Reg Ardless whether the traffic is intended for this interface or not. Wi-Fi network activity (called also WLAN) passes through all participating network adapters. In other words, promiscuous mode captures network traffic between all devices connected to the same WLAN.

LoadRunner is capable of analyzing of Wireshark capture files and creating LoadRunner scripts from the capture files. You can configure it as follows:

    • Configure your device to run in a wireless network with Wireshark installed on some of the computers on the network.
    • Start Wireshark, choose the wireless interface, and check the ' Capture packets in Promiscuous mode ' checkbox:

Start The Wireshark capture process, generate some HTTP activity on your device, and save the captured activity to a file.

You then import the file to LoadRunner and create the script by running Vugen ' s recording Wizard, and selecting ' Analyze Traffic ':

Filter the traffic based on the device ' s IP and create the script:

Server Side Recording

If the HTTP traffic from the IOS device are directed to a single server, and the user have the sufficient permissions on the Server, you can record this traffic on the server itself.

To record traffic in a remote server, need to manually install the mobile sniffer agent onto your server by copying th E relevant folder from <LR installation directory>\mobileremoteagent\ to a location of your choice on your Server. The following table lists the supported operating systems and their corresponding file directories:

Once You has copied the folder, you initiate the sniffer from the command line. For example, if is recording in a Windows environment, the command line string might look something like this:

Mongoose-2.11.exe-e errorlog.txt-r "C:\Program files\hp\loadrunner\mobileremoteagent\win32"-C ". CGI"-p 80

Common command arguments and their descriptions:

Once The sniffer agent is installed, you manually start the agent, then select ' Record and Analyze traffic ' from the Recor Ding Wizard.

Configure The sniffer agent ' s location:

Generate some HTTP activity on your device, and LoadRunner would Generate a script from the activity recorded using the SNI Ffer.

Feel free to leave a comment in the box below.

Check out this post for more information about mobile performance testing.

Thanks to Gennady for providing this article!

Download HP LoadRunner for your performance and load testing for FREE–50 Virtual users for Unlimit ....

TAGS:HP loadrunner| ios| mobile| Network traffic| performance| View All (7) Labels:load TestingEveryone ' s Tags:
    • HP LoadRunner
    • Ios
    • Mobile
    • Network traffic
    • Performance
View All (7)Labels:
    • Load Testing
    • Post a Comment
    • Permalink

LoadRunner Recording Mobile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.