Updating a managed stub by using an Ant task
You can update the values of the attributes of a managed stub by using the HCL® Quality Server Ant tasks.
<taskdef name="updateManagedStub" classname="com.ghc.ghTester.ant.UpdateManagedStub" classpathref="tasklib" />
<updateManagedStub name="<Stub name>" version="<Stub version number>" serverUrl="https://<Hostname or IP address>:5443/RTCP/"
stubId="<stub Id>" logLevel="<log level>" passthrough="<passthrough>" optimizeForPerformance="<optimize For Performance>"
responseTime="<responseTime>" inputTags="<inputTags>" agentTags="<agentTags>" workerThreadCount="<workerThreadCount>"
dedicatedEngineJvmOptions="<dedicatedEngineJvmOptions>" securityToken="<securityToken>" />
- The log level configured in the stub definition.
- The Pass-through behavior for the stub.
- The performance optimization value.
- The delays for response.
- The input tags.
- The agent tags.
- The number of worker threads.
- The options for a dedicated JVM engine.
- The security token that is required to authenticate the connection if domain-level security is enabled.
updateManagedStub
Ant task for updating the attributes of a managed stub.
Attribute | Description | Required | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
agentTags | No | |||||||||||
dedicatedEngineJvmOptions | If you want to run the stub on a dedicated engine, you can also specify the JVM options by using the dedicatedEngineJvmOptions parameter. You can then specify the values for the attributes such as the maximum memory, the initial memory, and the garbage collection policy that must be applied for the dedicated engine. The JVM options can be specified only if you set this option to "true".Example:
Note:
|
No | ||||||||||
inputTags | No | |||||||||||
logLevel | No | |||||||||||
name | Specify the name of the target stub. | Yes | ||||||||||
passthrough | ||||||||||||
optimizeForPerformance | Specify the value true to disable performance optimization when starting the stub. | No | ||||||||||
responseTime | Specify the value for the Response time
attribute. You can specify the values for the delay for the following types of response times:
|
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 | ||||||||||
stubId | Specify the ID of the target stub. | Yes | ||||||||||
version | Version of the target stub to start. | No | ||||||||||
workerThreadCount | Specify the number of worker threads used to service requests to the stub. | No |
Error codes
For details of any error codes, see Exit codes for Command-line client and Ant client.