Generating a Token for CTM RESTful API Calls
In order to use RESTful API calls with Continuous Testing Manager (CTM), you need to create an access token. The access token is a credential that informs the API that the owner of the token has been authorized to access the API and can perform specific actions.
To generate a token:
-
Open CTM Swagger UI:
http://<server>/continuoustestingmanager/swagger
Where <server> should be replaced by the server name where Worksoft Application Server has been installed.
-
Click Authorize.
The Available Authorizations dialog opens.
-
Enter the following information:
Field
Description
Username
Enter the CTM user name.
Password
Enter the password for the CTM user.
Client Credentials Location
Accept the default value Authorization header.
client_id
Leave field blank.
client_secret
Leave field blank.
-
Click Authorize.
A successful authorization screen opens.
-
Click Close.
You are now able to access the CTM APIs.