Use of the regenerate Script Function in LoadRunner-zee

Source: Internet
Author: User

If you want to return to the original recording script, you can use the regenerate Script Function. this function is very useful for debugging and fixing a corrupted script. when regenerator is a script, it will remove all content manually added to the script. if you add parameters to the script and vugen saves the recording parameters, the original parameters will not be deleted after the parameter list is replaced. you can re-insert the previously created parameter list.

Note that when you use this function, only the recorded scripts will be sorted, and the manually added scripts will not be sorted.

After clicking regenerate script, several buttons are available:

First: OK

Generate a new script from the original recording log. This function removes all associated/parameterized code manually added to the script.

Second: Options

When multiple protocols are used, you can specify which protocols need to be re-generated. If you need to customize the re-generated options, you can click Options to open the recording options. select the protocol and specify which protocols are to be regenerated and not required.

Example:

Here, I recorded a page,

Web_url ("zeeslo ",

"Url = http://blog.csdn.net/zeeslo ",

"Resource = 0 ",

"Reccontenttype = text/html ",

"Referer = ",

"Snapshot = t2.inf ",

"Mode = html ",

Extrares,

"Url = http://hi.images.csdn.net/css/Valentine/images/header_bg.gif ",
Enditem,

"Url = http://www.csdn.net/images/share-add.gif ",
Enditem,

"Url = http://counter.csdn.net/pv.aspx? Id = 26 ",
Enditem,

Last );

 

Add transactions and parameters:

 

Lr_start_transaction ("transaction 1 ");

 

Web_url ("zeeslo ",

"Url = http://blog.csdn.net/zeeslo ",

"Resource = 0 ",

"Reccontenttype = text/html ",

"Referer = ",

"Snapshot = t2.inf ",

"Mode = html ",

Extrares,

"Url = http://hi.images.csdn.net/css/Valentine/images/header_bg.gif ",
Enditem,

"Url = http://www.csdn.net/images/share-add.gif ",
Enditem,

"Url = http://counter.csdn.net/pv.aspx? Id = {parameter} ", Enditem,

Last );

 

 

Lr_end_transaction ("transaction 1", lr_auto );

After the regenerate script function is used:

Web_url ("zeeslo ",

"Url = http://blog.csdn.net/zeeslo ",

"Resource = 0 ",

"Reccontenttype = text/html ",

"Referer = ",

"Snapshot = t2.inf ",

"Mode = html ",

Extrares,

"Url = http://hi.images.csdn.net/css/Valentine/images/header_bg.gif ",
Enditem,

"Url = http://www.csdn.net/images/share-add.gif ",
Enditem,

"Url = http://counter.csdn.net/pv.aspx? Id = 26 ",
Enditem,

Last );

We can see that after regenerate script is used, the script returns to the status after recording.

 

 

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.