Sun Microsystems 1.2 Telephone Accessories User Manual


 
10 Java ME TCK Framework Developer’s Guide July 2007
FIGURE 1-1 Framework Configuration for Standard Automated Tests
Diagram of a standard automated test configuration.
Distributed Tests
Distributed tests are a special type of automated tests. Not only do they have a
device side test component, which is executed under the control of a test agent (as
with any regular automated tests), but they also have one or more remote
components on other devices or the Java SE platform side. The distributed test
components have names and communicate with each other by sending messages to
each other by way of a messaging service. The remote components of a distributed
test typically run on a harness host by using a passive agent in the same virtual
machine as the harness and provide some additional functionality needed by the
test. For example, a test verifies that an HTTPS connection can be made to the
remote host. The remote component that runs on the Java SE platform would be an
HTTPS server. The test on the device performs the following sequence of actions:
1. Sends a message requesting that the server start.
2. Connects to the server and verify that the connection is OK
3. Sends a message to stop the server
1
2
3
4
5
getNextApp
Application Bundle
(agent + tests)
getNextTest
sendTestResult
Test Name
DevicePC or Workstation
JavaTest Harness
Execution
Server
AMS
Agent
Tests