windws10 under Loadrunner12 the Detailed Tutorial

A. Acquaintance LoadRunner (  click on the link to jump to LoadRunner installation procedure )

1 Introduction:

(1) from LoadRunner load English is literally a runner, why do you say? For workers in the IT industry as software developers and testers will not be unfamiliar software or web page it is to run the business under the condition to withstand the load. From another comparison image understanding is "the last straw breaks the camel" Here is the straw transaction software, LoadRunner this software is to test the "Camel" can withstand much weight.

(2) LoadRunner is a performance testing software by simulating actual user behavior, through the load, concurrent and real-time performance monitoring and reporting after the test is completed, the analysis system bottlenecks may exist, one of the most effective means should be is complicated by LoadRunner controlled by the console settings to achieve the same service thousands of users simultaneously simulated operation.

2. LoadRunner includes:

(1) VuGen:. HP is a tool that can be used to create Vuser scripts using VuGen to develop a Vuser script by recording typical business processes performed by the user using this script can simulate the actual situation it can only record a Vuser script on the Windows platform. but recorded Vuser script can be run on Windows and Linux platforms.

(2) Controller: allows you from a single point of control easily and effectively control all Vuser, and monitor the performance of the scene during test execution.

(3) Analysis: After running a load test scenario in the HP LoadRunner Controller or HP Performance Center can use the Analysis Analysis chart can help you determine system performance and provide information about things and Vuser results by combining multiple scenes or load test. the plurality of FIG into one view can compare a plurality of FIG.

Two. VuGen menu of available keyboard shortcuts

(1) File menu:

(2) Edit menu:


(3) View menu:


 (4) Search menu:

(5) Design menu:

(6) Record menu:

(7) Playback menu:

(8) ALM:

(9) Window menu:

Three VuGen -. Playback and recording (  refer to website )

(1) First, a new script and solutions

(2) Now that more Web projects, where there is a Web project as an example, to record a script HTTP protocol (because I use the English version, so I generally explain what the following represent the left side of the English: a single protocol , multi-protocol, mobile, common, recent)

After the following interface (3) to create a successful appearance

(4) Click the Record button in the toolbar (that is, the red dot below) or Ctrl + R to start recording a.

(5) Other not control, please fill in the URL you want to test, and then click to start recording.

(6) after the jump to the page I want to test, then you can start a little point, stop, then click on the small blue square you can stop the recording.

(7) This time the script has been successfully recorded, as shown below:

(8) through the "replay" button, you can let the script WEB resend requests we've recorded (the button in the toolbar at the top)

(9) which is emerged after the end of the playback interface, if you see red, it means the script fails, the green is a sign of success.

Four. Action iteration (  refer URL )

1. First, let's briefly explain: init recorded generally when the user logs; action is generally recorded event operations; end record is generally exit event (the difference between them and the end init run only once, The action can run multiple iterations)

2. So, the first operation is set to begin recording when vuser_init

3. Log after a good record, is set to action by the shortcut bar, then the next script will be written to the action inside.

4. Prepare vuser_end is set to logout.

V. things and the set point (  reference URL )

1. brief: here that matters, in fact, played a role in the statistics, the script do some statistics on transactions between the LoadRunner.

2. For example: when we Virtual User Generator script into Contoller to perform, you will find under the surveillance of the transaction response time table just write vuser_init, Action and vuser_end these three lines of data. But often, we just want to know a few middle Action Request consume much time. This time, we can complete several requests corresponding script package to a single transaction, then the Controller will automatically help us statistics related to the information.

3. How do you add things in the script: 

(1) added during recording:

a. When we want the next script within a transaction, you can insert "begin transaction" by the following icons Shortcut Bar logo

b. to "begin transaction" a name

c. Then we continued to record a script, until we want the script to be recorded to external affairs, where you can insert "end transaction" logo

d. Select the name you want to end the transaction

e. Then we look at the script, and more than before the two lines of code

(2) is directly in the script written on two lines of code, so that even if the recording is completed, we are free to re-join the transaction.

4. We may just have noticed the shortcut bar. Its role is well understood in the "end transaction" icon on the right there is a bright spot of this icon is the "rendezvous", and when we tested multiple concurrent users, each users to execute the transaction script of the order is uncertain, so get the test results are not the limit of the test results of a full concurrency. Before you start a transaction, insert a "collection point", then the multi-user execution, it can be a user request to stop until the number of users reached condition is satisfied (the default is 100% of users have reached the set point) then all the next user requests simultaneously issued. The test results out of the statistics, is a fully concurrent results (usually the set point to be used in conjunction with the transaction, a separate collection point, basically say is meaningless)


Published an original article · won praise 0 · Views 40

Guess you like

Origin blog.csdn.net/Lyan00/article/details/105066836