Cloud Runner TestUserApi – Scoped, Global
Manages test user jobs to be executed in a cloud runner for Automated Test Framework (ATF). This API is part of the CloudRunnerApi script include.
You can use this API for the following tasks:
- Start the user test job.
- Set the cloud user.
- Check if the user specified is valid.
- Check the progress of the user test job.
- Cancel the test job.
In global scope, this API is executed within the sn_atf_tg namespace. You must have the ATF Test Generator and Cloud Runner (sn_atf_tg) plugin activated to use this API.
See also:
- Cloud Runner TestGenerationApi – Scoped, Global
- Cloud Runner TestRunnerApi – Scoped, Global
- Cloud Runner Test Runner REST API
Parent Topic:Server API reference
TestUserApi – cancelJob(String snboqId)
Sets the test user job status in the Browser Orchestration Queue [sn_atf_tg_sn_boq] table to complete.
| Name | Type | Description |
|---|---|---|
| snboqId | String | Required. The sys_id of the BOQ record in the Browser Orchestration Queue [sn_atf_tg_sn_boq] table. |
| Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| null | Null if successful, error message otherwise. | ||||||||||||||||||||||||||||||||||||||||||||||
| Error | If unsuccessful, possible error messages:- No sys\_id passed in – The JSON object provided doesn’t have a BOQ ID entry. Verify that the JSON object is structured as `{snboqId: " The following example shows how to start a test user for the admin user, get the progress, and cancel the test user. After confirming the locked out user as a valid cloud user, the code sets the cloud user as an ITIL administrator. In the global scope, use the sn_atf_tg namespace. Output: TestUserApi – isValidCloudUser(String username)Checks whether a provided user is a valid cloud user.
The following example shows how to start a test user for the admin user, get the progress, and cancel the test user. After confirming the locked out user as a valid cloud user, the code sets the cloud user as an ITIL administrator. In the global scope, use the sn_atf_tg namespace. Output: TestUserApi – progress(String snboqId)Provides the status of each user test for a provided Browser Orchestration Queue (BOQ) record.
|