User management
User management | Desktop application
Read more about logging in and reserving licenses in the Otii 3 Desktop App here:
User management | In test script
It is possible to use the TCP-API directly in the test script for user management:
The client.connect()
is used to connect, login and reserve licenses. It works like this:
If the TCP server isn't already logged in, the credentials will be read from a
credentials.json
file in the current directory, or from the environment variable OTII_USERNAME and OTII_PASSWORD.If there is no Automation Toolbox license reserved and there is a license available, it will automatically be reserved.
By default the system will only try to reserve an Automation Toolbox license. If you need to reserve another Toolbox as well add all the licenses you need to the
licenses
parameter:
When disconnecting from Otii all licenses that were implicitly reserved will be returned, and if the
connect
method logged in to the system, it will log out again.If you want to manually reserve a specific license, you use an empty array for the
licenses
parameter:
User management | Python tool
You can do the user management from the command line using our python module. You install the module with:
You can then use the otii_control tool for user management:
And here is an example bash script:
Last updated