If you need to revert back to the script as it was when you your originally recorded it, you can regenerate the script. This feature 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 only saved with the runtime files, you will not be able to regenerate the script to its original recorded state. For details, see How to Work with .zip Files.
This task describes how to regenerate a Vuser script.
Initialize the regeneration
Select Record > Regenerate Script. VuGen issues a warning indicating that all manual changes will be overwritten.
Modify regenerate options - optional
Click Options to open the Regenerate Options dialog box.
In a multiple protocol script, you can use the General > Protocols node to modify which 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 that you 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 Flex, Silverlight, or Java over HTTP Vuser script encounters errors during the code generation phase, VuGen shows the errors in the Error pane. This Error pane displays details about each error, as well as recommended actions. Follow the recommended actions and regenerate the script.