Deleting an environment by using an Ant task
You can delete an environment and its associated artifacts by using the IBM® Rational® Test Control Panel Ant tasks.
Here is an example
syntax:
<taskdef name="deleteEnvironment" classname="com.ghc.ghTester.ant.DeleteEnvironment" classpathref="tasklib"/>
<deleteEnvironment domain="<Domain name>" environment="<Environment name>"
serverUrl="https://Host name or IP address:5443/RTCP/" username="<User name>"
securityToken="<Security token>"/>
The following table lists the attributes that you can use with the
deleteEnvironment
Ant task for deleting an environment.
Attribute | Description | Required |
---|---|---|
environment |
Environment name | Yes |
domain |
Domain name | Yes |
|
Use the
force option to delete an environment by
attempting to ignore any warnings or errors that might occur.
You can specify if a specific problem identifier must either be ignored or
considered when the environment is deleted. Following are the problem identifier
parameters:
Example:
|
|
securityToken |
The value of the security token to use for authentication with Rational® Test Control Panel when domain security is enabled (optional). For more information, see Domain level security. | No, default is to send no token. |
serverUrl |
URL of the Rational® Test Control Panel | Yes |
username |
The user name under which to perform the operation. | No |
Note: All environment deletion events are recorded in the
Rational® Test Control
Panel
Audit log. (For information about this log, refer to Administration of Rational Test Control Panel.)
Error codes
For details of any error codes, see Exit codes for Command-line client and Ant client.