Sun Microsystems 1.2 Telephone Accessories User Manual


 
12 Java ME TCK Framework Developer’s Guide July 2007
Interactive Tests
Interactive tests are the tests that require some form of user interaction and cannot
be executed without such interaction. From a design point of view, interactive tests
are a subtype of distributed test. As a subtype of distribute test, interactive tests
generally execute on the test device under the control of a component called an
agent. However, unlike distributed tests, interactive tests also require some form of
user interaction as a part of the test. Interactive tests might require that the user
change something with a device, which triggers event generation or require the user
to verify that a device plays sound or vibrates. But most typically, interactive tests
are used to validate user interface on the device.
Like distributed tests, interactive tests validate API functionality while the device is
connected to a remote host (the PC or workstation where the harness runs). In this
configuration, one part of the distributed test runs on the device and the other part
of the test runs on a remote host (the PC or workstation where the harness runs)
using a passive agent running on in the same VM as the harness.
Interactive tests are not supported in pure CLDC (without MIDP).
FIGURE 1-3
illustrates the Framework configuration for MIDP interactive 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 “Testing User Interfaces With Interactive Tests” on page 48 in
Chapter 4 for information about writing interactive tests and interactive test
execution.