LoadRunner How to perform mobile performance testing

Source: Internet
Author: User
Tags hp loadrunner

1, recording scripts

1.1 Creating a script: Create a new user script and select Mobile application

To open Virtualuser Generator as an administrator, click "File", "New Scripts and Solutions", in the pop-up Create new script, select the single protocol mobile application–http/html, enter the script name, And where the script is stored, click "Create" as shown in:

1.2 Recording script: Use shared WiFi to record 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.

to modify the recording mode, you can also click "Options" to modify it. Using the default, click the "Finish" button directly.

One) recording is completed, a script file is generated, and unnecessary scripts can be deleted.

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 copy App script

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

3.3 running a load test

The load test method for running the scenario is the same as for normal performance testing.

Note: Learn encouragement

If you don't know anything, you can ask me, ha ^_^.

I hope you guys and it women are also concerned about my sideline, fruit https://shop247384222.taobao.com/?spm=a230r.7195193.1997079397.2.YaXEih wholesale price

LoadRunner How to perform mobile performance testing

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.