Using Parameters in WSH Tests

Parameters that are defined for a WSH test automatically add a name and value pair to the command line as an additional argument and set the parameters as environment variables for the called process. This functionality allows you to access all parameters defined for your test within the WSH script.

For example a WSH test is defined with myscript.js as script and //B as switch. Additionally the test requires a parameter called IPAddress with the value 192.168.1.5 and another parameter called Port with the value 1492. The resulting command line for the WSH execution in this example is:

csript myscript.js //B IPAddress=192.168.1.5 Port=1492