loadrunner--Recording mobile app script

Source: Internet
Author: User

There are three ways to record phone scripts via LR:
1) recording via Android simulator;
2) recording by grasping the package;
3) recording by proxy mode;
This article uses the second method of recording, first need to install the LOADRUNNER11 Test tool, and then install the LR recording app patch "Lr_03105_patch4.exe", there are many online.
Lr_03105_patch4.exe the Mobile App (http/xml) script can be created in LoadRunner11 after the installation is successful

1. Recording script: Using the shared WiFi recording app
There are three ways to record mobile apps
Method 1: Connect the shared WiFi on your phone via a shared network on your computer.
Method 2: Install the Android emulator emulator (Android SDK) locally
Method 3: Install mobile Recorder on the phone

We use Method 1 as an example to make a mobile app script recording.
1) using a laptop card or a similar 360-pocket WiFi, you can get a WiFi name and password by sharing the network on the computer where LR12 is installed.
2) Configure the mobile WiFi HTTP proxy address and port, proxy address for the computer's IP address, Port can write 1-65535, it is recommended to use the less commonly used ports.
3) Click the Record button in the toolbar, as shown in:
4) Select the Recording method, select the first one by default, record and analyze traffic, click "Next"
5) Before this step, connect the phone via USB to the computer, LR will automatically detect the host and port number, click the "Connect" button
Note: Because both the phone and LR are connected locally, the host is automatically detected as localhost.
6) Select the Recording network interface, this example selects the second (PS: According to the actual situation to select the network communication interface). After recording to action by default, click "Start Recording"
Note: In the recording network interface, if there are multiple, you need to experiment with each case, if there is no data recording, then a recording network interface, in this case, three, tried three times, only the second one is useful, so select the second interface.
7) To this step you can operate the app, and LR will automatically capture all the steps of your app by using the detector. When the action is finished, click the Stop Recording button.
8) Click "Stop Recording" button to generate the recorded capture file, save the file
9) After saving Pcap capture file, click "Next" button, go to read traffic analysis file, click Browse, open the previously saved Pcap capture file, the client-filtered IP automatically gets the IP address of the phone.
10) To modify the recording mode, you can also click "Options" to modify it. Using the default, click the "Finish" button directly.
11) When the recording is complete, a script file is generated and unnecessary scripts can be deleted.
12) Playback script, after the script is successfully replayed, the script can be ported to do the following LR11 performance test.
2. Using LR11 for performance testing
2.1 Copying App Scripts
Copy the LR12 recorded app script to the server on which the LR11 resides.
2.2 Replay App Script
Prerequisite: LR11 must have mobile app protocol, if not, you can download the HP LoadRunner 11.00Patch 4 patch Pack, which includes the Mobile app protocol.
Note 1: If LR11 is not patched, there is no mobile app protocol, after the LR12 script is copied, click Playback when there is no response, you must hit the package, you can run LR12 script.
Note 2: After the patch is finished, the license in the previous LR11 is emptied, so you need to re-enter the new LICENSE:GLOBA-100 's registration code by following the previously cracked method: Aeamauik-yafekekjjkeea-bcjgi Re-enter web-10000 's registration code: AEABEXFR-YTIEKEKJJMFKEKEKWBRAUNQJU-KBYGB, re-enter to provide a super license Supports up to 6.5w concurrent: AEACFSJI-YJKJKJJKEJIJD-BCLBR
2.3 Running a Load test
The load test method for running the scenario is the same as for normal performance testing.

loadrunner--Recording mobile app script

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.