This topic provides information on working with DevWeb scripts in Controller.
Run load tests with DevWeb scripts
In Controller, you can run load tests using DevWeb scripts created in VuGen, or upload DevWeb scripts created in LoadRunner Developer.
Creating DevWeb scripts in LoadRunner Developer enables you to take advantage of its coding flexibility and integration with multiple IDEs. You can then upload and run the DevWeb scripts directly in Controller scenarios. Any conversion required takes place automatically, so that the properties for the script can be viewed in the Controller Runtime Settings UI, and the script resembles any DevWeb script created in VuGen.
You can add DevWeb scripts to scenarios and run tests side-by-side with any other tests. You can also edit runtime settings, and generally use the scripts in the same way as for other web-based protocols.
Tip: Check out the video: Run DevWeb scripts in LoadRunner Controller.
Add DevWeb scripts to scenarios
This task describes how to add DevWeb scripts to scenarios, for DevWeb scripts created in either VuGen or DevWeb Standalone.
To upload a DevWeb script:
- On the main Controller toolbar, click the New Scenario button .
- In the New Scenario dialog box, in the Select the scripts... area, make sure the LoadRunner Scripts radio button is selected.
- Click the Browse button and in the Open Script dialog box, browse to the DevWeb script location.
In Files of type field, select DevWeb Scripts (*.js):
- Click OK in the New Scenario dialog box. The scenario containing the DevWeb script opens in the Design tab.
When a Vuser arrives at the rendezvous point, it waits until all Vusers participating in the rendezvous arrive at that point. When the designated number of Vusers arrive, they are released.
For more information on working with rendezvous points, see Rendezvous points overview.
You can edit runtime settings for your DevWeb script from Controller. Select Runtime Settings in the right-click menu for the script to open the a dedicated Runtime Settings window for DevWeb.
From the Runtime Settings window you can define run properties for your script, including:
- Run logic
- Logger settings
- Proxy settings, including PAC support
- HTTP, SSL, and encryption settings
- Snapshots during replay
Note: When a script is added to a scenario, the Create snapshots during replay is set to On error. You can change the setting to Never or Always, but take into account that snapshots can impact performance during load testing.
Measurements from DevWeb tests are reported to the graphs under the web-based category.
There is an additional graph for DevWeb tests, the Bytes Sent per Second graph. The graph displays the amount of data sent by DevWeb Vusers to the server.