Stop a scenario by using an Ant task
You can stop a scenario by using the HCL® Quality Server Ant tasks.
Here is an example
syntax:
<taskdef name="stopScenario" classname="com.ghc.ghTester.ant.StopScenario" classpathref="tasklib" />
<stopScenario domain="<Domain name>" environment="<Environment name>" name="<Scenario name>"
serverUrl="https://Hostname or IP address:5443/" />
The following table lists the attributes that you can use with the
stopScenario
Ant task for stopping a scenario.
Attribute | Description | Required |
---|---|---|
async | Run asynchronously (flag). | No, default option is synchronous. |
domain | Domain name | Yes |
environment | Environment name | Yes |
failureProperty | The name of a property that is set in the event of a failure. | No |
haltOnFailure | Set to true to fail the Ant script if the scenario fails to stop (flag). | No, default value is false. |
name | The name of the target scenario to start. | No |
owner | Filters the scenarios by owner. | No |
securityToken |
Specify the security token generated for you to authenticate with HCL® Quality Server when the domain security is enabled. In the locked environment mode, the operation can be performed by the user who locked the environment. |
No, default is to send no token. |
serverUrl | URL of the HCL® Quality Server | Yes |
username | Specify the user name to authenticate with the server if the environment is locked and the domain security is disabled. | No |
Scenario selection
For a description of how to select a scenario, see Scenario selection.
Error codes
For details of any error codes, see Exit codes for Command-line client and Ant client.