If you need to revert back to the originally recorded script, you can regenerate the script. This is ideal for debugging or fixing a corrupted script.
When you regenerate a script, VuGen removes all of the manually added enhancements to the recorded actions in the script. If you added parameters to your script, VuGen restores the original values. The parameter list, however, is not deleted; you can reinsert parameters that you created earlier. Note that regeneration only cleans up the recorded actions, but not those that were manually added.
Note: If your script was imported from a .zip archive file, make sure that it was archived with all files. If it was saved only with the runtime files, you will not be able to regenerate the script to its original recorded state. For details, see Zip and compare Vuser scripts.
To regenerate a Vuser script:
Initialize the regeneration.
Select Record > Regenerate Script. VuGen issues a warning indicating that all manual changes will be overwritten.
(Optional) Modify regeneration options.
Click Options to open the Regenerate Options dialog box.
- In a multiple protocol script, use the General > Protocols node to specify the protocols you want to record when the script is regenerated. For user interface details, see General > Protocol recording options.
- To change the Script options, select the General > Script node and select or clear the appropriate check box. For user interface details, see General > Script recording options.
Click OK to close the Regenerate Options dialog box.
Indicate whether to include imported actions.
If your script contains actions imported from another script, the dialog box will contain an option to delete imported actions during the regeneration.
If you chose to regenerate the script in a different language (using the General > Script options in the previous step), then non-recorded actions will automatically be deleted. Non-recorded actions include imported, renamed, or manually added actions.
Note: If a Java over HTTP Vuser script encounters errors during the code generation phase, VuGen shows the errors in the Error pane. The Error pane displays details about each error, as well as recommended actions. Follow the recommended actions and regenerate the script.