Example

The following is an example of a test case. A test case can contain any number of script commands.

LOAD_SERVER SampleServer

START_TESTCASE SampleTestCase

RUN_TEST_STEP 100 SampleServer SampleStep1 c:\sampletest.ini SectionOne
RUN_TEST_STEP 100 SampleServer SampleStep2 c:\sampletest.ini SectionOne
RUN_TEST_STEP 100 SampleServer SampleStep3 c:\sampletest.ini SectionOne
RUN_TEST_STEP 100 SampleServer SampleStep4 c:\sampletest.ini SectionOne

END_TESTCASE SampleTestCase

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.

Execution of tests involves the following steps:

  • Loading the server using LOAD_SERVER or LOAD_SUITE.

    Note: Test steps to be executed must have their corresponding test server preloaded.

  • Executing test steps using RUN_TEST_STEP.

Notes:

  • The tests cases can be grouped using START_TESTCASE and END_TESTCASE.

  • The TestServer name argument provided for LOAD_SUITE or LOAD_SERVER command, and RUN_TEST_STEP command is case sensitive.

See also

Using TEF