Share this page

# Script actions

You manage your TruClient 2.0 - Web script actions in the Development window Actions view.

In this topic:

## About actions

An action is a set of steps that represents a business process, or part of one. A business process can be very short and specific, like logging in, or larger, like a sequence that starts with a search and ends with a purchase.

The steps for an action can be added during the recording process, or manually added from the Steps box.

There are three default actions in a script: Init, Action, and End. These default actions cannot be deleted or renamed.

Default action | Usage
--- | ---
Init | The init stage is when the Vuser is initialized (loaded) for a test. You have the option to add an opening sequence of steps, which will run once for each replay.
Action | Add the steps that the Vuser performs to test the business process. The steps are run as a sequential set, and can be run multiple times. For details, see Run logic.
End | The end stage is when the Vuser finishes the test or is stopped. You have the option to add a closing sequence of steps, which will run once for each replay.

You create and run actions in the Actions view. From this view, you record and replay your script.

Before recording, you can select an action in the script, and the recorded step are inserted into that action. You can record your entire script into the default Action, or you can create new actions that represent different parts of your business process.

Note: Do not modify or delete the Actions container for the script in VuGen's Solution Explorer pane.

## Add new actions to a script

Use the Manage actions dialog box to add and delete actions in your script.

To manage actions:

1. In the Development window Actions view, click the Manage actions button .

2. Perform the required activity:

   - Use the Add action button to add a new action. The new action is added with a default name.

   - Double-click on the name of an added action to rename it. The added actions are organized alphabetically.

   - Use the Remove this action button to delete an action. The action is immediately deleted from the script, along with any steps it contains.

3. Click OK. If you created new actions, the last one you added is automatically opened in the Actions view.

## See also

- Run logic
- Record scripts
- Development window

https://admhelp.microfocus.com VuGen,Professional Performance Engineering,Performance Engineering for Developers 8942
Tips to improve your search results... OpenText™ Virtual User Generator Help Center OpenText™ VuGen Help 26.1-26.3 All View Local Help Center View Online Help Center Version: