Record a Vuser script
This topic describes the overall process for recording a Vuser script.
Modify or disable DEP
DEP (Data Execution Prevention) is a security feature included in Windows. It can interfere with some of the functionality during record and replay, and may cause older browsers to hang on the VuGen machine. If you experience unusual behavior during recording, modify the DEP settings.
The ideal setting is Turn on DEP for essential Windows programs and services only. If this option is not available, you may need to completely disable DEP using the BCDEdit boot configuration utility.
For information on how to modify the DEP settings, refer to the Microsoft Windows documentation.
Recording a script in VuGen
The standard way to record a script is through the user interface.
To record a Vuser script:
-
Create a new script or open an existing script. For details, see Create and open Vuser scripts.
-
Configure the recording options (optional). The recording options affect the way a Vuser script is recorded and how it is generated after the recording, To open the recording options, double-click the Recording Options node in the script tree. For details, see Recording options.
Tip:
- Web HTTP/HTML scripts: To generate a Recording Report after recording is finished see Enable/disable the Recording Report.
- If the business process you want to record contains asynchronous push communication, select Recording Options > HTTP > Advanced > Use streaming mode when recording with the Proxy.
- If you are not able to successfully record a script, select Recording Options > HTTP > Advanced Node and check the Use Proxy to record a local application option. Then re-record your business process.
-
Click the Record button
on the toolbar to open the Start Recording dialog box. For details, see Start Recording dialog box.
-
Define the relevant information and choose the section into which you want to record. For example, the Init section should contain steps that you do not want to repeat, such as logging in. For details, see Vuser script sections.
-
Click Start Recording. The floating toolbar appears, your application is opened and VuGen begins recording your actions.
-
Perform those business processes that you want to record, within your application or browser. Use the floating toolbar to insert transactions, rendezvous points, and comments. You can also use the floating toolbar to specify into which section of the script to record. For user interface details, see Floating recording toolbar.
Click the Stop button
on the floating toolbar when you are finished recording.
Note: To cancel the recording session, click the Cancel Recording button
on the floating toolbar. When you cancel a recording, VuGen removes all of the code that was added to the script during the current recording session, thereby restoring the script to its status before the current recording session. For details on enabling/disabling the Cancel Recording button, see Scripting tab.
See also: