3.12.5.2 Using environment variables in tests

You can add variables to your operating system, which can be used in your tests.

You will need to set environment variables which have the form:

"TEST_UDV_<variablename>"

To use the variable in your tests, enter the variable name (everything after the underscore) preceded by a dollar sign. Do not enter the "TEST_UDV_" part.

\includegraphics[height=2cm]{danger} After entering or changing an environment variable, you will need to restart the ITE . Environment variables for the ITE (i.e. for the test) are only read from the machine on which the ITE is running, not from the machine where the AUT Agent is running.

Your system administrator will be able to help you with operating-system specific ways of setting environment variables.

Useful variables These variables can be used as environment variables on your machine or as JVM properties in your AUT configuration.

TEST_AUT_KEEP_ALIVE_DELAY
This can be useful if you are using the action to prepare for termination. You can use this variable to configure (in millseconds) how long the AUT should be ''kept alive'' after the termination command (e.g. pressing "Exit" in order for the correct communication between the ITE and the AUT to occur. The value is set to 2000ms per default.
TEST_AUT_POST_DEREGISTRATION_DELAY
This can be useful if you are using the action synchronize shutdown and re-start. You can use this variable to configure (in milliseconds) how long your AUT requires after closing to perform tasks such as saving resources and settings.



Copyright BREDEX GmbH 2013. Made available under the Eclipse Public License v1.0.