With the increase of mobile phone app users, big mobile phone app generally need to carry out stress test, these days with 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 phone connection of the generation Management 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 the basic Schedule,controller–results–results Settings, the window opens and tick the first build per user run time log, this window records Keep the folder under the log, run 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
Category: Performance testing
LoadRunner implementation of Android/ios mobile app stress test