All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----TET.TestCase | +----TET.SimpleTestCase
SimpleTestCase
is a base class for TETware test cases.
To create a new test case, derive a new class from
SimpleTestCase
. Test purposes are defined as public instance
methods of the form:
Where each '#' represents a sequence of one or more digits. The first sequence of digits (the "i"-string) denotes the number of the invocable component to which the test purpose belongs. The second sequence (the "t"-string) is used to determine the execution order of the test purposes, AKA the test purpose number. Note that the sequence of digits ispublic void i#t#(TestSession ts)
A test purpose method may throw exceptions, but these will result in an unresolved result code being marked for that test.
The startup()
and cleanup()
methods can be
overridden to provide code which is executed before and after all test
purpose methods.
Attempts to load this class in the same virtual machine as
ChildTestCase
will fail. It is only permissible to have one
type of test case in one virtual machine.
SimpleTestCase
.
public SimpleTestCase()
SimpleTestCase
.
public static void main(String args[], SimpleTestCase tc)
tc
argument.
public static void main(String pname, String args[], SimpleTestCase tc)
public static void main(String pname, String args[], SimpleTestCase tc, TestSession ts)
public void startup(TestSession ts)
TestSession
object for the
current test run.
public void cleanup(TestSession ts)
TestSession
object for the
current test run.
All Packages Class Hierarchy This Package Previous Next Index