Sun Microsystems 1.2 Telephone Accessories User Manual


 
24 Java ME TCK Framework Developer’s Guide July 2007
lib directory
tests directory
classes directory
doc directory
testsuite.jtt File
The testsuite.jtt file is located in the root directory of the test suite. It provides
a registry of information about the test suite and defines test suite properties. The
harness uses these properties to instantiate a TestSuite object that acts as a portal
to all information about the test suite. Whenever the harness requires information
about the test suite, it queries the TestSuite object.
The testsuite.jtt file generally contains the following entries that tell the
JavaTest harness how to start the TestSuite class. It might also contain other
entries. See the JavaTest Architect’s Guide for detailed information about the standard
properties used by the TestSuite that can be specified in the testsuite.jtt file.
name - The name of the test suite.
id - A unique identifier composed of letters, digits, underscore, minus, and
hyphen used to identify a specific version of a test suite.
tests (optional) - By default, the JavaTest harness looks for test source files and
test descriptions in the tests/ directory in the test suite root directory.
classpath - Entry that specifies the class path on which the main TestSuite
class can be found (typically, a JAR file that contains test suite-specific
components).
This entry is required if the TestSuite class or any other classes the TestSuite
refers to are not located within javatest.jar.
testsuite - Entry that specifies the name of the TestSuite class and any
arguments the class requires.
The following is the testsuite.jtt file used by the Simple Test Suite that comes
with the Framework.
CODE EXAMPLE 3-1 Simple Test Suite testsuite.jtt File
name=Simple Test Suite
id=Sample_TestSuite_1
tests=tests
classpath=lib/j2mefw_jt.jar lib/sample_jt.jar lib/interviewlib.jar
testsuite=sample.suite.SampleTestSuite