Share this page

# Recover TruClient scripts

This topic describes how to use the script recovery mechanism to save or recover TruClient script files automatically.

In this topic:

## About automatic script recovery

Automatic script recovery is available for TruClient scripts. Automatic recovery enables you to recover script files automatically in the event of a corrupt file. When automatic recovery is enabled, script files are saved periodically in the background. You can recover script files from the last successfully loaded script or from a script that was automatically saved.

If you enable the automatic backup option, you can set how frequently script files are saved. For example, if you set the backup interval to every 3 minutes, you will recover more information than if you had set it to save every 10-15 minutes.

Back to top

## Enable automatic recovery

1. Click the General Settings button and select the Interactive Options tab.

2. In the Automatic Recovery section, select Enable automatic recovery.

   TruClient automatically recovers the script files from the last successfully loaded script or from a script that was automatically saved. For details on the script files that are backed up, see Recover a script.

Back to top

## Configure automatic backups

You can configure TruClient to automatically make a backup of the script files at a defined interval.

1. Click the General Settings button and select the Interactive Options tab.

2. In the Automatic Recovery section, select Enable automatic recovery.

3. Select Automatically backup script files, and enter the time interval (between 1 and 30 minutes) for TruClient to create a backup of the script. By default, automatic backup saves the script files every 5 minutes.

   The last successful backup is used for script recovery. For details on the script files that are backed up, see Recover a script.

Back to top

## Recover a script

If TruClient detects that one or more of the script files is corrupted and fails to load properly, the Script Failure Recovery dialog box opens.

Choose a backup to restore:

Backup option | Description
--- | ---
Last successful load | Restores the last successfully loaded script, which consists of the following: Script steps, objects, and transactions (default.xml file) Function libraries (Libraries folder)
Last automatic backup | Restores the last script backup, which consists of the following: Script steps, objects, and transactions (default.xml file) Function libraries (Libraries folder)

Back to top

See also:

- Known issues for TruClient protocols
- Known issues for TruClient - Native Mobile protocol

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 All View Local Help Center View Online Help Center Version: