Automated Tests

Automated tests for CLDC, MIDP, and CDC configurations execute on the test device without requiring user interaction. Automated tests can be queued up and run by the test harness and their results recorded without the user being present.

The configuration for standard automated test execution is the most common and the most simple of the tests that are run on the device. Automated tests are also the most convenient and the fastest tests for a user to run, since they are fully automated. The majority of tests in a test suite should be automated tests with other types of tests used only when it’s impossible to write automated tests.

In CLDC and MIDP configurations, the harness (running on a PC or a workstation) sends an application bundle containing the tests and an agent to the device where they are unpacked by the application management software (AMS) built into the device and run. In this configuration, user interaction is not required to run each test.

FIGURE 1-1illustrates the Framework configuration for running CLDC and MIDP standard automated tests. For CDC, the agent is started, downloads the tests via the communication channel, and executes them, without being restarted (a single agent runs from the beginning to the end of the test run).

See Chapter 2 for an example of writing an automated test and “Testing Devices With Automated Tests” on page 41 in Chapter 4 for information about automated test execution.

Chapter 1 Introduction 9

Page 29
Image 29
Sun Microsystems 1.2 manual Automated Tests