FIGURE 1-1 Framework Configuration for Standard Automated Tests
PC or Workstation | Device |
JavaTest Harness
1getNextApp
2 Application Bundle | AMS |
(agent + tests) |
|
|
|
getNextTest
Execution |
|
Server | 4 Test Name |
|
Agent
5sendTestResult
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