LoadRunner implementation of Android/ios mobile phone stress Test (example)

Source: Internet
Author: User
Tags server port

LoadRunner implementation of Android/ios mobile phone stress Test (example)2016.11.21 19:15* words 734 Read 1117 comments 2 likes 7

With the increase in mobile app users, large mobile apps are generally required to carry out stress testing these days with the LoadRunner 12 mobile app pressure test, finishing the next, we can refer to how to Andorid/ios mobile phone app for stress testing, the following is an example of operation.

The following is a description of LR12 for mobile phone pressure measurement:

1. Download a LoadRunner 12 installation package online, I got a call hp_loadrunner_12_community_edition_. T7177-15045.exe file, this 960M, there is a 1.2G name of a addition I did not install, my system is Win7 32 bit + IE8

2. After I have this installed, the default license is long-term but only 50 people, I recommend that you can use this recording script to use Loadrunner8.0 concurrency more, because the mobile app is actually monitoring the phone to the server requests, LR12 capture these requests, the stress test is a pressure measurement server.

3. Prepare a small, plug in the USB interface, with the driver of life Scan Drive, scan out the small WiFi driver did not install, click Install, Drive Life Download driver and installed, after the installation of the small degree has WiFi name and password.

4. Mobile connection on this network, long press This network, click Modify Network Configuration, show advanced options, Proxy Server set to – manual, proxy hostname and proxy server port settings, download a ccproxy, run, you can view the local LAN IP address, the port arbitrarily set a, such as 8899. Stop Ccproxy.

5. Start LR12 Virtual User Generator and click File–new Script. and Solution,single Protocol Select web–http/html, click Create

6. Click the Red Record button on the toolbar, recording mode select Remote application via LoadRunner Proxy, the port is set to 8899,loadrunner will listen to this port, this port is the agent of the phone connection Server port.

7. Click Start Recording to begin recording

8. After the recording is completed, a script will be generated, such as the following, you can delete the unnecessary script, leaving the program you want to test.

9. Playback script, script playback success, and successfully login to the mobile app, return alias

10. From Tools Click Create Controller Scenario, set number of vusers to 10 people, you can set more, here I set to 10, run, in the Controller Design tab will Scenario Schedule's run mode is set to basic Schedule,controller–results–results Setting

s, when the window is opened tick the first build per user run time log, this window records the folder under which the log remains, running the scene.

11. Click Results–analyze Results on the controller to view the results

12. Check the log view details for each user at run time

LoadRunner implementation of Android/ios mobile phone stress Test (example)

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.