TestExecute Syntax

Purpose

TestExecute is a command-line interface to execute the test steps.

Syntax

The TEF script engine expects a command-line in the following format.

> TestExecute.exe <ScriptFilePath> [options]

where <ScriptFilePath> is the test script to execute.

The following options can be used:

Option Description

-d

Used to put the system into debug mode. This means that the PAUSE command pauses the script engine until the user hits a key.

This option can appear anywhere after the <ScriptFilePath> argument.

-slf

Used to specify that the test steps and the script engine must send their output to separate log files.

This option can appear anywhere after the <ScriptFilePath> argument.

-tci | -tcx

Used to specify the test cases to be included (-tci) or excluded (-tcx) during execution. The option (-tci or -tcx) is followed by a list of test case IDs to be included or excluded. You can specify the test case IDs in three different ways as follows:

  • A list of comma-separated test case IDs

  • A range of test case IDs

  • A .tcs file containing the test case IDs delimited by a new-line character.

You can specify the test case IDs using all the three different ways listed above. For example, in the following testexecute command, the test cases list is a combination of comma-separated test case IDs, test case ID range and a .tcs file containing IDs of the test cases to be included during execution:

> testexecute c:\tefintegrationtest\TEFIntegrationTest-regular.script -tci TEST-001,TEST-002,TEST-008:TEST-015,some.tcs

-help

Displays help content in the console window describing the usage of the TestExecute for executing script files. It is used without the <ScriptFilePath> argument.

-v

Displays the version number of TestExecute being used. It is used without the <ScriptFilePath> argument.