LoadRunner basic tutorial

Source: Internet
Author: User
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
  • Build LoadRunner Environment

Method/step
  1. 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.

  2. 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?

  3. 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.

  4. 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 ://

  5. 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.

  6. 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.

  7. 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.

  8. 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.

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.