Working in non-GUI mode
Many test actions can be completed in non-GUI mode by using the command line, Ant, or REST interfaces.
- Automated build processes
- Reporting tools
- Plug-ins for other tools
- Custom software programs
Many different programs can run REST commands. To run the command, you send an HTTP request to a REST resource and pass HTTP query parameters or a request body. The request body is typically in XML format, although a few resources use JSON.
IntegrationTesterCmd --serverUrl "https://example.com:5443/RTCP/" --domain myDomain --environment localhost --name "My stub" start-stub
You can also call an Ant task from the command line.
Using the command line requires an installation of Rational® Integration Tester, and using Ant requires the Rational® Test Control Panel Ant tasks archive file, as well as an installation of Ant. Stand-alone programs written in languages like Java and C# can call REST methods directly.
Actions | Command line | Ant tasks | REST services, grouped by resource type |
---|---|---|---|
Managing authentication for REST services | See REST services. | ||
Running tests | RunTests | IntegrationTester | |
Managing test results | IntegrationTesterCmd command | ||
Managing domains | See all the REST services at
/RTCP/api/swagger-ui.html |
||
Managing environments | IntegrationTesterCmd command | See all the REST services at
/RTCP/api/swagger-ui.html |
|
Managing scenarios | IntegrationTesterCmd command | See all the REST services at
/RTCP/api/swagger-ui.html |
|
Managing stubs | IntegrationTesterCmd command | See all the REST services at
/RTCP/api/swagger-ui.html |
Availability of the various interfaces
- Command line
- Both the
RunTests
andIntegrationTesterCmd
commands are supplied with Rational® Integration Tester. For more information on the commands, see Command-line interfaces. - Ant
- Support for the environment, scenario and stub Ant tasks is supplied
with Rational®
Test Control Panel. Support for the
IntegrationTester
Ant task is supplied only with Rational® Integration Tester. For more information on the Ant tasks, see Ant tasks. - REST
- The REST interfaces described here are only a set of specifications, so no client is provided. However REST calls must be made to an instance of Rational® Test Control Panel. For more information on the REST services, see REST services.
Domain level security
- For the command-line, use the securityToken option.
- For Ant tasks, use the securityToken attribute.
- For the REST APIs, use the X-Jazz-Session Authorization header. For more details, see REST and Rational Test Control Panel security.
The following topics explain how to use the command line, Ant tasks, or REST interfaces.