Answered question

How could I run a system command using a Javascript?

For my load testing, I will need my virtual users to launch some system commands, like from the command line. Do you have a way to do that in NeoLoad?

Support
Support

Support

Level
0
-10 / 100
points
Team
Support
Support

Support

Level
0
-10 / 100
points
Team

Here is an example when we launch the "dir.bat" file.

This file must be created before running this command.

 

process=java.lang.Runtime.getRuntime().exec("c:\\Temp\\dir.bat");

 

This script must be available on all the load generators.

 

For more information, see "NeoLoad Javascript API" in NeoLoad documentation.

Did you find this useful ?

No (2)

Yes (1)

33%

33% of users found this answer useful