@autifyhq/autify-sdk 0.30.1 → 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 +148 -27
- package/dist/generated/web/client.js +151 -6
- package/dist/generated/web/openapi/api.d.ts +1668 -161
- package/dist/generated/web/openapi/api.js +1142 -57
- 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>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from "axios";
|
|
2
|
-
import { AccessPoint, BrowserTypeEnum, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateTestPlanVariableRequest, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, DeviceTypeEnum, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, OsTypeEnum, ProjectInfo, Scenario, ScenarioDetail, TestPlanResult, TestPlanVariable, UpdateScenarioRequest, UpdateTestPlanVariableRequest, UpdateUrlReplacementRequest, UrlReplacement, UsedCredits } from "./openapi";
|
|
2
|
+
import { AccessPoint, BrowserTypeEnum, CapabilityOption, CreateAccessPointRequest, CreateAccessPointResult, CreateScenarioRequest, CreateTestPlanVariableRequest, CreateUrlReplacementRequest, DeleteAccessPointRequest, DescribeResult200Response, DeviceTypeEnum, ExecuteScenariosRequest, ExecuteScenariosResult, ExecuteSchedule200Response, ExecuteScheduleRequest, OsTypeEnum, Project, ProjectInfo, ReplaceScenarioStepsRequest, RestoreScenarioHistoryRequest, Scenario, ScenarioDetail, ScenarioHistory, ScenarioHistoryDetail, ScenarioTestCaseResult, StepKeyword, StepSearchHit, TestCaseResultDetail, TestPlanResult, TestPlanVariable, UpdateScenarioRequest, UpdateTestPlanVariableRequest, UpdateUrlReplacementRequest, UrlReplacement, UsedCredits } from "./openapi";
|
|
3
3
|
export { BASE_PATH as WEB_BASE_PATH } from "./openapi/base";
|
|
4
4
|
type Options = Readonly<{
|
|
5
5
|
basePath?: string;
|
|
@@ -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,19 +72,37 @@ 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
|
+
/**
|
|
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
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
* @memberof ProjectApi
|
|
81
|
+
*/
|
|
82
|
+
listProjects(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Project[], any, {}, any>>;
|
|
76
83
|
private readonly resultApi;
|
|
77
84
|
/**
|
|
78
|
-
*
|
|
85
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
79
86
|
* @summary Get a test result.
|
|
80
87
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
81
88
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
82
|
-
* @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
|
+
* @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
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof ResultApi
|
|
94
|
+
*/
|
|
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
|
+
/**
|
|
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
|
+
* @summary Get the steps and element locators of a test case result.
|
|
99
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
100
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
83
101
|
* @param {*} [options] Override http request option.
|
|
84
102
|
* @throws {RequiredError}
|
|
85
103
|
* @memberof ResultApi
|
|
86
104
|
*/
|
|
87
|
-
|
|
105
|
+
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestCaseResultDetail, any, {}, any>>;
|
|
88
106
|
/**
|
|
89
107
|
* List test results.
|
|
90
108
|
* @summary List test results.
|
|
@@ -96,17 +114,68 @@ export declare class WebClient {
|
|
|
96
114
|
* @throws {RequiredError}
|
|
97
115
|
* @memberof ResultApi
|
|
98
116
|
*/
|
|
99
|
-
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
|
+
/**
|
|
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
|
+
* @summary List the test results of one scenario.
|
|
121
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
122
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
123
|
+
* @param {number} [page] The number of page returns.
|
|
124
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
* @memberof ResultApi
|
|
128
|
+
*/
|
|
129
|
+
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioTestCaseResult[], any, {}, any>>;
|
|
130
|
+
/**
|
|
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
|
+
* @summary Rerun the failed test cases of a test result.
|
|
133
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
134
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
135
|
+
* @param {*} [options] Override http request option.
|
|
136
|
+
* @throws {RequiredError}
|
|
137
|
+
* @memberof ResultApi
|
|
138
|
+
*/
|
|
139
|
+
rerunFailedTestCases(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}, any>>;
|
|
100
140
|
private readonly scenarioApi;
|
|
101
141
|
/**
|
|
102
|
-
*
|
|
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.
|
|
143
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
144
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
145
|
+
* @param {*} [options] Override http request option.
|
|
146
|
+
* @throws {RequiredError}
|
|
147
|
+
* @memberof ScenarioApi
|
|
148
|
+
*/
|
|
149
|
+
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
150
|
+
/**
|
|
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
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
153
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
154
|
+
* @param {string} [versionToken] The version of the scenario you are deleting, as returned by `version_token` when you read it. If anyone changed the scenario's name, description, labels or steps since then, you get 412 and the scenario stays. Sending an empty value is an error.
|
|
155
|
+
* @param {*} [options] Override http request option.
|
|
156
|
+
* @throws {RequiredError}
|
|
157
|
+
* @memberof ScenarioApi
|
|
158
|
+
*/
|
|
159
|
+
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
|
|
160
|
+
/**
|
|
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
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
163
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
* @memberof ScenarioApi
|
|
167
|
+
*/
|
|
168
|
+
describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
169
|
+
/**
|
|
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.
|
|
103
171
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
104
172
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
173
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
105
174
|
* @param {*} [options] Override http request option.
|
|
106
175
|
* @throws {RequiredError}
|
|
107
176
|
* @memberof ScenarioApi
|
|
108
177
|
*/
|
|
109
|
-
|
|
178
|
+
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistoryDetail, any, {}, any>>;
|
|
110
179
|
/**
|
|
111
180
|
* Duplicate a scenario.
|
|
112
181
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -115,7 +184,7 @@ export declare class WebClient {
|
|
|
115
184
|
* @throws {RequiredError}
|
|
116
185
|
* @memberof ScenarioApi
|
|
117
186
|
*/
|
|
118
|
-
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>>;
|
|
119
188
|
/**
|
|
120
189
|
* You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
|
|
121
190
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -124,7 +193,18 @@ export declare class WebClient {
|
|
|
124
193
|
* @throws {RequiredError}
|
|
125
194
|
* @memberof ScenarioApi
|
|
126
195
|
*/
|
|
127
|
-
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
|
+
/**
|
|
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
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
200
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
201
|
+
* @param {number} [page] The number of page returns.
|
|
202
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
* @memberof ScenarioApi
|
|
206
|
+
*/
|
|
207
|
+
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistory[], any, {}, any>>;
|
|
128
208
|
/**
|
|
129
209
|
* List scenarios.
|
|
130
210
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -133,7 +213,48 @@ export declare class WebClient {
|
|
|
133
213
|
* @throws {RequiredError}
|
|
134
214
|
* @memberof ScenarioApi
|
|
135
215
|
*/
|
|
136
|
-
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
|
+
/**
|
|
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
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
220
|
+
* @param {*} [options] Override http request option.
|
|
221
|
+
* @throws {RequiredError}
|
|
222
|
+
* @memberof ScenarioApi
|
|
223
|
+
*/
|
|
224
|
+
listStepKeywords(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepKeyword[], any, {}, any>>;
|
|
225
|
+
/**
|
|
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
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
228
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
229
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
230
|
+
* @param {*} [options] Override http request option.
|
|
231
|
+
* @throws {RequiredError}
|
|
232
|
+
* @memberof ScenarioApi
|
|
233
|
+
*/
|
|
234
|
+
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
235
|
+
/**
|
|
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
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
238
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
239
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
240
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
* @memberof ScenarioApi
|
|
244
|
+
*/
|
|
245
|
+
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
246
|
+
/**
|
|
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
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
249
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
250
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
251
|
+
* @param {number} [page] The number of page returns.
|
|
252
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
253
|
+
* @param {*} [options] Override http request option.
|
|
254
|
+
* @throws {RequiredError}
|
|
255
|
+
* @memberof ScenarioApi
|
|
256
|
+
*/
|
|
257
|
+
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepSearchHit[], any, {}, any>>;
|
|
137
258
|
/**
|
|
138
259
|
* Update a scenario.
|
|
139
260
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -143,10 +264,10 @@ export declare class WebClient {
|
|
|
143
264
|
* @throws {RequiredError}
|
|
144
265
|
* @memberof ScenarioApi
|
|
145
266
|
*/
|
|
146
|
-
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>>;
|
|
147
268
|
private readonly scheduleApi;
|
|
148
269
|
/**
|
|
149
|
-
* "Schedule" is
|
|
270
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
150
271
|
* @summary Run a test plan.
|
|
151
272
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
152
273
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -154,7 +275,7 @@ export declare class WebClient {
|
|
|
154
275
|
* @throws {RequiredError}
|
|
155
276
|
* @memberof ScheduleApi
|
|
156
277
|
*/
|
|
157
|
-
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>>;
|
|
158
279
|
private readonly testPlanVariableApi;
|
|
159
280
|
/**
|
|
160
281
|
* Create a new variable for the test plan
|
|
@@ -164,7 +285,7 @@ export declare class WebClient {
|
|
|
164
285
|
* @throws {RequiredError}
|
|
165
286
|
* @memberof TestPlanVariableApi
|
|
166
287
|
*/
|
|
167
|
-
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>>;
|
|
168
289
|
/**
|
|
169
290
|
* Delete an existing test plan variable for the test plan
|
|
170
291
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
|
|
@@ -173,7 +294,7 @@ export declare class WebClient {
|
|
|
173
294
|
* @throws {RequiredError}
|
|
174
295
|
* @memberof TestPlanVariableApi
|
|
175
296
|
*/
|
|
176
|
-
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>>;
|
|
177
298
|
/**
|
|
178
299
|
* List the test plan\'s variables
|
|
179
300
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -181,7 +302,7 @@ export declare class WebClient {
|
|
|
181
302
|
* @throws {RequiredError}
|
|
182
303
|
* @memberof TestPlanVariableApi
|
|
183
304
|
*/
|
|
184
|
-
listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable[], any, {}>>;
|
|
305
|
+
listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable[], any, {}, any>>;
|
|
185
306
|
/**
|
|
186
307
|
* Update a url replacement for the test plan
|
|
187
308
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -191,7 +312,7 @@ export declare class WebClient {
|
|
|
191
312
|
* @throws {RequiredError}
|
|
192
313
|
* @memberof TestPlanVariableApi
|
|
193
314
|
*/
|
|
194
|
-
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>>;
|
|
195
316
|
private readonly urlReplacementApi;
|
|
196
317
|
/**
|
|
197
318
|
* Create a new url replacement for the test plan
|
|
@@ -201,7 +322,7 @@ export declare class WebClient {
|
|
|
201
322
|
* @throws {RequiredError}
|
|
202
323
|
* @memberof UrlReplacementApi
|
|
203
324
|
*/
|
|
204
|
-
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>>;
|
|
205
326
|
/**
|
|
206
327
|
* Delete a url replacement for the test plan
|
|
207
328
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -210,7 +331,7 @@ export declare class WebClient {
|
|
|
210
331
|
* @throws {RequiredError}
|
|
211
332
|
* @memberof UrlReplacementApi
|
|
212
333
|
*/
|
|
213
|
-
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>>;
|
|
214
335
|
/**
|
|
215
336
|
* List url replacements for the test plan
|
|
216
337
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -218,7 +339,7 @@ export declare class WebClient {
|
|
|
218
339
|
* @throws {RequiredError}
|
|
219
340
|
* @memberof UrlReplacementApi
|
|
220
341
|
*/
|
|
221
|
-
listUrlReplacements(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement[], any, {}>>;
|
|
342
|
+
listUrlReplacements(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement[], any, {}, any>>;
|
|
222
343
|
/**
|
|
223
344
|
* Update a url replacement for the test plan
|
|
224
345
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -228,5 +349,5 @@ export declare class WebClient {
|
|
|
228
349
|
* @throws {RequiredError}
|
|
229
350
|
* @memberof UrlReplacementApi
|
|
230
351
|
*/
|
|
231
|
-
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>>;
|
|
232
353
|
}
|