Record a Vuser script

This topic describes the overall process for recording a Vuser script.

 

Preparing for recording

Before you record a script, we recommend that you modify or disable the Windows DEP settings.

To configure the DEP settings:

  1. Open Start > Control Panel > System.

  2. In the Advanced tab, click Performance settings.

  3. In the Performance Options Data Execution Prevention tab, select the first option, DEP for essential services only.

  4. If you cannot change this option, click Add. Browse to the client program, for example IEXPLORE.EXE.

  5. If neither of these options is possible, you can disable DEP completely.

    1. Open a command prompt.

    2. Run the following command: bcdedit.exe /set {current} nx AlwaysOff

    3. Reboot the machine.

    4. Verify that the settings took effect by running the following at the command line: BCDEdit /enum

    5. Verify that nx is AlwaysOff.

Back to top

Recording a script in VuGen

The standard way to record a script is through the user interface.

To record a Vuser script:

  1. Create a new script or open an existing script. For details, see Create and open Vuser scripts.

  2. 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 LoadRunner Proxy.
    • If you are not able to successfully record a script, select Recording Options > HTTP > Advanced Node and check the Use LR Proxy to record a local application option. Then re-record your business process.
  3. Click the Record button on the toolbar to open the Start Recording dialog box. For details, see Start Recording dialog box.

  4. 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.

  5. Click Start Recording. The floating toolbar appears, your application is opened and VuGen begins recording your actions.

  6. 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 Options tab.

Back to top

See also: