Creating a TEF Script File

A TEF script file is a text file, which contains series of commands recognized by the TestExecute script engine to perform test execution and other utility functions. It is used to control the flow of execution of test cases or test steps. A sample .script file is given below:

PRINT Run all Sample Tests 
LOAD_SUITE SampleServer
PREFIX RUN_UTILS
MkDir c:\SampleTest\
CopyFile z:\SampleTest\SampleTest.ini c:\SampleTest\SampleTest.ini
MakeReadWrite c:\SampleTest\SampleTest.ini
REMOVE_PREFIX

START_TESTCASE TC012344
START_REPEAT c:\sampletest\sampletest.ini SectionOne repeatParam
RUN_TEST_STEP 100 SampleServer SampleStep1  c:\sampletest\sampleTest.ini SectionOne
END_REPEAT
END_TESTCASE TC012344

For more details on script command reference see Script Command Syntax. For examples see the Examples section.

Note: If your system drive is other than C: drive, use the SYSDRIVE variable with the absolute file path to point to the system drive.