Unlocking an environment by using the command line
You can unlock an environment by using the HCL OneTest™ API command line. This option is useful in situations where Ant is not available.
The syntax to use is as follows::
IntegrationTesterCmd Options unlock-environment
Here is an example syntax:
IntegrationTesterCmd --serverUrl "https://Host name or IP address:5443/RTCP/"
--domain <Domain name> --environment <Environment name>
--username <User name> unlock-environment
The following table lists the options that you can use with the IntegrationTesterCmd
command
for unlocking an environment.
Option | Description |
---|---|
--serverUrl/-u | URL of HCL Quality Server. |
--domain/-d | Domain name |
--environment/-e | Environment name |
--username/-l | Specify the user name to authenticate with HCL Quality Server to unlock the environment when the domain security is disabled. |
--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. |
Error codes
For details of any error codes, see Exit codes for Command-line client and Ant client.