"LoadRunner" Beginner loadrunner--recording scripts, playback, and optimization

Source: Internet
Author: User

One, script recording (recording)

Open LoadRunner Select Create/Edit script Newscript Select Protocol (Single Protocol, multiprotocol) Strart recording Select the recording type and recording action (where action is repeatable, login and exit means enter program and complete recording) Start recording "You can add your own action and self-name" record Complete click Stop "program will automatically save and compile" recording completed.

Second, script playback (playback)

In the previous step, you recorded the completed script click Run to see if the playback script is correct.

Third, script optimization (enhanced)

The following four points can be used for the optimization type in the script:

① inserting a transaction point

Lr_start_transaction ("login"); ----Start

Lr_end_transaction ("Login", Lr_auto); ----End

② Adding a collection point

Lr_rendezvous ("login");

The use of meeting points can be referred to http://www.51testing.com/html/36/n-840536-2.html

Parameterization of ③ settings

"Name=username", "Value={username}", enditem,-----marked red for parameterized content

Lr_log_message ("useername:%s", Lr_eval_string ("{userName}")); -----parameterized Log printing (see if parameterization is correct)

④ Setting text checkpoints

Web_reg_find ("Search=body",
"text=1029742081",
last);

Iv. Common Settings

1. Number of iterations

2, error still continue to execute script (with the above is the same interface, select Miscellaneous)

3. Setting parameterization

4. Insert the transaction point (start and end)

5, increase the meeting point

6, the script compiles (compiles through does not indicate the program is available, also needs to carry on the script replay only then)

7, increase the checkpoint (for example, after logging on to check whether a successful landing)

8. Start the checkpoint

9. View running Results

10. Review logs, check for errors and fix scripts

11. Garbled solution when recording script

"LoadRunner" Beginner loadrunner--recording scripts, playback, and optimization

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.