Sun Microsystems 1.2 Telephone Accessories User Manual


 
15
CHAPTER
2
Writing a Simple Automated Test
Automated test execution is the most common and simple of the test configurations
that are run on the test device. User interaction is not required to run automated
tests. The following instructions describe how to create a simple automated test and
add it to an existing Framework supplied test suite.
This chapter contains the following sections presented in the sequence that a test
developer follows when writing a test that is added to an existing test suite:
Writing an Automated Test
Building an Updated Simple Test Suite
Testing an Updated Simple Test Suite
Writing an Automated Test
This chapter provides the source code and instructions for creating a simple
automated test. General information about the process of creating tests can be
located in Chapters 5 and 6 of the Java Technology Test Suite Development Guide.
When creating an automated test, test developers must consider the following
factors:
Automated tests must extend com.sun.tck.cldc.lib.MultiTest, a base
class for tests with multiple sub test cases.
This example is valid for CLDC, MIDP, and CDC automated tests. For tests that
are to be executed only on a CDC stack and never executed on CLDC/MIDP, the
base class is javasoft.sqe.javatest.lib.MultiTest.
Developers must add individual test case methods to the derived test class to
create a useful test class.