In STIF, you can create scripts that consist of a series of keywords and arguments, describing the operation of the test case. Scripts enable you to create advanced combinations of test cases that can be implemented in various test classes. In scripts you can reuse test classes and provide test cases with new arguments without a need of recompilation.
STIF provides two modes for script handling:
A test case file may contain several test cases, the descriptions of which start with the tag [Test]
and end with the tag [Endtest]
. The test case is then executed sequentially line by line. The test case itself is described with keywords, arguments and argument value pairs between the start and end tags.
An example of a Test Sripter test case is shown below:
[Test]
title Create, print, run example and delete
create TestScriptClass test
print Call Example method
test Example parameters
print Example method called, delete instance
delete test
[Endtest]
Each mode has a keyword vocabulary. For more information, see the links below.