LoadRunner Basics: LoadRunner Basic concepts and applications

Source: Internet
Author: User

Learning examples

LoadRunner from a website with Webtour to help beginners learn performance testing
After installing LoadRunner to enter the program files under the Webtour file Plus, start Webtour service
Open in Browser: http://127.0.0.1:1080/WebTours/index.htm can login Webtour service

LoadRunner Basic Concepts

meeting Point (lr_rendezvous): You can synchronize virtual users to better perform tasks at the same time, implementing concurrency.

Transactions : The amount of time the server takes to request a virtual user, and the start and end are always at the same time to calculate how long it takes to perform a task (no sleep is added).
(lr_start_transaction; lr_end_transaction)

checkpoint (web_find): Verifies the correctness of the server by searching for specific text or strings when the script is played back.

Think Time (lr_think_time): Time to pause

Association (web_reg_save_param_regexp): Many applications use dynamic values, and these values change each time they are used. For example, the server assigns a unique session ID to each of the new sessions, at which time the dynamic value must be used for playback to succeed. Using the association will save the new assigned ID of the server to the parameter, the fixed value of the recording will not be used when running vusal, and the corresponding value of the server will be used. LoadRunner supports manual association and auto-correlation, the script will automatically pop up with the associated option, or you can right-click on the parameter to manually correlate, the correctness and stability of manual association is usually higher than automatic association.

LoadRunner Runtime Settings
    • Run Login: Set the action and order of the run
    • Pacing: Set the wait time after each iteration (do not wait/wait for a fixed interval/wait for a random interval) when iterating over multiple iterations
    • LOG: Set log options
    • Think time: Whether you need to set up think times between different actions, and how to set the think time dynamically if needed
    • Network: Setting Bandwidth
    • Browser: Set Whether browser content is cached
    • Internet Protocol: Set up the network protocol, loadrunner default set 8086 port proxy, using this agent may cause playback errors, the agent to use the browser default settings options.

LoadRunner Parameters

script parameterization : When the actual test concurrency, some parameters must be variable (such as logging operations), at this time need to use the script parameterization, that is, variable parameterization. Select the parameter, right-click: Replace with parameters, then you can see the newly created variable in the parameters file. The values for the parameters can be 1. Direct edit, 2. Import the. data file 3. Directly into the database. Actual run-time parameters can be played back in a variety of ways, and you need to set options based on specific scenarios.

LoadRunner Replay

Change the playback options so that playback can show the progress of the page in real time (Start Runtime Viewer), this option is off by default, the page does not see the performance when playback.

Playback complete to view console input and Results report

LoadRunner Basics: LoadRunner Basic concepts and applications

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.