TEST SUITE
C++ Test Script Language
Syntax
TEST SUITE <test suite name> { <test suite item>}
Location
OTD script, TEST CLASS, TEST SUITE
Description
The TEST SUITE statement describes an Object test suite, which is one of the structuring entities of an C++ Test Driver Script. Test suites can appear at the root-level of a C++ Test Driver Script, in test classes, and in test suites.
<test suite name> is a C++ Test Script Language identifier.
<test suite item> may be one of the following entities:
-
TEST SUITE
-
TEST CASE
-
PROPERTY
-
PROC
-
PROLOGUE
-
EPILOGUE
All entities but TEST CASE are not ordered in a test suite scope. However, ON ERROR, EPILOGUE, and PROLOGUE may appear only once. The test cases and test suites of a test suite are executed sequentially.
Example
TEST SUITE ChargeTest {
TEST CASE Test1
{
/... */
}
TEST SUITE Test2
{
TEST CASE SubTest2a
{
/... */
}
TEST CASE SubTest2b
{
/... */
}
}
}