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.