Launching tests from scripts and applications

Tests that can be launched from the user interface can also be launched programmatically via scripts and applications.  A public automatable test execution service is offered and exposed through the TPTP automatable services framework that enables this functionality.  JUnit, URL and other conforming test types may be launched from Ant scripts using a set of pre-defined Ant tasks, from operating system specific shell scripts using the provided shell components and from arbitrary Java programs using the provided lightweight Java components.

Prerequisites:

The task of launching tests programmatically inherits the prerequisites as launching tests by way of the user interface with the exception that the workbench does not have to be running to initiate tests.  The environment from which the test launch is initiated dictates additional requirements (for example, using Ant tasks in Ant scripts requires an Ant task be properly installed).

Related concepts
Overview of the automatable services framework

Related tasks
Using the TPTP automatable services

Related references
Supported test execution service properties