diff -r f1112f777ce9 -r 96906a986c3b testdev/ite/src/com.nokia.testfw.stf.help/html/concepts/scripts.htm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testdev/ite/src/com.nokia.testfw.stf.help/html/concepts/scripts.htm Tue Mar 30 14:39:29 2010 +0800 @@ -0,0 +1,31 @@ + + + + +Test scripts + + + + +

Test scripts

+

In STF, you can create scripts that consist of a series of keywords and arguments, describing the operation of the test case. Scripts let you to create advanced combinations of test cases that can be implemented in various test classes. By using scripts you can reuse test classes and provide test cases with new arguments without a need of recompilation.

+ +

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 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 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.

+ +
Related tasks
+ + +
Related references
+ + + + +