41
CHAPTER
4
Writing Tests
This chapter describes how to write different types of Java ME technology tests that
use Framework resources and to set special properties required by the tests. General
information about the process of creating tests can be located in Chapters 5 and 6 of
the Java Technology Test Suite Development Guide. Additional information about
writing tests for use with the JavaTest harness can be located in Chapters 3 of the
JavaTest Architect’s Guide.
This chapter contains the following sections:
■ Testing Devices With Automated Tests
■ Testing Communications or Networking With Distributed Tests
■ Testing User Interfaces With Interactive Tests
■ Testing Application Provisioning With OTA Tests
■ Testing Security-Constrained Functionality With Security Tests
■ Adding Resource Files in Tests
■ Enabling Test Selection
Testing Devices With Automated Tests
Automated tests are the most common and the most simple of the tests that are run
on the device. In this configuration, 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.
See Chapter 2 for a detailed description, procedure, and example of writing
automated tests. In addition, SimplestTestSuite, SimpleTestSuite, and
AdvancedTestSuite directories contain examples of automated tests.