Share this page

# Build methods for scripts

This topic describes different options for building your DevWeb scripts.

Tip:

- A template script folder, EmptyScript, is available in <DevWeb root folder>\examples.
- Check out the tutorials in the Video gallery to learn more about building scripts.

In this topic:

## Record a script

You can record your business process using the DevWeb 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 DevWeb Offline Script Generator tool to generate a DevWeb script from the HAR file.

For more information, see Record and generate a script.

## Write a DevWeb script manually using external tools

You can write scripts manually using the DevWeb 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, Visual Studio Code or JetBrains WebStorm (IntelliJ). For more information on working with common IDEs, see Scripting with your IDE.

## Use CSV data

Note: Use of CSV data with scripts is released as a Beta feature.

You can run simple tests utilizing data in a CSV file. The CSV data is converted at runtime into an executable format. This enables the test to run using the required parameters, without manual coding the functions in the script.

The CSV file can contain columns for METHOD, URL, HEADERS, PAYLOAD, TRANSACTION, THINKTIME (in any order). The minimum content is the URL column. By default, DevWeb will use the GET method if no other method is specified.

The CSV file must be saved in the script folder as main.csv. When you run the script, DevWeb uses the CSV data for the test.

Note: If the script folder contains both a main.csv file and a main.js file, by default DevWeb will use the main.js when the script is run.

CSV file example:

## Develop a DevWeb script in VuGen

You can create and develop a DevWeb script in VuGen using the DevWeb protocol. You can record and generate your business process using the DevWeb Proxy Recorder.

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

Note: DevWeb scripts created in OpenText Performance Engineering for Developers can be opened with VuGen.

For more information about DevWeb scripts in VuGen, see the DevWeb Protocol section in the VuGen Help Center.

## See also

- Create scripts
- Run scripts
- DevWeb JavaScript SDK

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