LoadRunner basic tutorial
LoadRunner is a Load Runner. Why? For it software industry workers such as developers and testers, they will not feel unfamiliar with running software or webpage services under load conditions. From another image, we can see that "the last straw to crush camels" is the software business, loadRunner is the software used to test the weight of a camel.
Tools/Raw Materials
Method/step
LoadRunner is a performance testing software. By simulating real user behavior, monitoring load, concurrency and performance in real time, and testing reports after completion, it analyzes possible bottle neck in the system, one of the most effective methods for LoadRunner is concurrency control. By setting it on the console, the same service can be simulated by thousands of users simultaneously. As you can see, LR is a software under HP, and it is a commercial software. As a commercial software, LR is quite powerful in terms of functionality, especially after the test is completed, the test report and real-time performance monitoring are excellent. Here, I will use the trial version to explain it to you.
After LoadRunner is installed, enter the initial interface of LoadRunner. First, give a brief introduction to this interface. There are three items on the left of the interface: Create/edit scripts create or edit scripts, previously, we introduced how to simulate LR as a performance testing software that simulates user behavior? Of course, it is through the recording script, so that the operator can record what he needs as needed. Run load tests under the script creation should be literally guessed as running the load test. How to run the load test requires the script we recorded in the early stage. The bottom line is the analysis test result of analyze test results. Do you know the three major steps of performance testing are business recording, load running, and result analysis?
The following shows how to record the first test script. Click lr to enter and then create/edit scripts to enter the interface, a piece of white paper has a green "+" icon and a "Web (HTTP/html)" under it, you can click to create it.
You can use "Web (HTTP/html)" to create a web application. In this case, the selected recording protocol is the HTTP protocol. This protocol is suitable for recording web applications, click and in the pop-up box "url address", type the address of the page to be recorded, such as "http://www.baidu.com", enter and click the OK button below
Note: Do not forget to enter http ://
Use a White Paper with a green "+" icon. It is called "new" here, click the new icon. A Selection box is displayed. Select the desired protocol based on the program to be tested. Click create.
After the script Initialization is created, the recording script starts. The red part is a recording floating window, And the Baidu site on the back is the set recording site, the number of recorded events is displayed before the events in the floating box. The box also supports pause, start, and end recording functions. You can also select Add transactions on the right of the box.
After the recording is complete, click the stop button. You can also press Ctrl + F5 to stop the recording, and then wait for the script code to be formed.
After the script code is formed, for example, the playback button is in the red circle. After each script is recorded, it is played back once to ensure that the recorded script will not be faulty, of course, each Script Modification also requires playback for verification.
End
Notes
Do not include redundant recording actions during script recording, and try to simulate the environment of real users as much as possible.
After each script is recorded, it must be played back to verify the correctness of the script.