Build TruWeb scripts

This topic describes different options for building your TruWeb script.

For details about the structure of a TruWeb script, see TruWeb script structure.

Record a script

You can record your business process using the TruWeb Proxy Recorder.

Other options include recording using any browser, or using Telerik Fiddler.

For any of these recording methods, you save the captured traffic to a HAR file, and then use the TruWeb Offline Script Generator tool to generate a TruWeb script from the HAR file.

For more information, see Record and generate a TruWeb script.

Back to top

Write a TruWeb script manually using external tools

You can write scripts manually using the TruWeb JavaScript SDK. Industry standard scripting capabilities such as transactions, parameters, correlations, and run logic are supported.

The following HTTP features are supported, among others:

  • Synchronous web requests

  • Asynchronous web requests
  • Headers

  • Body

  • Caching

  • Cookies

  • Page resources

  • HTTP error code handling

You can work with a variety of IDEs and text editors, for example, Atom.io, or JetBrains WebStorm (IntelliJ). For more information on working with common IDEs, see Configure TruWeb for your IDE.

Back to top

Develop a TruWeb script in VuGen

Create your script in VuGen by selecting TruWeb in the Protocols list. When the script loads, you can record and generate your business process using the TruWeb Proxy Recorder.

You can also write the script code in the main.js file using the TruWeb JavaScript SDK.

You can import into VuGen a TruWeb script created with a different tool, for example, TruWeb Standalone, and continue to edit the script in VuGen.

To import a TruWeb script into VuGen:

  1. In VuGen, select File > Open > Import TruWeb Script.
  2. Browse to your script's main.js file and click Open.
  3. Enter a name for your script, and the location where you want to save the imported script.
  4. Click Import.

For information about the TruWeb script structure, see TruWeb script structure.

For information about creating VuGen scripts, see the VuGen Help Center.

Note: To run a TruWeb script using LoadRunner/Performance Center, you need to first import the script into VuGen.

Back to top

See also: