Loadrunner11 script Recording for mobile performance testing

Source: Internet
Author: User

Previously recorded an app login using LR11, here to record

Test Preparation Hardware Requirements

1, load test machine one (memory 8G above, CPU 1.5GHZ above, storage space 20G above) or more than two (controller and multiple load machine).

2, smart Android phone or iphone one (requires WiFi connection hotspot).

3, notebook with wireless network card (recording script use).

Software Requirements

System XP above or other, successfully installed Loadrunner11 (PACH4 patch, not recommended for Chinese), WiFi hotspot creation software (such as 160wifi)

Before script recording 1. Create an agreement

Select protocol: First Open Vugen, click: Program->HP Loadrunner->applications->vugen, the main interface such as

Then create a new script and select the Mobile app protocol (to install the PACH4 patch), as

Enter the recording interface, such as

2. Create hotspots

At this time in the local need to create hot spots, and use the test phone to connect to this WiFi hotspot, do not connect to other phones, while shutting down all the mobile phone network applications, as far as possible to make the capture environment pure, connected after

View and remember the phone's IP address for your connection, or view it in the WiFi settings on your phone.

Once your phone is connected, you can open the test app, which is the login interface to the app. Note that you have not started recording the capture package yet.

Start recording 1. Pre-recording settings

First step: Enter VUser Generator Click on the start record option above, the recording type that pops up select "Record and Analyze", as in the first one, click "Next"

The second step: the Host URL to fill in "http://localhost" (local listening), Port is a port number, need to use the current unused port number, click "Connect". PS: You can use the command line "netstat" to view the unoccupied ports.

The third step: Select the Record network, you can see the record network has multiple, depending on each computer, you need to choose a different, select a network card to see its description, for the local wireless network network card, can also be recorded by each one to judge, my computer is the fourth.

The fourth step: Select the record into,vuser_init\action\vuser_end three select one, the general choice Action, depending on the specific circumstances.

2. Start recording

Click "Start Recording" after the status of recording changed to stop recording state, you can start to mobile phone operation, mobile phone login as far as possible to ensure that the process is concise, do not switch other application process OH.

3. Script generation

To record the phone operation after the end, click "Stop Recording", and then the computer will pop up a crawl of a few packets, save it.

Click "Next", Capture Select the Pcap file that you just saved, the IP address of the phone to fill in the IP addresses, is the previous memory of the IP, and ensure that the correct! As shown

Click "Done" to automatically generate the LR script, if the recorded script is empty, it may be the record network selection is wrong, back to the third step set before recording, select another network card, until the recording script is not empty!

After the success of the capture package, the capture package file is parsed to generate a script

This is an auto-generated script, and the whole process of script recording is finished. Ps: This place can take me a lot of time.

Loadrunner11 script Recording for 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.