@autifyhq/autify-sdk 0.31.0 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/mobile/client.d.ts +4 -4
- package/dist/generated/mobile/openapi/api.d.ts +4 -4
- package/dist/generated/mobile/openapi/common.d.ts +1 -1
- package/dist/generated/web/client.d.ts +38 -38
- package/dist/generated/web/client.js +4 -4
- package/dist/generated/web/openapi/api.d.ts +63 -61
- package/dist/generated/web/openapi/api.js +19 -17
- package/dist/generated/web/openapi/common.d.ts +1 -1
- package/package.json +15 -15
|
@@ -18,7 +18,7 @@ export declare class MobileClient {
|
|
|
18
18
|
* @throws {RequiredError}
|
|
19
19
|
* @memberof BuildsApi
|
|
20
20
|
*/
|
|
21
|
-
uploadBuild(projectId: string, file: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadBuild201Response, any, {}>>;
|
|
21
|
+
uploadBuild(projectId: string, file: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadBuild201Response, any, {}, any>>;
|
|
22
22
|
private readonly testPlansApi;
|
|
23
23
|
/**
|
|
24
24
|
* Run a test plan
|
|
@@ -29,7 +29,7 @@ export declare class MobileClient {
|
|
|
29
29
|
* @throws {RequiredError}
|
|
30
30
|
* @memberof TestPlansApi
|
|
31
31
|
*/
|
|
32
|
-
runTestPlan(testPlanId: string, runTestPlanRequest: RunTestPlanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunTestPlan201Response, any, {}>>;
|
|
32
|
+
runTestPlan(testPlanId: string, runTestPlanRequest: RunTestPlanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunTestPlan201Response, any, {}, any>>;
|
|
33
33
|
private readonly testResultsApi;
|
|
34
34
|
/**
|
|
35
35
|
* Get a test result.
|
|
@@ -40,7 +40,7 @@ export declare class MobileClient {
|
|
|
40
40
|
* @throws {RequiredError}
|
|
41
41
|
* @memberof TestResultsApi
|
|
42
42
|
*/
|
|
43
|
-
describeTestResult(projectId: string, id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeTestResult200Response, any, {}>>;
|
|
43
|
+
describeTestResult(projectId: string, id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeTestResult200Response, any, {}, any>>;
|
|
44
44
|
/**
|
|
45
45
|
* List test results.
|
|
46
46
|
* @summary List test results
|
|
@@ -52,5 +52,5 @@ export declare class MobileClient {
|
|
|
52
52
|
* @throws {RequiredError}
|
|
53
53
|
* @memberof TestResultsApi
|
|
54
54
|
*/
|
|
55
|
-
listTestResults(projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTestResults200Response, any, {}>>;
|
|
55
|
+
listTestResults(projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTestResults200Response, any, {}, any>>;
|
|
56
56
|
}
|
|
@@ -564,7 +564,7 @@ export declare class BuildsApi extends BaseAPI {
|
|
|
564
564
|
* @throws {RequiredError}
|
|
565
565
|
* @memberof BuildsApi
|
|
566
566
|
*/
|
|
567
|
-
uploadBuild(projectId: string, file: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadBuild201Response, any, {}>>;
|
|
567
|
+
uploadBuild(projectId: string, file: any, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadBuild201Response, any, {}, any>>;
|
|
568
568
|
}
|
|
569
569
|
/**
|
|
570
570
|
* TestPlansApi - axios parameter creator
|
|
@@ -627,7 +627,7 @@ export declare class TestPlansApi extends BaseAPI {
|
|
|
627
627
|
* @throws {RequiredError}
|
|
628
628
|
* @memberof TestPlansApi
|
|
629
629
|
*/
|
|
630
|
-
runTestPlan(testPlanId: string, runTestPlanRequest: RunTestPlanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunTestPlan201Response, any, {}>>;
|
|
630
|
+
runTestPlan(testPlanId: string, runTestPlanRequest: RunTestPlanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RunTestPlan201Response, any, {}, any>>;
|
|
631
631
|
}
|
|
632
632
|
/**
|
|
633
633
|
* TestResultsApi - axios parameter creator
|
|
@@ -723,7 +723,7 @@ export declare class TestResultsApi extends BaseAPI {
|
|
|
723
723
|
* @throws {RequiredError}
|
|
724
724
|
* @memberof TestResultsApi
|
|
725
725
|
*/
|
|
726
|
-
describeTestResult(projectId: string, id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeTestResult200Response, any, {}>>;
|
|
726
|
+
describeTestResult(projectId: string, id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeTestResult200Response, any, {}, any>>;
|
|
727
727
|
/**
|
|
728
728
|
* List test results.
|
|
729
729
|
* @summary List test results
|
|
@@ -735,5 +735,5 @@ export declare class TestResultsApi extends BaseAPI {
|
|
|
735
735
|
* @throws {RequiredError}
|
|
736
736
|
* @memberof TestResultsApi
|
|
737
737
|
*/
|
|
738
|
-
listTestResults(projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTestResults200Response, any, {}>>;
|
|
738
|
+
listTestResults(projectId: string, page?: number, perPage?: number, testPlanId?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTestResults200Response, any, {}, any>>;
|
|
739
739
|
}
|
|
@@ -63,4 +63,4 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R extends import("axios").AxiosResponseDefault ? AxiosResponse<T, any, {}, any> : R>;
|
|
@@ -17,7 +17,7 @@ export declare class WebClient {
|
|
|
17
17
|
* @throws {RequiredError}
|
|
18
18
|
* @memberof AutifyConnectApi
|
|
19
19
|
*/
|
|
20
|
-
createAccessPoint(projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccessPointResult, any, {}>>;
|
|
20
|
+
createAccessPoint(projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccessPointResult, any, {}, any>>;
|
|
21
21
|
/**
|
|
22
22
|
* You can delete an access point by passing in its name.
|
|
23
23
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -26,7 +26,7 @@ export declare class WebClient {
|
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
* @memberof AutifyConnectApi
|
|
28
28
|
*/
|
|
29
|
-
deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
29
|
+
deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
|
|
30
30
|
/**
|
|
31
31
|
* List access points for the project.
|
|
32
32
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -35,7 +35,7 @@ export declare class WebClient {
|
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
* @memberof AutifyConnectApi
|
|
37
37
|
*/
|
|
38
|
-
listAccessPoints(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccessPoint[], any, {}>>;
|
|
38
|
+
listAccessPoints(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccessPoint[], any, {}, any>>;
|
|
39
39
|
private readonly capabilityApi;
|
|
40
40
|
/**
|
|
41
41
|
* List available Capabilities.
|
|
@@ -49,7 +49,7 @@ export declare class WebClient {
|
|
|
49
49
|
* @throws {RequiredError}
|
|
50
50
|
* @memberof CapabilityApi
|
|
51
51
|
*/
|
|
52
|
-
listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any, {}>>;
|
|
52
|
+
listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any, {}, any>>;
|
|
53
53
|
private readonly creditApi;
|
|
54
54
|
/**
|
|
55
55
|
* Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.
|
|
@@ -63,7 +63,7 @@ export declare class WebClient {
|
|
|
63
63
|
* @throws {RequiredError}
|
|
64
64
|
* @memberof CreditApi
|
|
65
65
|
*/
|
|
66
|
-
getCreditUsage(projectId: number, dateFrom?: string, dateTo?: string, scenarioId?: number, testPlanId?: number, userId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UsedCredits, any, {}>>;
|
|
66
|
+
getCreditUsage(projectId: number, dateFrom?: string, dateTo?: string, scenarioId?: number, testPlanId?: number, userId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UsedCredits, any, {}, any>>;
|
|
67
67
|
private readonly projectApi;
|
|
68
68
|
/**
|
|
69
69
|
* Get project information.
|
|
@@ -72,29 +72,29 @@ export declare class WebClient {
|
|
|
72
72
|
* @throws {RequiredError}
|
|
73
73
|
* @memberof ProjectApi
|
|
74
74
|
*/
|
|
75
|
-
getProjectInfo(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectInfo, any, {}>>;
|
|
75
|
+
getProjectInfo(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectInfo, any, {}, any>>;
|
|
76
76
|
/**
|
|
77
77
|
* List the projects (workspaces) the access token\'s user is a member of, plus their partner\'s workspaces for a partner admin, ordered by id.
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
* @memberof ProjectApi
|
|
81
81
|
*/
|
|
82
|
-
listProjects(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Project[], any, {}>>;
|
|
82
|
+
listProjects(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Project[], any, {}, any>>;
|
|
83
83
|
private readonly resultApi;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
86
86
|
* @summary Get a test result.
|
|
87
87
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
88
88
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
89
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
89
|
+
* @param {boolean} [getDetails] The flag to get details of the test case result. Each test case result then carries its `steps`, which is `null` when the test case has no detailed output, for example one that ended in an internal error before uploading it, is still running, or is past its retention period.
|
|
90
90
|
* @param {Array<'failed' | 'internal_error' | 'review_needed'>} [statuses] Return only the test case results matching any of these filters, the same ones the result page offers. `failed` matches failed and internal-error test cases, `internal_error` only internal errors, and `review_needed` test cases with element warnings to review. For example `statuses=failed,review_needed`. Omit to return every test case result.
|
|
91
91
|
* @param {*} [options] Override http request option.
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
* @memberof ResultApi
|
|
94
94
|
*/
|
|
95
|
-
describeResult(projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeResult200Response, any, {}>>;
|
|
95
|
+
describeResult(projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeResult200Response, any, {}, any>>;
|
|
96
96
|
/**
|
|
97
|
-
* Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name.
|
|
97
|
+
* Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. This response doesn\'t include the localized label the UI shows. Values typed into a password field are returned as `******`.
|
|
98
98
|
* @summary Get the steps and element locators of a test case result.
|
|
99
99
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
100
100
|
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
@@ -102,7 +102,7 @@ export declare class WebClient {
|
|
|
102
102
|
* @throws {RequiredError}
|
|
103
103
|
* @memberof ResultApi
|
|
104
104
|
*/
|
|
105
|
-
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestCaseResultDetail, any, {}>>;
|
|
105
|
+
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestCaseResultDetail, any, {}, any>>;
|
|
106
106
|
/**
|
|
107
107
|
* List test results.
|
|
108
108
|
* @summary List test results.
|
|
@@ -114,9 +114,9 @@ export declare class WebClient {
|
|
|
114
114
|
* @throws {RequiredError}
|
|
115
115
|
* @memberof ResultApi
|
|
116
116
|
*/
|
|
117
|
-
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanResult[], any, {}>>;
|
|
117
|
+
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanResult[], any, {}, any>>;
|
|
118
118
|
/**
|
|
119
|
-
* List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting.
|
|
119
|
+
* List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting. To see an entry\'s steps, call `describeTestCaseResult` with its `id`.
|
|
120
120
|
* @summary List the test results of one scenario.
|
|
121
121
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
122
122
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -126,7 +126,7 @@ export declare class WebClient {
|
|
|
126
126
|
* @throws {RequiredError}
|
|
127
127
|
* @memberof ResultApi
|
|
128
128
|
*/
|
|
129
|
-
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioTestCaseResult[], any, {}>>;
|
|
129
|
+
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioTestCaseResult[], any, {}, any>>;
|
|
130
130
|
/**
|
|
131
131
|
* Start a new test result that reruns every test case of this result that failed or ended in an internal error, the same rerun the "Rerun failed tests" button starts. Each test case runs with the data table row and the imported variable values it ran with originally, and the new result records this one as the result it reruns. It reruns even if someone edited a failed scenario since, so you can rerun the test cases to check your fix. Prefer this over `executeScenarios` when you are fixing the failures of a test plan\'s result. The rerun belongs to the test plan and runs with the plan\'s capabilities and settings, so the plan\'s results record its passes. `executeScenarios` starts a result outside the test plan, and the plan\'s latest result stays failed. To rerun only some of the failed scenarios, use `executeScenarios` instead. That starts a separate result, without the original\'s data table rows or imported values. Poll the returned `result_id` with `describeResult` to follow the rerun.
|
|
132
132
|
* @summary Rerun the failed test cases of a test result.
|
|
@@ -136,7 +136,7 @@ export declare class WebClient {
|
|
|
136
136
|
* @throws {RequiredError}
|
|
137
137
|
* @memberof ResultApi
|
|
138
138
|
*/
|
|
139
|
-
rerunFailedTestCases(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}>>;
|
|
139
|
+
rerunFailedTestCases(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}, any>>;
|
|
140
140
|
private readonly scenarioApi;
|
|
141
141
|
/**
|
|
142
142
|
* Create an empty scenario, ready to be given steps. The scenario is created with no steps. Add them with `replaceScenarioSteps`, sending the `version_token` this call returns.
|
|
@@ -146,7 +146,7 @@ export declare class WebClient {
|
|
|
146
146
|
* @throws {RequiredError}
|
|
147
147
|
* @memberof ScenarioApi
|
|
148
148
|
*/
|
|
149
|
-
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
149
|
+
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
150
150
|
/**
|
|
151
151
|
* Delete a scenario and remove it from every test plan that includes it. This can\'t be undone through the API. Autify support can restore a deleted scenario, but it won\'t rejoin its test plans. Confirm with the user before deleting. Step groups can\'t be deleted here. A step group\'s id gets 404.
|
|
152
152
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -156,7 +156,7 @@ export declare class WebClient {
|
|
|
156
156
|
* @throws {RequiredError}
|
|
157
157
|
* @memberof ScenarioApi
|
|
158
158
|
*/
|
|
159
|
-
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
159
|
+
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
|
|
160
160
|
/**
|
|
161
161
|
* Get a scenario, with its steps, data table and variables. Each step names its keyword by the canonical English name that `listStepKeywords` publishes, and lists its arguments in that keyword\'s argument order. An argument that targets an element carries the locators Autify matches it by, rather than a placeholder. An `Execute Javascript` step lists its function arguments after its keyword\'s arguments, as `text` arguments named the way its code refers to them. A function argument that shares a name with one of the keyword\'s arguments is left out. An element whose `user_locator_heals` is true treats `user_locator` as a seed: Autify learns the element from it on the next passing run and matches it automatically after that. Its `seed_locator` is the selector Autify last learned from, and equals `user_locator` once that has happened. An element whose `user_locator_heals` is false uses `user_locator` as a pin on every run. `replaceScenarioSteps` sets it. An `Execute Step Group` step is reported as a reference to its step group rather than expanded in place; read the group itself with this endpoint, using the `step_group_id` from the step\'s argument. The values this call site substitutes into the group come back beside it, in `overrides`. A step recorded on a password field is masked: values typed into it are returned as `******` and the element\'s `candidate_locators` are withheld, as on `describeTestCaseResult`.
|
|
162
162
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -165,7 +165,7 @@ export declare class WebClient {
|
|
|
165
165
|
* @throws {RequiredError}
|
|
166
166
|
* @memberof ScenarioApi
|
|
167
167
|
*/
|
|
168
|
-
describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
168
|
+
describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
169
169
|
/**
|
|
170
170
|
* Get the steps, data table and variables a scenario held at one entry of its history, as listed by `listScenarioHistories`. They come back in the same shape `describeScenario` returns, so an entry can be compared field by field with the scenario as it is now or with another entry. Password masking applies as it does there. Five things differ, because an entry records values rather than the rows they lived in: - An element argument\'s `element_id`, `user_locator_heals` and `seed_locator` are always null, because an entry records none of them. Its `user_locator` and `candidate_locators` are the ones the element had at that save. - A step\'s `id` is the id it had at that save, which may no longer exist in the scenario. It is null on entries saved before late July 2024, when entries started recording step ids. - An `Execute Step Group` step\'s `overrides` are read against the step group as it is now, so an override on a step since removed from the group is not reported. - An export variable set by a step inside a step group resolves its `step_id` against that group as it is now. When more than one called group assigns the same identifier, the step with the lowest id wins. - An entry records the scenario\'s name at that save but not its description or labels, and a later rename does not move it.
|
|
171
171
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -175,7 +175,7 @@ export declare class WebClient {
|
|
|
175
175
|
* @throws {RequiredError}
|
|
176
176
|
* @memberof ScenarioApi
|
|
177
177
|
*/
|
|
178
|
-
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistoryDetail, any, {}>>;
|
|
178
|
+
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistoryDetail, any, {}, any>>;
|
|
179
179
|
/**
|
|
180
180
|
* Duplicate a scenario.
|
|
181
181
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -184,7 +184,7 @@ export declare class WebClient {
|
|
|
184
184
|
* @throws {RequiredError}
|
|
185
185
|
* @memberof ScenarioApi
|
|
186
186
|
*/
|
|
187
|
-
duplicateScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
187
|
+
duplicateScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
188
188
|
/**
|
|
189
189
|
* You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
|
|
190
190
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -193,7 +193,7 @@ export declare class WebClient {
|
|
|
193
193
|
* @throws {RequiredError}
|
|
194
194
|
* @memberof ScenarioApi
|
|
195
195
|
*/
|
|
196
|
-
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}>>;
|
|
196
|
+
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}, any>>;
|
|
197
197
|
/**
|
|
198
198
|
* List a scenario\'s history, newest first. Each save of the scenario\'s steps in the scenario editor records the whole scenario as it stood after that save, as one entry, and so does creating it by import, copy or `duplicateScenario`. An editor save\'s entry is written a moment after the save, not with it; the others are written with it. Changing only the name, description or labels, which is all `updateScenario` changes, records no entry. Use this to see when a scenario\'s steps changed and who changed them, then read an entry with `describeScenarioHistory` to see what it held. Comparing two entries shows what a save changed. `latest` is true on the entry recorded by the most recent save of the steps, and holds the steps as last saved. The entry listed after it is the version before that save. A passing run, or a locator update made from a test result, changes an element\'s candidate locators without recording an entry, so `describeScenario` can differ from `latest` there.
|
|
199
199
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -204,7 +204,7 @@ export declare class WebClient {
|
|
|
204
204
|
* @throws {RequiredError}
|
|
205
205
|
* @memberof ScenarioApi
|
|
206
206
|
*/
|
|
207
|
-
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistory[], any, {}>>;
|
|
207
|
+
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistory[], any, {}, any>>;
|
|
208
208
|
/**
|
|
209
209
|
* List scenarios.
|
|
210
210
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -213,7 +213,7 @@ export declare class WebClient {
|
|
|
213
213
|
* @throws {RequiredError}
|
|
214
214
|
* @memberof ScenarioApi
|
|
215
215
|
*/
|
|
216
|
-
listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario[], any, {}>>;
|
|
216
|
+
listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario[], any, {}, any>>;
|
|
217
217
|
/**
|
|
218
218
|
* List every step keyword an Autify NoCode Web scenario can be built from, with the ordered argument signature of each. Supply a step\'s arguments in the order `arguments` gives them. A keyword whose `included_in_plan` is false is not part of this workspace\'s plan, and writing a step that uses it is rejected; every keyword is listed either way, so the whole vocabulary is visible. `keyword` is the canonical English name and is what the rest of the API expects, whatever language the workspace is set to.
|
|
219
219
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -221,7 +221,7 @@ export declare class WebClient {
|
|
|
221
221
|
* @throws {RequiredError}
|
|
222
222
|
* @memberof ScenarioApi
|
|
223
223
|
*/
|
|
224
|
-
listStepKeywords(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepKeyword[], any, {}>>;
|
|
224
|
+
listStepKeywords(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepKeyword[], any, {}, any>>;
|
|
225
225
|
/**
|
|
226
226
|
* Replace a scenario\'s steps. Send the whole list in the order the steps should run; one call adds, edits, removes and reorders steps. A step that carries an `id` from `describeScenario` is that existing step. A step without an `id` is added. An existing step whose `id` is not in the list is removed, so send `[]` to remove every step. Each step and each of its arguments is a JSON merge patch against what `describeScenario` returned. A field you send that differs from the current value is changed, a field you leave out is kept, and `null` clears it. So `{"id": 12}` keeps step 12 exactly as it is, at its new position, and sending the read back unchanged changes nothing. Arguments are matched by `name`, as `listStepKeywords` names them, so send only the arguments you change. An `Execute Javascript` step\'s function arguments are matched by the names `describeScenario` reports for them. Send a name the step lacks to add a function argument, and `"value": null` to remove one. To rename one, remove the old name and add the new one in the same request. A new step needs an `action_type` from `listStepKeywords` and that keyword\'s required arguments. Sending a different `action_type` for an existing step rewrites it for the new keyword, keeping its `id` and carrying over the arguments whose names the two keywords share. When you write a `user_locator`, send `user_locator_heals: true` with it unless the step must use that exact selector on every run. Autify then finds the element by your selector on the next passing run, learns the element from that run and matches it from then on the way it matches a recorded step, so a later page change does not break the step. Your selector only has to pick out the element on the page as it is now. Left false, the selector is a pin, and the step fails once the selector stops matching. Read the scenario again from the response: it has the new steps\' ids and the `version_token` for your next write.
|
|
227
227
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -231,7 +231,7 @@ export declare class WebClient {
|
|
|
231
231
|
* @throws {RequiredError}
|
|
232
232
|
* @memberof ScenarioApi
|
|
233
233
|
*/
|
|
234
|
-
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
234
|
+
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
235
235
|
/**
|
|
236
236
|
* Restore a scenario to one entry of its history, as listed by `listScenarioHistories`. The scenario is overwritten with what the entry holds: its name, steps, data table, variables, options and resolution. Its description and labels are kept, because an entry does not record them. Steps come back as they were at that save, recorded steps included: - A step still in the scenario keeps its `id`. A step removed since comes back under the `id` it had. A step added since is removed. Entries saved before late July 2024 record no step ids, so their steps get new ones. - An element comes back with the `candidate_locators` it had at that save, so whatever Autify learned about it from runs since then is lost. Its `user_locator_heals` goes back to false and its `seed_locator` is cleared, because an entry records neither. Restoring an entry that already matches the scenario changes nothing and returns the same `version_token`. Any other restore records a new entry in `listScenarioHistories`, so it can be undone by restoring the entry listed after it. When the scenario as it stands has no entry yet, because the entry for a recent write is still being saved, the restore records that state first. Read the scenario from the response: it has the restored steps and the `version_token` for your next write.
|
|
237
237
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -242,7 +242,7 @@ export declare class WebClient {
|
|
|
242
242
|
* @throws {RequiredError}
|
|
243
243
|
* @memberof ScenarioApi
|
|
244
244
|
*/
|
|
245
|
-
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
245
|
+
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
246
246
|
/**
|
|
247
247
|
* Find the steps in a project whose arguments contain some text, without reading every scenario. The search covers every live step of every scenario and step group in the project, ignoring case. It matches the value of a `text` or `url` argument, including an `Execute Javascript` step\'s function arguments, and a value an `Execute Step Group` step substitutes into its group, as `describeScenario` reports it in `overrides`. With `match_on=locators` it matches an element\'s `user_locator` instead; with no `match_on` it matches both. Step names, memos, `seed_locator`, `candidate_locators`, file names, data tables and variables are not searched. A step recorded on a password field is never matched, by its value or its locator, and neither is a value a call site substitutes into one. Each result is one step, in the order of its scenario or step group and then of its position there. A match inside a step group lists the scenarios that run the group in `executed_by`, so a change to the group reaches all of them. To change a scenario\'s step, read the scenario with `describeScenario` for its `version_token`, then send the steps with `replaceScenarioSteps`.
|
|
248
248
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -254,7 +254,7 @@ export declare class WebClient {
|
|
|
254
254
|
* @throws {RequiredError}
|
|
255
255
|
* @memberof ScenarioApi
|
|
256
256
|
*/
|
|
257
|
-
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepSearchHit[], any, {}>>;
|
|
257
|
+
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepSearchHit[], any, {}, any>>;
|
|
258
258
|
/**
|
|
259
259
|
* Update a scenario.
|
|
260
260
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -264,7 +264,7 @@ export declare class WebClient {
|
|
|
264
264
|
* @throws {RequiredError}
|
|
265
265
|
* @memberof ScenarioApi
|
|
266
266
|
*/
|
|
267
|
-
updateScenario(projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
267
|
+
updateScenario(projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
268
268
|
private readonly scheduleApi;
|
|
269
269
|
/**
|
|
270
270
|
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
@@ -275,7 +275,7 @@ export declare class WebClient {
|
|
|
275
275
|
* @throws {RequiredError}
|
|
276
276
|
* @memberof ScheduleApi
|
|
277
277
|
*/
|
|
278
|
-
executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any, {}>>;
|
|
278
|
+
executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any, {}, any>>;
|
|
279
279
|
private readonly testPlanVariableApi;
|
|
280
280
|
/**
|
|
281
281
|
* Create a new variable for the test plan
|
|
@@ -285,7 +285,7 @@ export declare class WebClient {
|
|
|
285
285
|
* @throws {RequiredError}
|
|
286
286
|
* @memberof TestPlanVariableApi
|
|
287
287
|
*/
|
|
288
|
-
createTestPlanVariable(testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any, {}>>;
|
|
288
|
+
createTestPlanVariable(testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any, {}, any>>;
|
|
289
289
|
/**
|
|
290
290
|
* Delete an existing test plan variable for the test plan
|
|
291
291
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
|
|
@@ -294,7 +294,7 @@ export declare class WebClient {
|
|
|
294
294
|
* @throws {RequiredError}
|
|
295
295
|
* @memberof TestPlanVariableApi
|
|
296
296
|
*/
|
|
297
|
-
deleteTestPlanVariable(testPlanId: number, testPlanVariableId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
297
|
+
deleteTestPlanVariable(testPlanId: number, testPlanVariableId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
|
|
298
298
|
/**
|
|
299
299
|
* List the test plan\'s variables
|
|
300
300
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -302,7 +302,7 @@ export declare class WebClient {
|
|
|
302
302
|
* @throws {RequiredError}
|
|
303
303
|
* @memberof TestPlanVariableApi
|
|
304
304
|
*/
|
|
305
|
-
listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable[], any, {}>>;
|
|
305
|
+
listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable[], any, {}, any>>;
|
|
306
306
|
/**
|
|
307
307
|
* Update a url replacement for the test plan
|
|
308
308
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -312,7 +312,7 @@ export declare class WebClient {
|
|
|
312
312
|
* @throws {RequiredError}
|
|
313
313
|
* @memberof TestPlanVariableApi
|
|
314
314
|
*/
|
|
315
|
-
updateTestPlanVariable(testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any, {}>>;
|
|
315
|
+
updateTestPlanVariable(testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any, {}, any>>;
|
|
316
316
|
private readonly urlReplacementApi;
|
|
317
317
|
/**
|
|
318
318
|
* Create a new url replacement for the test plan
|
|
@@ -322,7 +322,7 @@ export declare class WebClient {
|
|
|
322
322
|
* @throws {RequiredError}
|
|
323
323
|
* @memberof UrlReplacementApi
|
|
324
324
|
*/
|
|
325
|
-
createUrlReplacement(testPlanId: number, createUrlReplacementRequest: CreateUrlReplacementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement, any, {}>>;
|
|
325
|
+
createUrlReplacement(testPlanId: number, createUrlReplacementRequest: CreateUrlReplacementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement, any, {}, any>>;
|
|
326
326
|
/**
|
|
327
327
|
* Delete a url replacement for the test plan
|
|
328
328
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -331,7 +331,7 @@ export declare class WebClient {
|
|
|
331
331
|
* @throws {RequiredError}
|
|
332
332
|
* @memberof UrlReplacementApi
|
|
333
333
|
*/
|
|
334
|
-
deleteUrlReplacement(testPlanId: number, urlReplacementId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
334
|
+
deleteUrlReplacement(testPlanId: number, urlReplacementId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
|
|
335
335
|
/**
|
|
336
336
|
* List url replacements for the test plan
|
|
337
337
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -339,7 +339,7 @@ export declare class WebClient {
|
|
|
339
339
|
* @throws {RequiredError}
|
|
340
340
|
* @memberof UrlReplacementApi
|
|
341
341
|
*/
|
|
342
|
-
listUrlReplacements(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement[], any, {}>>;
|
|
342
|
+
listUrlReplacements(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement[], any, {}, any>>;
|
|
343
343
|
/**
|
|
344
344
|
* Update a url replacement for the test plan
|
|
345
345
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -349,5 +349,5 @@ export declare class WebClient {
|
|
|
349
349
|
* @throws {RequiredError}
|
|
350
350
|
* @memberof UrlReplacementApi
|
|
351
351
|
*/
|
|
352
|
-
updateUrlReplacement(testPlanId: number, urlReplacementId: number, updateUrlReplacementRequest: UpdateUrlReplacementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement, any, {}>>;
|
|
352
|
+
updateUrlReplacement(testPlanId: number, urlReplacementId: number, updateUrlReplacementRequest: UpdateUrlReplacementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement, any, {}, any>>;
|
|
353
353
|
}
|
|
@@ -129,11 +129,11 @@ class WebClient {
|
|
|
129
129
|
return this.projectApi.listProjects(options);
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
133
133
|
* @summary Get a test result.
|
|
134
134
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
135
135
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
136
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
136
|
+
* @param {boolean} [getDetails] The flag to get details of the test case result. Each test case result then carries its `steps`, which is `null` when the test case has no detailed output, for example one that ended in an internal error before uploading it, is still running, or is past its retention period.
|
|
137
137
|
* @param {Array<'failed' | 'internal_error' | 'review_needed'>} [statuses] Return only the test case results matching any of these filters, the same ones the result page offers. `failed` matches failed and internal-error test cases, `internal_error` only internal errors, and `review_needed` test cases with element warnings to review. For example `statuses=failed,review_needed`. Omit to return every test case result.
|
|
138
138
|
* @param {*} [options] Override http request option.
|
|
139
139
|
* @throws {RequiredError}
|
|
@@ -143,7 +143,7 @@ class WebClient {
|
|
|
143
143
|
return this.resultApi.describeResult(projectId, resultId, getDetails, statuses, options);
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
* Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name.
|
|
146
|
+
* Get the step-by-step breakdown of a single test case result, including the element locators Autify resolved for each step. A "test case result" is the execution of one scenario on one capability. You can obtain its ID from the `test_plan_capability_results[].test_case_results[].id` field returned by `describeResult`. Use this to see which step failed and why, and to read back the locators Autify generated for an element, which are usually better than a selector you would write by hand. To see what the page looked like, fetch a step\'s `screenshot_url`. On a failed step, compare its screenshot with the one from the step before it. Note: a step reports its keyword as `action_type`, the same enum `listStepKeywords` and `describeScenario` use, rather than as a name. This response doesn\'t include the localized label the UI shows. Values typed into a password field are returned as `******`.
|
|
147
147
|
* @summary Get the steps and element locators of a test case result.
|
|
148
148
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
149
149
|
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
@@ -169,7 +169,7 @@ class WebClient {
|
|
|
169
169
|
return this.resultApi.listResults(projectId, page, perPage, testPlanId, options);
|
|
170
170
|
}
|
|
171
171
|
/**
|
|
172
|
-
* List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting.
|
|
172
|
+
* List the test results of a single scenario, newest first. Each entry is one execution of that scenario on one capability, so a scenario run against three browsers contributes three entries. Use this to see how one scenario has been doing over time, which `listResults` cannot answer: that endpoint returns whole test plan executions and is filterable only by test plan. `review_needed` is the number of "Review needed" element warnings raised by that execution. A count that climbs over recent results means the scenario\'s element locators are drifting. To see an entry\'s steps, call `describeTestCaseResult` with its `id`.
|
|
173
173
|
* @summary List the test results of one scenario.
|
|
174
174
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
175
175
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|