Script and File Management

The way scripts and files are saved, exported, imported, and opened varies between the TruClient Editions.

Script management in TruClient in VuGen

Open, saving and other operations on TruClient scripts are handled like other protocols, from the File menu. For more information, see the VuGen Help Center.

Back to top

Script management in TruClient Standalone

Actions on the open script are performed from the File menu:

  • Save - Saves the open script at its current location.
  • Save as - Saves the open script with a new name.
  • Export to Zip (All files) - The script needs to be saved before a zip file can be exported.
  • Export to Zip (Runtime only) - The script needs to be saved before a zip file can be exported. Zips only the files required to run the script.

For opening and creating scripts, see TruClient Standalone Launcher.

Back to top

Script management in TruClient Lite

Script saving and sharing require several steps because of browser security. The steps are preparing, downloading and importing. These steps work as follows:

  • Scripts are saved and loaded from the browser local storage. To use a script outside the browser context, the files must be prepared by being archived in a zip file ready for download, then downloaded from browser storage to the browser's download target folder. You can configure the download target location from the browser settings.
  • Importing a script copies a zip file into the browser local storage. After importing the files, a script can be opened and used in the browser context.

Operations on the current script are performed from the File and Save menus. Operations on any script are performed on the Scripts Management dialog box.

Options on the File menu

  • New - Opens a new script.
  • Open and Manage Scripts - Opens the Scripts Management dialog box. See below.

Options on the Save menu

  • Save - Saves the open script at its current location.
  • Save as - Saves the open script with a new name.
  • Export All Files - The script needs to be saved before a zip file can be exported.
  • Export Runtime Files - The script needs to be saved before a zip file can be exported. Zips only the files required to run the script.
  • Upload to StormRunner Load - Opens the Sign in and Upload dialog box.

The Scripts Management Dialog

The scripts management dialog box enables actions on scripts whether or not they are open. The actions you can perform are:

  • Import Script: Imports a zipped script from the file system to browser storage so the script can be opened in TruClient Lite.

  • Attach Certificate: Attachs a client certificate to the selected scripts. If you attach the required certificates to a script, you do not need to install the certificates on computers running the script in LoadRunner or StormRunner Load. For details about certificates when developing a script, see Certificates in TruClient Lite.

  • Download Certificate Generator tool: Use this tool to generate a client side certificate file (CC.pfx) from the system certificate store, which is used by TruClient during Load Mode Replay. Click the download icon , and download the tool from HPE AppDelivery Marketplace.

    Note: You need to install the client side certificate to Windows Certificate Store first.

    Enter the destination file name of the output certificate. If no destination is specified, the certificate will be output to the current directory. For more details on using the tool, run the command:

    ClientCertGen.exe ?

  • Delete a script from browser storage by clicking the delete icon in the left column. Use the operating system to delete files in the browser download folder or elsewhere on the file system.

  • Open a script by clicking a link in the Name column.

  • In the Export column:
    1. Click either "All Files" or "Runtime Files".
    2. Click Download to copy the zipped files to the browser's download folder.

Certificates in TruClient Lite

To record or replay a script that uses a client-side certificate in TruClient Lite, the certificate must be installed on the system certificate repository.

When TruClient Lite for Chrome uses the certificate you installed in the system certificate repository, a dialog box asks the user to select a certificate, even if there is only one usable certificate. This happens in both Record and Replay. This modal dialog blocks script Replay. After the user selects the correct certificate, the Replay continues.

To avoid display of the certificate display dialog box, after installing the certificate add a key using regedit. To HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\AutoSelectCertificateForUrls, add a string value key named "1", with value “{"pattern":"*","filter":{}}

The key need only be added on the computer running TruClient Lite. During load testing in LoadRunner or StormRunner Load, the certificate selection dialog box is not displayed.

Back to top

See also: