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