Scripting with Eclipse
This topic describes how to build and run DevWeb scripts using the Eclipse IDE.
Write DevWeb scripts in Eclipse
You can use the EmptyScript template as a basis for your script.
To set up and write a script:
- Copy the EmptyScript folder from <DevWeb root>\examples\ to a location on the same machine as DevWeb.
-
In Eclipse, select File > Import Projects from File System or Archive. The Import Projects from File System or Archive wizard opens.
-
In the Import source field, enter the path to the EmptyScript folder, or click Directory and browse to the folder. Click Finish.
- From Project Explorer, open EmptyScript > main.js to start writing your code.
Run DevWeb scripts from Eclipse
You can run your DevWeb script for up to 50 Vusers. To run the script in Eclipse, you set up Eclipse to use the DevWeb executable.
To run a script:
- Select Run > External Tools > Eternal Tools Configurations and click the New Configuration button.
- Enter a name for the configuration in the Name field, for example, DevWebSingleRun.
- Under Location, enter the path to DevWeb. If relevant, you can use the DEVWEB_PATH environment variable using ${env_var:DEVWEB_PATH}, as in the example below.
- Under Working Directory, enter the path to the script.
-
Under Arguments, add the following arguments, separated with a blank space:
- -ide=eclipse
- The path to the script, for example: C:\Scripts\EmptyScript
Example:
- Click Run.
See also: