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.
Write a TruWeb script manually using external tools
The following HTTP features are supported, among others:
Synchronous web requests
- Asynchronous web requests
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.
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 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:
- In VuGen, select File > Open > Import TruWeb Script.
- Browse to your script's main.js file and click Open.
- Enter a name for your script, and the location where you want to save the imported script.
- 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.