With LR12 recording app, with LR11 running scene, no concurrency limit, has been tested, feasible!

Source: Internet
Author: User

Free use of LoadRunner for mobile internet back-end server stress testing

I. Introduction of LoadRunner

LoadRunner is a load test tool developed by Hewlett-Packard to predict the behavior and performance of the system. LoadRunner is able to test the entire enterprise architecture by identifying and locating problems in a way that simulates the concurrent load and real-time performance monitoring of tens of thousands of users.

LoadRunner11 is now a more commonly used version, there is a free super license up to 6.5w concurrent, currently this version of the Web site stress testing is very well supported, but does not support mobile app operation script recording.

LoadRunner12 adapt to the rapid development of mobile Internet, increased the operation of mobile phone app script recording function, because the release time is short, there is no cracked version or free license, and the purchase of license is very expensive (virtual user day @ $1.40 each), the concurrency of 5,000 virtual users is approximately $7000 per day, but there are Loadrunner12 community editions that support only 50 concurrent users.

After practice, LoadRunner12 recorded mobile app operation script can be run on LoadRunner11, so we combine the advantages of both, using LoadRunner12 recording script + LoadRunner11 Run scripts to implement stress testing on a mobile Internet backend server.

II. installation manuals and using Tutorial 1, LOADRUNNER12 installation and app action script recording

(1) Prepare a Win7 64-bit Computer A (my IP is 192.168.0.103), in svn download good LoadRunner12 Community version to local Computer A non-Chinese directory, execute EXE file, Crazy point next can be installed. After installation there are three icons, ①virtual User generator is used to record scripts ②controller is used to perform a script to do stress testing ③analysis is the results of the stress test analysis. Because the LoadRunner12 community office only supports 50 users concurrent, so ②③ we basically do not use, here mainly use ① Do app action script recording.

Company SVN:

Https://192.168.0.113/svn/DownloadSoft/LoadRunner/HP_LoadRunner_12.01_Community_Edition

(2) Install 360 free wifi on a computer,

WiFi Name: Dabiaoge

WiFi Password: 1234567890

(3) Connect your phone to the WiFi, and set the agent manual, hostname 192.168.0.103 (a computer's IP) and port: 8899 (arbitrarily set a larger 4-digit port)

(4) Double click the Virtual User Generator icon to run LoadRunner12, go to the following page, click Creat, create a new script, select "Single Protocl", "web-http/html" to enter the script name, Click Creat.

(4) Click the Red "Record" record button, pop up the selection box, recording mode select "Remote application via LoadRunner Proxy", Port to write the number of ports on the phone: 8899, click "Start Recording "Can

(5) LoadRunner12 will be minimized into a mini-box

This time you need to open your mobile app to operate, after the operation is completed, click on the "Stop" button in the mini-card to complete the recording of the app action script, after the completion of the script, such as, click on the Triangle "Replay" to execute the script, if successful through the proof script recording success, Most of the cases will have error, delete the wrong line, do not affect the script function, because the line of error is basically a number of calls to third-party plug-ins, no app can not be executed. Here, the app action script recording is done!

2, LoadRunner11 install Break and execute the app script to do stress test

(1) on SVN download LoadRunner11 to local computer B, can not be placed in the Chinese directory, or can not be installed.

Install step installation, replace. dll file, enter licence hack.

: Https://192.168.0.113/svn/DownloadSoft/LoadRunner/LoadRunner11

(2) Open LoadRunner11 and the script recorded on a computer will be executed on LOADRUNNER11.

With LR12 recording app, with LR11 running scene, no concurrency limit, has been tested, feasible!

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.