Cloud Runner TestGenerationApi – Scoped, Global
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- API reference
Manages test job generation to be executed in a cloud runner for Automated Test Framework (ATF). This API is part of the CloudRunnerApi script include.
- Start the test generation job.
- Check the progress of the test generation job.
- Cancel the test generation 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.
TestGenerationApi – cancelJob(String snboqId)
Sets the test generation job and its associated update set record to complete status. Cancels the root trackers of any generated tests that are running. If any test jobs are in progress on cancellation, this method sets any of the in-progress test records generated to skipped.
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. |
Example
The following example shows how to start generating tests for the incident table and cancel the test generation. In the global scope, use the sn_atf_tg namespace.
TestGenerationApi – progress(String snboqId)
Provides the status of each generated test for a provided Browser Orchestration Queue (BOQ) record.
Name | Type | Description |
---|---|---|
snboqId | String | Required. The sys_id of the BOQ record in the Browser Orchestration Queue [sn_atf_tg_sn_boq] table. |
Example
The following example shows how to start generating tests for the incident table, get the progress, and cancel the test generation. In the global scope, use the sn_atf_tg namespace.
Output:
TestGenerationApi – startJob(String tableEncodedQuery, String userEncodedQuery, String catalogEncodedQuery, Number maxTestCount, Number maxTestCountPerTable, Number maxTestCountPerItem, String email, Boolean separateUpdateSetPerScope, String scopeForGeneratingTests, String suiteName)
Inserts a record into the Browser Orchestration Queue (BOQ) [sn_atf_tg_sn_boq] table to start a test job.
Type | Description |
---|---|
String | The sys_id of the BOQ record in the Browser Orchestration Queue [sn_atf_tg_sn_boq] table. |
Example
The following example shows how to start generating tests for the incident table. In the global scope, use the sn_atf_tg namespace.
Output:
On this page
- TestGenerationApi – cancelJob(String snboqId)
- TestGenerationApi – progress(String snboqId)
- TestGenerationApi – startJob(String tableEncodedQuery, String userEncodedQuery, String catalogEncodedQuery, Number maxTestCount, Number maxTestCountPerTable, Number maxTestCountPerItem, String email, Boolean
separateUpdateSetPerScope, String scopeForGeneratingTests, String suiteName)