Article - Specifying environment variables for your application

Skip to end of metadata
Go to start of metadata

How to specify environment variables for your application

You can specify environment variables that should be set on start-up for your application.

The below will only specify variables for your application, not for your test script or for Squish.

IDE

In the IDE, under the "Test Management" perspective, in the "Test Suites" view, click on the "Test Suite Settings" icon. Then scroll to the section labeled "Environment". You can enter variables there, and they will be stored in the test suite as described below.

Command line

Create a plain text file which contains any number of VARIABLE=VALUE pairs, with one pair per line. Then add an entry ENVVARS=<filename> to the suite.conf file (<filename> is the name of the file that contains the pairs).

You can enter your variables in the IDE using the above method, and this file will be set up for you automatically.

Note that you are only specifying variables for your application, not for your test script or for Squish.

Batch file/Shell script

You can start your application from a batch file or shell script that sets all of your environment variables. Then set the batch file or shell script as a "Application" in the test suite settings to launch the application via this batch file or shell script.

Related information

Squish documentation on AUT variables

Different types of environment variables in Squish.

Setting up Squish to run from a batch file/shell script

Labels:
application application Delete
aut aut Delete
environment_variables environment_variables Delete
environment environment Delete
variables variables Delete
env env Delete
envvars envvars Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.