@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
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.TestPlanVariableApi = exports.TestPlanVariableApiFactory = exports.TestPlanVariableApiFp = exports.TestPlanVariableApiAxiosParamCreator = exports.ScheduleApi = exports.ScheduleApiFactory = exports.ScheduleApiFp = exports.ScheduleApiAxiosParamCreator = exports.ScenarioApi = exports.ScenarioApiFactory = exports.ScenarioApiFp = exports.ScenarioApiAxiosParamCreator = exports.ResultApi = exports.ResultApiFactory = exports.ResultApiFp = exports.ResultApiAxiosParamCreator = exports.ProjectApi = exports.ProjectApiFactory = exports.ProjectApiFp = exports.ProjectApiAxiosParamCreator = exports.CreditApi = exports.CreditApiFactory = exports.CreditApiFp = exports.CreditApiAxiosParamCreator = exports.CapabilityApi = exports.CapabilityApiFactory = exports.CapabilityApiFp = exports.CapabilityApiAxiosParamCreator = exports.AutifyConnectApi = exports.AutifyConnectApiFactory = exports.AutifyConnectApiFp = exports.AutifyConnectApiAxiosParamCreator = exports.TimezoneEnum = exports.TestPlanResultStatus = exports.TestCaseResultStepUrlEventsInnerTimingEnum = exports.TestCaseResultStepMatchLocatedByEnum = exports.TestCaseResultStepStatusEnum = exports.TestCaseResultStepStepExecutionTypeEnum = exports.TestCaseResultStepOnFailureEnum = exports.TestCaseResultStatus = exports.StepKeywordArgumentTypeEnum = exports.ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum = exports.ScenarioStepArgumentTypeEnum = exports.ScenarioStepStepExecutionTypeEnum = exports.ScenarioStepOnFailureEnum = exports.ResultStepArgumentTypeEnum = exports.OsTypeEnum = exports.ExecuteScenariosRequestExecutionTypeEnum = exports.DeviceTypeEnum = exports.BrowserTypeEnum = void 0;
|
|
17
|
+
exports.UrlReplacementApi = exports.UrlReplacementApiFactory = exports.UrlReplacementApiFp = exports.UrlReplacementApiAxiosParamCreator = void 0;
|
|
17
18
|
const tslib_1 = require("tslib");
|
|
18
19
|
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
19
20
|
// URLSearchParams not necessarily used
|
|
@@ -36,6 +37,8 @@ exports.BrowserTypeEnum = {
|
|
|
36
37
|
Edge: "edge",
|
|
37
38
|
EdgeLegacy: "edge_legacy",
|
|
38
39
|
Ie: "ie",
|
|
40
|
+
Chromium: "chromium",
|
|
41
|
+
Webkit: "webkit",
|
|
39
42
|
};
|
|
40
43
|
/**
|
|
41
44
|
* mobile is deprecated and will be replaced by smartphone
|
|
@@ -43,7 +46,7 @@ exports.BrowserTypeEnum = {
|
|
|
43
46
|
* @enum {string}
|
|
44
47
|
*/
|
|
45
48
|
exports.DeviceTypeEnum = {
|
|
46
|
-
|
|
49
|
+
Computer: "computer",
|
|
47
50
|
Mobile: "mobile",
|
|
48
51
|
Smartphone: "smartphone",
|
|
49
52
|
Tablet: "tablet",
|
|
@@ -66,6 +69,38 @@ exports.OsTypeEnum = {
|
|
|
66
69
|
Ios: "ios",
|
|
67
70
|
Android: "android",
|
|
68
71
|
};
|
|
72
|
+
exports.ResultStepArgumentTypeEnum = {
|
|
73
|
+
Text: "text",
|
|
74
|
+
Url: "url",
|
|
75
|
+
File: "file",
|
|
76
|
+
Element: "element",
|
|
77
|
+
};
|
|
78
|
+
exports.ScenarioStepOnFailureEnum = {
|
|
79
|
+
Abort: "abort",
|
|
80
|
+
Continue: "continue",
|
|
81
|
+
Ignore: "ignore",
|
|
82
|
+
};
|
|
83
|
+
exports.ScenarioStepStepExecutionTypeEnum = {
|
|
84
|
+
ScenarioStep: "scenario_step",
|
|
85
|
+
CleanupStep: "cleanup_step",
|
|
86
|
+
};
|
|
87
|
+
exports.ScenarioStepArgumentTypeEnum = {
|
|
88
|
+
Text: "text",
|
|
89
|
+
Url: "url",
|
|
90
|
+
File: "file",
|
|
91
|
+
Element: "element",
|
|
92
|
+
StepGroup: "step_group",
|
|
93
|
+
};
|
|
94
|
+
exports.ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum = {
|
|
95
|
+
Text: "text",
|
|
96
|
+
Url: "url",
|
|
97
|
+
};
|
|
98
|
+
exports.StepKeywordArgumentTypeEnum = {
|
|
99
|
+
Text: "text",
|
|
100
|
+
Url: "url",
|
|
101
|
+
File: "file",
|
|
102
|
+
Element: "element",
|
|
103
|
+
};
|
|
69
104
|
/**
|
|
70
105
|
*
|
|
71
106
|
* @export
|
|
@@ -80,6 +115,28 @@ exports.TestCaseResultStatus = {
|
|
|
80
115
|
InternalError: "internal_error",
|
|
81
116
|
Canceled: "canceled",
|
|
82
117
|
};
|
|
118
|
+
exports.TestCaseResultStepOnFailureEnum = {
|
|
119
|
+
Abort: "abort",
|
|
120
|
+
Continue: "continue",
|
|
121
|
+
Ignore: "ignore",
|
|
122
|
+
};
|
|
123
|
+
exports.TestCaseResultStepStepExecutionTypeEnum = {
|
|
124
|
+
ScenarioStep: "scenario_step",
|
|
125
|
+
CleanupStep: "cleanup_step",
|
|
126
|
+
};
|
|
127
|
+
exports.TestCaseResultStepStatusEnum = {
|
|
128
|
+
Passed: "passed",
|
|
129
|
+
Failed: "failed",
|
|
130
|
+
Skipped: "skipped",
|
|
131
|
+
};
|
|
132
|
+
exports.TestCaseResultStepMatchLocatedByEnum = {
|
|
133
|
+
UserLocator: "user_locator",
|
|
134
|
+
Automatic: "automatic",
|
|
135
|
+
};
|
|
136
|
+
exports.TestCaseResultStepUrlEventsInnerTimingEnum = {
|
|
137
|
+
StepStart: "stepStart",
|
|
138
|
+
StepEnd: "stepEnd",
|
|
139
|
+
};
|
|
83
140
|
/**
|
|
84
141
|
*
|
|
85
142
|
* @export
|
|
@@ -718,6 +775,41 @@ const ProjectApiAxiosParamCreator = function (configuration) {
|
|
|
718
775
|
options: localVarRequestOptions,
|
|
719
776
|
};
|
|
720
777
|
},
|
|
778
|
+
/**
|
|
779
|
+
* 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.
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @throws {RequiredError}
|
|
782
|
+
*/
|
|
783
|
+
listProjects: async (options = {}) => {
|
|
784
|
+
const localVarPath = `/projects`;
|
|
785
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
786
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
787
|
+
let baseOptions;
|
|
788
|
+
if (configuration) {
|
|
789
|
+
baseOptions = configuration.baseOptions;
|
|
790
|
+
}
|
|
791
|
+
const localVarRequestOptions = {
|
|
792
|
+
method: "GET",
|
|
793
|
+
...baseOptions,
|
|
794
|
+
...options,
|
|
795
|
+
};
|
|
796
|
+
const localVarHeaderParameter = {};
|
|
797
|
+
const localVarQueryParameter = {};
|
|
798
|
+
// authentication bearerAuth required
|
|
799
|
+
// http bearer authentication required
|
|
800
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
801
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
803
|
+
localVarRequestOptions.headers = {
|
|
804
|
+
...localVarHeaderParameter,
|
|
805
|
+
...headersFromBaseOptions,
|
|
806
|
+
...options.headers,
|
|
807
|
+
};
|
|
808
|
+
return {
|
|
809
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
810
|
+
options: localVarRequestOptions,
|
|
811
|
+
};
|
|
812
|
+
},
|
|
721
813
|
};
|
|
722
814
|
};
|
|
723
815
|
exports.ProjectApiAxiosParamCreator = ProjectApiAxiosParamCreator;
|
|
@@ -738,6 +830,15 @@ const ProjectApiFp = function (configuration) {
|
|
|
738
830
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectInfo(projectId, options);
|
|
739
831
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
740
832
|
},
|
|
833
|
+
/**
|
|
834
|
+
* 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.
|
|
835
|
+
* @param {*} [options] Override http request option.
|
|
836
|
+
* @throws {RequiredError}
|
|
837
|
+
*/
|
|
838
|
+
async listProjects(options) {
|
|
839
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProjects(options);
|
|
840
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
841
|
+
},
|
|
741
842
|
};
|
|
742
843
|
};
|
|
743
844
|
exports.ProjectApiFp = ProjectApiFp;
|
|
@@ -759,6 +860,16 @@ const ProjectApiFactory = function (configuration, basePath, axios) {
|
|
|
759
860
|
.getProjectInfo(projectId, options)
|
|
760
861
|
.then((request) => request(axios, basePath));
|
|
761
862
|
},
|
|
863
|
+
/**
|
|
864
|
+
* 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.
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
listProjects(options) {
|
|
869
|
+
return localVarFp
|
|
870
|
+
.listProjects(options)
|
|
871
|
+
.then((request) => request(axios, basePath));
|
|
872
|
+
},
|
|
762
873
|
};
|
|
763
874
|
};
|
|
764
875
|
exports.ProjectApiFactory = ProjectApiFactory;
|
|
@@ -781,6 +892,17 @@ class ProjectApi extends base_1.BaseAPI {
|
|
|
781
892
|
.getProjectInfo(projectId, options)
|
|
782
893
|
.then((request) => request(this.axios, this.basePath));
|
|
783
894
|
}
|
|
895
|
+
/**
|
|
896
|
+
* 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.
|
|
897
|
+
* @param {*} [options] Override http request option.
|
|
898
|
+
* @throws {RequiredError}
|
|
899
|
+
* @memberof ProjectApi
|
|
900
|
+
*/
|
|
901
|
+
listProjects(options) {
|
|
902
|
+
return (0, exports.ProjectApiFp)(this.configuration)
|
|
903
|
+
.listProjects(options)
|
|
904
|
+
.then((request) => request(this.axios, this.basePath));
|
|
905
|
+
}
|
|
784
906
|
}
|
|
785
907
|
exports.ProjectApi = ProjectApi;
|
|
786
908
|
/**
|
|
@@ -790,15 +912,16 @@ exports.ProjectApi = ProjectApi;
|
|
|
790
912
|
const ResultApiAxiosParamCreator = function (configuration) {
|
|
791
913
|
return {
|
|
792
914
|
/**
|
|
793
|
-
*
|
|
915
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
794
916
|
* @summary Get a test result.
|
|
795
917
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
796
918
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
797
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
919
|
+
* @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.
|
|
920
|
+
* @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.
|
|
798
921
|
* @param {*} [options] Override http request option.
|
|
799
922
|
* @throws {RequiredError}
|
|
800
923
|
*/
|
|
801
|
-
describeResult: async (projectId, resultId, getDetails, options = {}) => {
|
|
924
|
+
describeResult: async (projectId, resultId, getDetails, statuses, options = {}) => {
|
|
802
925
|
// verify required parameter 'projectId' is not null or undefined
|
|
803
926
|
(0, common_1.assertParamExists)("describeResult", "projectId", projectId);
|
|
804
927
|
// verify required parameter 'resultId' is not null or undefined
|
|
@@ -825,6 +948,53 @@ const ResultApiAxiosParamCreator = function (configuration) {
|
|
|
825
948
|
if (getDetails !== undefined) {
|
|
826
949
|
localVarQueryParameter["get_details"] = getDetails;
|
|
827
950
|
}
|
|
951
|
+
if (statuses) {
|
|
952
|
+
localVarQueryParameter["statuses"] = statuses.join(base_1.COLLECTION_FORMATS.csv);
|
|
953
|
+
}
|
|
954
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
955
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
956
|
+
localVarRequestOptions.headers = {
|
|
957
|
+
...localVarHeaderParameter,
|
|
958
|
+
...headersFromBaseOptions,
|
|
959
|
+
...options.headers,
|
|
960
|
+
};
|
|
961
|
+
return {
|
|
962
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
963
|
+
options: localVarRequestOptions,
|
|
964
|
+
};
|
|
965
|
+
},
|
|
966
|
+
/**
|
|
967
|
+
* 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 `******`.
|
|
968
|
+
* @summary Get the steps and element locators of a test case result.
|
|
969
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
970
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
971
|
+
* @param {*} [options] Override http request option.
|
|
972
|
+
* @throws {RequiredError}
|
|
973
|
+
*/
|
|
974
|
+
describeTestCaseResult: async (projectId, testCaseResultId, options = {}) => {
|
|
975
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
976
|
+
(0, common_1.assertParamExists)("describeTestCaseResult", "projectId", projectId);
|
|
977
|
+
// verify required parameter 'testCaseResultId' is not null or undefined
|
|
978
|
+
(0, common_1.assertParamExists)("describeTestCaseResult", "testCaseResultId", testCaseResultId);
|
|
979
|
+
const localVarPath = `/projects/{project_id}/test_case_results/{test_case_result_id}`
|
|
980
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
981
|
+
.replace(`{${"test_case_result_id"}}`, encodeURIComponent(String(testCaseResultId)));
|
|
982
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
983
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
984
|
+
let baseOptions;
|
|
985
|
+
if (configuration) {
|
|
986
|
+
baseOptions = configuration.baseOptions;
|
|
987
|
+
}
|
|
988
|
+
const localVarRequestOptions = {
|
|
989
|
+
method: "GET",
|
|
990
|
+
...baseOptions,
|
|
991
|
+
...options,
|
|
992
|
+
};
|
|
993
|
+
const localVarHeaderParameter = {};
|
|
994
|
+
const localVarQueryParameter = {};
|
|
995
|
+
// authentication bearerAuth required
|
|
996
|
+
// http bearer authentication required
|
|
997
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
828
998
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
829
999
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
830
1000
|
localVarRequestOptions.headers = {
|
|
@@ -888,6 +1058,102 @@ const ResultApiAxiosParamCreator = function (configuration) {
|
|
|
888
1058
|
options: localVarRequestOptions,
|
|
889
1059
|
};
|
|
890
1060
|
},
|
|
1061
|
+
/**
|
|
1062
|
+
* 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`.
|
|
1063
|
+
* @summary List the test results of one scenario.
|
|
1064
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1065
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1066
|
+
* @param {number} [page] The number of page returns.
|
|
1067
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1068
|
+
* @param {*} [options] Override http request option.
|
|
1069
|
+
* @throws {RequiredError}
|
|
1070
|
+
*/
|
|
1071
|
+
listScenarioResults: async (projectId, scenarioId, page, perPage, options = {}) => {
|
|
1072
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1073
|
+
(0, common_1.assertParamExists)("listScenarioResults", "projectId", projectId);
|
|
1074
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
1075
|
+
(0, common_1.assertParamExists)("listScenarioResults", "scenarioId", scenarioId);
|
|
1076
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}/results`
|
|
1077
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1078
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
1079
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1080
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1081
|
+
let baseOptions;
|
|
1082
|
+
if (configuration) {
|
|
1083
|
+
baseOptions = configuration.baseOptions;
|
|
1084
|
+
}
|
|
1085
|
+
const localVarRequestOptions = {
|
|
1086
|
+
method: "GET",
|
|
1087
|
+
...baseOptions,
|
|
1088
|
+
...options,
|
|
1089
|
+
};
|
|
1090
|
+
const localVarHeaderParameter = {};
|
|
1091
|
+
const localVarQueryParameter = {};
|
|
1092
|
+
// authentication bearerAuth required
|
|
1093
|
+
// http bearer authentication required
|
|
1094
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1095
|
+
if (page !== undefined) {
|
|
1096
|
+
localVarQueryParameter["page"] = page;
|
|
1097
|
+
}
|
|
1098
|
+
if (perPage !== undefined) {
|
|
1099
|
+
localVarQueryParameter["per_page"] = perPage;
|
|
1100
|
+
}
|
|
1101
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1102
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1103
|
+
localVarRequestOptions.headers = {
|
|
1104
|
+
...localVarHeaderParameter,
|
|
1105
|
+
...headersFromBaseOptions,
|
|
1106
|
+
...options.headers,
|
|
1107
|
+
};
|
|
1108
|
+
return {
|
|
1109
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1110
|
+
options: localVarRequestOptions,
|
|
1111
|
+
};
|
|
1112
|
+
},
|
|
1113
|
+
/**
|
|
1114
|
+
* 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.
|
|
1115
|
+
* @summary Rerun the failed test cases of a test result.
|
|
1116
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1117
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
rerunFailedTestCases: async (projectId, resultId, options = {}) => {
|
|
1122
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1123
|
+
(0, common_1.assertParamExists)("rerunFailedTestCases", "projectId", projectId);
|
|
1124
|
+
// verify required parameter 'resultId' is not null or undefined
|
|
1125
|
+
(0, common_1.assertParamExists)("rerunFailedTestCases", "resultId", resultId);
|
|
1126
|
+
const localVarPath = `/projects/{project_id}/results/{result_id}/rerun`
|
|
1127
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1128
|
+
.replace(`{${"result_id"}}`, encodeURIComponent(String(resultId)));
|
|
1129
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1130
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1131
|
+
let baseOptions;
|
|
1132
|
+
if (configuration) {
|
|
1133
|
+
baseOptions = configuration.baseOptions;
|
|
1134
|
+
}
|
|
1135
|
+
const localVarRequestOptions = {
|
|
1136
|
+
method: "POST",
|
|
1137
|
+
...baseOptions,
|
|
1138
|
+
...options,
|
|
1139
|
+
};
|
|
1140
|
+
const localVarHeaderParameter = {};
|
|
1141
|
+
const localVarQueryParameter = {};
|
|
1142
|
+
// authentication bearerAuth required
|
|
1143
|
+
// http bearer authentication required
|
|
1144
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1145
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1147
|
+
localVarRequestOptions.headers = {
|
|
1148
|
+
...localVarHeaderParameter,
|
|
1149
|
+
...headersFromBaseOptions,
|
|
1150
|
+
...options.headers,
|
|
1151
|
+
};
|
|
1152
|
+
return {
|
|
1153
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1154
|
+
options: localVarRequestOptions,
|
|
1155
|
+
};
|
|
1156
|
+
},
|
|
891
1157
|
};
|
|
892
1158
|
};
|
|
893
1159
|
exports.ResultApiAxiosParamCreator = ResultApiAxiosParamCreator;
|
|
@@ -899,16 +1165,29 @@ const ResultApiFp = function (configuration) {
|
|
|
899
1165
|
const localVarAxiosParamCreator = (0, exports.ResultApiAxiosParamCreator)(configuration);
|
|
900
1166
|
return {
|
|
901
1167
|
/**
|
|
902
|
-
*
|
|
1168
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
903
1169
|
* @summary Get a test result.
|
|
904
1170
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
905
1171
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
906
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
1172
|
+
* @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.
|
|
1173
|
+
* @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.
|
|
1174
|
+
* @param {*} [options] Override http request option.
|
|
1175
|
+
* @throws {RequiredError}
|
|
1176
|
+
*/
|
|
1177
|
+
async describeResult(projectId, resultId, getDetails, statuses, options) {
|
|
1178
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.describeResult(projectId, resultId, getDetails, statuses, options);
|
|
1179
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1180
|
+
},
|
|
1181
|
+
/**
|
|
1182
|
+
* 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 `******`.
|
|
1183
|
+
* @summary Get the steps and element locators of a test case result.
|
|
1184
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1185
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
907
1186
|
* @param {*} [options] Override http request option.
|
|
908
1187
|
* @throws {RequiredError}
|
|
909
1188
|
*/
|
|
910
|
-
async
|
|
911
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1189
|
+
async describeTestCaseResult(projectId, testCaseResultId, options) {
|
|
1190
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.describeTestCaseResult(projectId, testCaseResultId, options);
|
|
912
1191
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
913
1192
|
},
|
|
914
1193
|
/**
|
|
@@ -925,6 +1204,32 @@ const ResultApiFp = function (configuration) {
|
|
|
925
1204
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listResults(projectId, page, perPage, testPlanId, options);
|
|
926
1205
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
927
1206
|
},
|
|
1207
|
+
/**
|
|
1208
|
+
* 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`.
|
|
1209
|
+
* @summary List the test results of one scenario.
|
|
1210
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1211
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1212
|
+
* @param {number} [page] The number of page returns.
|
|
1213
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
*/
|
|
1217
|
+
async listScenarioResults(projectId, scenarioId, page, perPage, options) {
|
|
1218
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listScenarioResults(projectId, scenarioId, page, perPage, options);
|
|
1219
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1220
|
+
},
|
|
1221
|
+
/**
|
|
1222
|
+
* 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.
|
|
1223
|
+
* @summary Rerun the failed test cases of a test result.
|
|
1224
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1225
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
async rerunFailedTestCases(projectId, resultId, options) {
|
|
1230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rerunFailedTestCases(projectId, resultId, options);
|
|
1231
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1232
|
+
},
|
|
928
1233
|
};
|
|
929
1234
|
};
|
|
930
1235
|
exports.ResultApiFp = ResultApiFp;
|
|
@@ -936,17 +1241,31 @@ const ResultApiFactory = function (configuration, basePath, axios) {
|
|
|
936
1241
|
const localVarFp = (0, exports.ResultApiFp)(configuration);
|
|
937
1242
|
return {
|
|
938
1243
|
/**
|
|
939
|
-
*
|
|
1244
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
940
1245
|
* @summary Get a test result.
|
|
941
1246
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
942
1247
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
943
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
1248
|
+
* @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.
|
|
1249
|
+
* @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.
|
|
1250
|
+
* @param {*} [options] Override http request option.
|
|
1251
|
+
* @throws {RequiredError}
|
|
1252
|
+
*/
|
|
1253
|
+
describeResult(projectId, resultId, getDetails, statuses, options) {
|
|
1254
|
+
return localVarFp
|
|
1255
|
+
.describeResult(projectId, resultId, getDetails, statuses, options)
|
|
1256
|
+
.then((request) => request(axios, basePath));
|
|
1257
|
+
},
|
|
1258
|
+
/**
|
|
1259
|
+
* 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 `******`.
|
|
1260
|
+
* @summary Get the steps and element locators of a test case result.
|
|
1261
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1262
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
944
1263
|
* @param {*} [options] Override http request option.
|
|
945
1264
|
* @throws {RequiredError}
|
|
946
1265
|
*/
|
|
947
|
-
|
|
1266
|
+
describeTestCaseResult(projectId, testCaseResultId, options) {
|
|
948
1267
|
return localVarFp
|
|
949
|
-
.
|
|
1268
|
+
.describeTestCaseResult(projectId, testCaseResultId, options)
|
|
950
1269
|
.then((request) => request(axios, basePath));
|
|
951
1270
|
},
|
|
952
1271
|
/**
|
|
@@ -964,6 +1283,34 @@ const ResultApiFactory = function (configuration, basePath, axios) {
|
|
|
964
1283
|
.listResults(projectId, page, perPage, testPlanId, options)
|
|
965
1284
|
.then((request) => request(axios, basePath));
|
|
966
1285
|
},
|
|
1286
|
+
/**
|
|
1287
|
+
* 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`.
|
|
1288
|
+
* @summary List the test results of one scenario.
|
|
1289
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1290
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1291
|
+
* @param {number} [page] The number of page returns.
|
|
1292
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1293
|
+
* @param {*} [options] Override http request option.
|
|
1294
|
+
* @throws {RequiredError}
|
|
1295
|
+
*/
|
|
1296
|
+
listScenarioResults(projectId, scenarioId, page, perPage, options) {
|
|
1297
|
+
return localVarFp
|
|
1298
|
+
.listScenarioResults(projectId, scenarioId, page, perPage, options)
|
|
1299
|
+
.then((request) => request(axios, basePath));
|
|
1300
|
+
},
|
|
1301
|
+
/**
|
|
1302
|
+
* 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.
|
|
1303
|
+
* @summary Rerun the failed test cases of a test result.
|
|
1304
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1305
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1306
|
+
* @param {*} [options] Override http request option.
|
|
1307
|
+
* @throws {RequiredError}
|
|
1308
|
+
*/
|
|
1309
|
+
rerunFailedTestCases(projectId, resultId, options) {
|
|
1310
|
+
return localVarFp
|
|
1311
|
+
.rerunFailedTestCases(projectId, resultId, options)
|
|
1312
|
+
.then((request) => request(axios, basePath));
|
|
1313
|
+
},
|
|
967
1314
|
};
|
|
968
1315
|
};
|
|
969
1316
|
exports.ResultApiFactory = ResultApiFactory;
|
|
@@ -975,18 +1322,33 @@ exports.ResultApiFactory = ResultApiFactory;
|
|
|
975
1322
|
*/
|
|
976
1323
|
class ResultApi extends base_1.BaseAPI {
|
|
977
1324
|
/**
|
|
978
|
-
*
|
|
1325
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
979
1326
|
* @summary Get a test result.
|
|
980
1327
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
981
1328
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
982
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
1329
|
+
* @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.
|
|
1330
|
+
* @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.
|
|
983
1331
|
* @param {*} [options] Override http request option.
|
|
984
1332
|
* @throws {RequiredError}
|
|
985
1333
|
* @memberof ResultApi
|
|
986
1334
|
*/
|
|
987
|
-
describeResult(projectId, resultId, getDetails, options) {
|
|
1335
|
+
describeResult(projectId, resultId, getDetails, statuses, options) {
|
|
988
1336
|
return (0, exports.ResultApiFp)(this.configuration)
|
|
989
|
-
.describeResult(projectId, resultId, getDetails, options)
|
|
1337
|
+
.describeResult(projectId, resultId, getDetails, statuses, options)
|
|
1338
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1339
|
+
}
|
|
1340
|
+
/**
|
|
1341
|
+
* 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 `******`.
|
|
1342
|
+
* @summary Get the steps and element locators of a test case result.
|
|
1343
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1344
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
1345
|
+
* @param {*} [options] Override http request option.
|
|
1346
|
+
* @throws {RequiredError}
|
|
1347
|
+
* @memberof ResultApi
|
|
1348
|
+
*/
|
|
1349
|
+
describeTestCaseResult(projectId, testCaseResultId, options) {
|
|
1350
|
+
return (0, exports.ResultApiFp)(this.configuration)
|
|
1351
|
+
.describeTestCaseResult(projectId, testCaseResultId, options)
|
|
990
1352
|
.then((request) => request(this.axios, this.basePath));
|
|
991
1353
|
}
|
|
992
1354
|
/**
|
|
@@ -1005,16 +1367,134 @@ class ResultApi extends base_1.BaseAPI {
|
|
|
1005
1367
|
.listResults(projectId, page, perPage, testPlanId, options)
|
|
1006
1368
|
.then((request) => request(this.axios, this.basePath));
|
|
1007
1369
|
}
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1370
|
+
/**
|
|
1371
|
+
* 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`.
|
|
1372
|
+
* @summary List the test results of one scenario.
|
|
1373
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1374
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1375
|
+
* @param {number} [page] The number of page returns.
|
|
1376
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1377
|
+
* @param {*} [options] Override http request option.
|
|
1378
|
+
* @throws {RequiredError}
|
|
1379
|
+
* @memberof ResultApi
|
|
1380
|
+
*/
|
|
1381
|
+
listScenarioResults(projectId, scenarioId, page, perPage, options) {
|
|
1382
|
+
return (0, exports.ResultApiFp)(this.configuration)
|
|
1383
|
+
.listScenarioResults(projectId, scenarioId, page, perPage, options)
|
|
1384
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* 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.
|
|
1388
|
+
* @summary Rerun the failed test cases of a test result.
|
|
1389
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1390
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1391
|
+
* @param {*} [options] Override http request option.
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
* @memberof ResultApi
|
|
1394
|
+
*/
|
|
1395
|
+
rerunFailedTestCases(projectId, resultId, options) {
|
|
1396
|
+
return (0, exports.ResultApiFp)(this.configuration)
|
|
1397
|
+
.rerunFailedTestCases(projectId, resultId, options)
|
|
1398
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1399
|
+
}
|
|
1400
|
+
}
|
|
1401
|
+
exports.ResultApi = ResultApi;
|
|
1402
|
+
/**
|
|
1403
|
+
* ScenarioApi - axios parameter creator
|
|
1404
|
+
* @export
|
|
1405
|
+
*/
|
|
1406
|
+
const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
1015
1407
|
return {
|
|
1016
1408
|
/**
|
|
1017
|
-
*
|
|
1409
|
+
* 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.
|
|
1410
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1411
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
1412
|
+
* @param {*} [options] Override http request option.
|
|
1413
|
+
* @throws {RequiredError}
|
|
1414
|
+
*/
|
|
1415
|
+
createScenario: async (projectId, createScenarioRequest, options = {}) => {
|
|
1416
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1417
|
+
(0, common_1.assertParamExists)("createScenario", "projectId", projectId);
|
|
1418
|
+
const localVarPath = `/projects/{project_id}/scenarios`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
1419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1420
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1421
|
+
let baseOptions;
|
|
1422
|
+
if (configuration) {
|
|
1423
|
+
baseOptions = configuration.baseOptions;
|
|
1424
|
+
}
|
|
1425
|
+
const localVarRequestOptions = {
|
|
1426
|
+
method: "POST",
|
|
1427
|
+
...baseOptions,
|
|
1428
|
+
...options,
|
|
1429
|
+
};
|
|
1430
|
+
const localVarHeaderParameter = {};
|
|
1431
|
+
const localVarQueryParameter = {};
|
|
1432
|
+
// authentication bearerAuth required
|
|
1433
|
+
// http bearer authentication required
|
|
1434
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1435
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1436
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1437
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1438
|
+
localVarRequestOptions.headers = {
|
|
1439
|
+
...localVarHeaderParameter,
|
|
1440
|
+
...headersFromBaseOptions,
|
|
1441
|
+
...options.headers,
|
|
1442
|
+
};
|
|
1443
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createScenarioRequest, localVarRequestOptions, configuration);
|
|
1444
|
+
return {
|
|
1445
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1446
|
+
options: localVarRequestOptions,
|
|
1447
|
+
};
|
|
1448
|
+
},
|
|
1449
|
+
/**
|
|
1450
|
+
* 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.
|
|
1451
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1452
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1453
|
+
* @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.
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
*/
|
|
1457
|
+
deleteScenario: async (projectId, scenarioId, versionToken, options = {}) => {
|
|
1458
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1459
|
+
(0, common_1.assertParamExists)("deleteScenario", "projectId", projectId);
|
|
1460
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
1461
|
+
(0, common_1.assertParamExists)("deleteScenario", "scenarioId", scenarioId);
|
|
1462
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}`
|
|
1463
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1464
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
1465
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1466
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1467
|
+
let baseOptions;
|
|
1468
|
+
if (configuration) {
|
|
1469
|
+
baseOptions = configuration.baseOptions;
|
|
1470
|
+
}
|
|
1471
|
+
const localVarRequestOptions = {
|
|
1472
|
+
method: "DELETE",
|
|
1473
|
+
...baseOptions,
|
|
1474
|
+
...options,
|
|
1475
|
+
};
|
|
1476
|
+
const localVarHeaderParameter = {};
|
|
1477
|
+
const localVarQueryParameter = {};
|
|
1478
|
+
// authentication bearerAuth required
|
|
1479
|
+
// http bearer authentication required
|
|
1480
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1481
|
+
if (versionToken !== undefined) {
|
|
1482
|
+
localVarQueryParameter["version_token"] = versionToken;
|
|
1483
|
+
}
|
|
1484
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1485
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1486
|
+
localVarRequestOptions.headers = {
|
|
1487
|
+
...localVarHeaderParameter,
|
|
1488
|
+
...headersFromBaseOptions,
|
|
1489
|
+
...options.headers,
|
|
1490
|
+
};
|
|
1491
|
+
return {
|
|
1492
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1493
|
+
options: localVarRequestOptions,
|
|
1494
|
+
};
|
|
1495
|
+
},
|
|
1496
|
+
/**
|
|
1497
|
+
* 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`.
|
|
1018
1498
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1019
1499
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1020
1500
|
* @param {*} [options] Override http request option.
|
|
@@ -1022,12 +1502,276 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
1022
1502
|
*/
|
|
1023
1503
|
describeScenario: async (projectId, scenarioId, options = {}) => {
|
|
1024
1504
|
// verify required parameter 'projectId' is not null or undefined
|
|
1025
|
-
(0, common_1.assertParamExists)("describeScenario", "projectId", projectId);
|
|
1026
|
-
// verify required parameter 'scenarioId' is not null or undefined
|
|
1027
|
-
(0, common_1.assertParamExists)("describeScenario", "scenarioId", scenarioId);
|
|
1028
|
-
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}`
|
|
1029
|
-
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1030
|
-
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
1505
|
+
(0, common_1.assertParamExists)("describeScenario", "projectId", projectId);
|
|
1506
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
1507
|
+
(0, common_1.assertParamExists)("describeScenario", "scenarioId", scenarioId);
|
|
1508
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}`
|
|
1509
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1510
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
1511
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1512
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1513
|
+
let baseOptions;
|
|
1514
|
+
if (configuration) {
|
|
1515
|
+
baseOptions = configuration.baseOptions;
|
|
1516
|
+
}
|
|
1517
|
+
const localVarRequestOptions = {
|
|
1518
|
+
method: "GET",
|
|
1519
|
+
...baseOptions,
|
|
1520
|
+
...options,
|
|
1521
|
+
};
|
|
1522
|
+
const localVarHeaderParameter = {};
|
|
1523
|
+
const localVarQueryParameter = {};
|
|
1524
|
+
// authentication bearerAuth required
|
|
1525
|
+
// http bearer authentication required
|
|
1526
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1527
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1528
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1529
|
+
localVarRequestOptions.headers = {
|
|
1530
|
+
...localVarHeaderParameter,
|
|
1531
|
+
...headersFromBaseOptions,
|
|
1532
|
+
...options.headers,
|
|
1533
|
+
};
|
|
1534
|
+
return {
|
|
1535
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1536
|
+
options: localVarRequestOptions,
|
|
1537
|
+
};
|
|
1538
|
+
},
|
|
1539
|
+
/**
|
|
1540
|
+
* 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.
|
|
1541
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1542
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1543
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
1544
|
+
* @param {*} [options] Override http request option.
|
|
1545
|
+
* @throws {RequiredError}
|
|
1546
|
+
*/
|
|
1547
|
+
describeScenarioHistory: async (projectId, scenarioId, historyId, options = {}) => {
|
|
1548
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1549
|
+
(0, common_1.assertParamExists)("describeScenarioHistory", "projectId", projectId);
|
|
1550
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
1551
|
+
(0, common_1.assertParamExists)("describeScenarioHistory", "scenarioId", scenarioId);
|
|
1552
|
+
// verify required parameter 'historyId' is not null or undefined
|
|
1553
|
+
(0, common_1.assertParamExists)("describeScenarioHistory", "historyId", historyId);
|
|
1554
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}/histories/{history_id}`
|
|
1555
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1556
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
1557
|
+
.replace(`{${"history_id"}}`, encodeURIComponent(String(historyId)));
|
|
1558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1559
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1560
|
+
let baseOptions;
|
|
1561
|
+
if (configuration) {
|
|
1562
|
+
baseOptions = configuration.baseOptions;
|
|
1563
|
+
}
|
|
1564
|
+
const localVarRequestOptions = {
|
|
1565
|
+
method: "GET",
|
|
1566
|
+
...baseOptions,
|
|
1567
|
+
...options,
|
|
1568
|
+
};
|
|
1569
|
+
const localVarHeaderParameter = {};
|
|
1570
|
+
const localVarQueryParameter = {};
|
|
1571
|
+
// authentication bearerAuth required
|
|
1572
|
+
// http bearer authentication required
|
|
1573
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1574
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1575
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1576
|
+
localVarRequestOptions.headers = {
|
|
1577
|
+
...localVarHeaderParameter,
|
|
1578
|
+
...headersFromBaseOptions,
|
|
1579
|
+
...options.headers,
|
|
1580
|
+
};
|
|
1581
|
+
return {
|
|
1582
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1583
|
+
options: localVarRequestOptions,
|
|
1584
|
+
};
|
|
1585
|
+
},
|
|
1586
|
+
/**
|
|
1587
|
+
* Duplicate a scenario.
|
|
1588
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1589
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1590
|
+
* @param {*} [options] Override http request option.
|
|
1591
|
+
* @throws {RequiredError}
|
|
1592
|
+
*/
|
|
1593
|
+
duplicateScenario: async (projectId, scenarioId, options = {}) => {
|
|
1594
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1595
|
+
(0, common_1.assertParamExists)("duplicateScenario", "projectId", projectId);
|
|
1596
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
1597
|
+
(0, common_1.assertParamExists)("duplicateScenario", "scenarioId", scenarioId);
|
|
1598
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}/duplications`
|
|
1599
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1600
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
1601
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1602
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1603
|
+
let baseOptions;
|
|
1604
|
+
if (configuration) {
|
|
1605
|
+
baseOptions = configuration.baseOptions;
|
|
1606
|
+
}
|
|
1607
|
+
const localVarRequestOptions = {
|
|
1608
|
+
method: "POST",
|
|
1609
|
+
...baseOptions,
|
|
1610
|
+
...options,
|
|
1611
|
+
};
|
|
1612
|
+
const localVarHeaderParameter = {};
|
|
1613
|
+
const localVarQueryParameter = {};
|
|
1614
|
+
// authentication bearerAuth required
|
|
1615
|
+
// http bearer authentication required
|
|
1616
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1617
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1618
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1619
|
+
localVarRequestOptions.headers = {
|
|
1620
|
+
...localVarHeaderParameter,
|
|
1621
|
+
...headersFromBaseOptions,
|
|
1622
|
+
...options.headers,
|
|
1623
|
+
};
|
|
1624
|
+
return {
|
|
1625
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1626
|
+
options: localVarRequestOptions,
|
|
1627
|
+
};
|
|
1628
|
+
},
|
|
1629
|
+
/**
|
|
1630
|
+
* You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
|
|
1631
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1632
|
+
* @param {ExecuteScenariosRequest} executeScenariosRequest The scenarios and settings to execute
|
|
1633
|
+
* @param {*} [options] Override http request option.
|
|
1634
|
+
* @throws {RequiredError}
|
|
1635
|
+
*/
|
|
1636
|
+
executeScenarios: async (projectId, executeScenariosRequest, options = {}) => {
|
|
1637
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1638
|
+
(0, common_1.assertParamExists)("executeScenarios", "projectId", projectId);
|
|
1639
|
+
// verify required parameter 'executeScenariosRequest' is not null or undefined
|
|
1640
|
+
(0, common_1.assertParamExists)("executeScenarios", "executeScenariosRequest", executeScenariosRequest);
|
|
1641
|
+
const localVarPath = `/projects/{project_id}/execute_scenarios`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
1642
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1643
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1644
|
+
let baseOptions;
|
|
1645
|
+
if (configuration) {
|
|
1646
|
+
baseOptions = configuration.baseOptions;
|
|
1647
|
+
}
|
|
1648
|
+
const localVarRequestOptions = {
|
|
1649
|
+
method: "POST",
|
|
1650
|
+
...baseOptions,
|
|
1651
|
+
...options,
|
|
1652
|
+
};
|
|
1653
|
+
const localVarHeaderParameter = {};
|
|
1654
|
+
const localVarQueryParameter = {};
|
|
1655
|
+
// authentication bearerAuth required
|
|
1656
|
+
// http bearer authentication required
|
|
1657
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1658
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1659
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1660
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1661
|
+
localVarRequestOptions.headers = {
|
|
1662
|
+
...localVarHeaderParameter,
|
|
1663
|
+
...headersFromBaseOptions,
|
|
1664
|
+
...options.headers,
|
|
1665
|
+
};
|
|
1666
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(executeScenariosRequest, localVarRequestOptions, configuration);
|
|
1667
|
+
return {
|
|
1668
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1669
|
+
options: localVarRequestOptions,
|
|
1670
|
+
};
|
|
1671
|
+
},
|
|
1672
|
+
/**
|
|
1673
|
+
* 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.
|
|
1674
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1675
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1676
|
+
* @param {number} [page] The number of page returns.
|
|
1677
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1678
|
+
* @param {*} [options] Override http request option.
|
|
1679
|
+
* @throws {RequiredError}
|
|
1680
|
+
*/
|
|
1681
|
+
listScenarioHistories: async (projectId, scenarioId, page, perPage, options = {}) => {
|
|
1682
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1683
|
+
(0, common_1.assertParamExists)("listScenarioHistories", "projectId", projectId);
|
|
1684
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
1685
|
+
(0, common_1.assertParamExists)("listScenarioHistories", "scenarioId", scenarioId);
|
|
1686
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}/histories`
|
|
1687
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1688
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
1689
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1690
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1691
|
+
let baseOptions;
|
|
1692
|
+
if (configuration) {
|
|
1693
|
+
baseOptions = configuration.baseOptions;
|
|
1694
|
+
}
|
|
1695
|
+
const localVarRequestOptions = {
|
|
1696
|
+
method: "GET",
|
|
1697
|
+
...baseOptions,
|
|
1698
|
+
...options,
|
|
1699
|
+
};
|
|
1700
|
+
const localVarHeaderParameter = {};
|
|
1701
|
+
const localVarQueryParameter = {};
|
|
1702
|
+
// authentication bearerAuth required
|
|
1703
|
+
// http bearer authentication required
|
|
1704
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1705
|
+
if (page !== undefined) {
|
|
1706
|
+
localVarQueryParameter["page"] = page;
|
|
1707
|
+
}
|
|
1708
|
+
if (perPage !== undefined) {
|
|
1709
|
+
localVarQueryParameter["per_page"] = perPage;
|
|
1710
|
+
}
|
|
1711
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1712
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1713
|
+
localVarRequestOptions.headers = {
|
|
1714
|
+
...localVarHeaderParameter,
|
|
1715
|
+
...headersFromBaseOptions,
|
|
1716
|
+
...options.headers,
|
|
1717
|
+
};
|
|
1718
|
+
return {
|
|
1719
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1720
|
+
options: localVarRequestOptions,
|
|
1721
|
+
};
|
|
1722
|
+
},
|
|
1723
|
+
/**
|
|
1724
|
+
* List scenarios.
|
|
1725
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1726
|
+
* @param {number} [page] The number of page returns.
|
|
1727
|
+
* @param {*} [options] Override http request option.
|
|
1728
|
+
* @throws {RequiredError}
|
|
1729
|
+
*/
|
|
1730
|
+
listScenarios: async (projectId, page, options = {}) => {
|
|
1731
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1732
|
+
(0, common_1.assertParamExists)("listScenarios", "projectId", projectId);
|
|
1733
|
+
const localVarPath = `/projects/{project_id}/scenarios`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
1734
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1735
|
+
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1736
|
+
let baseOptions;
|
|
1737
|
+
if (configuration) {
|
|
1738
|
+
baseOptions = configuration.baseOptions;
|
|
1739
|
+
}
|
|
1740
|
+
const localVarRequestOptions = {
|
|
1741
|
+
method: "GET",
|
|
1742
|
+
...baseOptions,
|
|
1743
|
+
...options,
|
|
1744
|
+
};
|
|
1745
|
+
const localVarHeaderParameter = {};
|
|
1746
|
+
const localVarQueryParameter = {};
|
|
1747
|
+
// authentication bearerAuth required
|
|
1748
|
+
// http bearer authentication required
|
|
1749
|
+
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1750
|
+
if (page !== undefined) {
|
|
1751
|
+
localVarQueryParameter["page"] = page;
|
|
1752
|
+
}
|
|
1753
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1754
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1755
|
+
localVarRequestOptions.headers = {
|
|
1756
|
+
...localVarHeaderParameter,
|
|
1757
|
+
...headersFromBaseOptions,
|
|
1758
|
+
...options.headers,
|
|
1759
|
+
};
|
|
1760
|
+
return {
|
|
1761
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1762
|
+
options: localVarRequestOptions,
|
|
1763
|
+
};
|
|
1764
|
+
},
|
|
1765
|
+
/**
|
|
1766
|
+
* 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.
|
|
1767
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1768
|
+
* @param {*} [options] Override http request option.
|
|
1769
|
+
* @throws {RequiredError}
|
|
1770
|
+
*/
|
|
1771
|
+
listStepKeywords: async (projectId, options = {}) => {
|
|
1772
|
+
// verify required parameter 'projectId' is not null or undefined
|
|
1773
|
+
(0, common_1.assertParamExists)("listStepKeywords", "projectId", projectId);
|
|
1774
|
+
const localVarPath = `/projects/{project_id}/step_keywords`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
1031
1775
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1032
1776
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1033
1777
|
let baseOptions;
|
|
@@ -1057,18 +1801,21 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
1057
1801
|
};
|
|
1058
1802
|
},
|
|
1059
1803
|
/**
|
|
1060
|
-
*
|
|
1804
|
+
* 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.
|
|
1061
1805
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1062
1806
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1807
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
1063
1808
|
* @param {*} [options] Override http request option.
|
|
1064
1809
|
* @throws {RequiredError}
|
|
1065
1810
|
*/
|
|
1066
|
-
|
|
1811
|
+
replaceScenarioSteps: async (projectId, scenarioId, replaceScenarioStepsRequest, options = {}) => {
|
|
1067
1812
|
// verify required parameter 'projectId' is not null or undefined
|
|
1068
|
-
(0, common_1.assertParamExists)("
|
|
1813
|
+
(0, common_1.assertParamExists)("replaceScenarioSteps", "projectId", projectId);
|
|
1069
1814
|
// verify required parameter 'scenarioId' is not null or undefined
|
|
1070
|
-
(0, common_1.assertParamExists)("
|
|
1071
|
-
|
|
1815
|
+
(0, common_1.assertParamExists)("replaceScenarioSteps", "scenarioId", scenarioId);
|
|
1816
|
+
// verify required parameter 'replaceScenarioStepsRequest' is not null or undefined
|
|
1817
|
+
(0, common_1.assertParamExists)("replaceScenarioSteps", "replaceScenarioStepsRequest", replaceScenarioStepsRequest);
|
|
1818
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}/steps`
|
|
1072
1819
|
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1073
1820
|
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)));
|
|
1074
1821
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1078,7 +1825,7 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
1078
1825
|
baseOptions = configuration.baseOptions;
|
|
1079
1826
|
}
|
|
1080
1827
|
const localVarRequestOptions = {
|
|
1081
|
-
method: "
|
|
1828
|
+
method: "PUT",
|
|
1082
1829
|
...baseOptions,
|
|
1083
1830
|
...options,
|
|
1084
1831
|
};
|
|
@@ -1087,6 +1834,7 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
1087
1834
|
// authentication bearerAuth required
|
|
1088
1835
|
// http bearer authentication required
|
|
1089
1836
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1837
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1090
1838
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1091
1839
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1092
1840
|
localVarRequestOptions.headers = {
|
|
@@ -1094,24 +1842,32 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
1094
1842
|
...headersFromBaseOptions,
|
|
1095
1843
|
...options.headers,
|
|
1096
1844
|
};
|
|
1845
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(replaceScenarioStepsRequest, localVarRequestOptions, configuration);
|
|
1097
1846
|
return {
|
|
1098
1847
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1099
1848
|
options: localVarRequestOptions,
|
|
1100
1849
|
};
|
|
1101
1850
|
},
|
|
1102
1851
|
/**
|
|
1103
|
-
*
|
|
1104
|
-
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1105
|
-
* @param {
|
|
1852
|
+
* 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.
|
|
1853
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1854
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1855
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
1856
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
1106
1857
|
* @param {*} [options] Override http request option.
|
|
1107
1858
|
* @throws {RequiredError}
|
|
1108
1859
|
*/
|
|
1109
|
-
|
|
1860
|
+
restoreScenarioHistory: async (projectId, scenarioId, historyId, restoreScenarioHistoryRequest, options = {}) => {
|
|
1110
1861
|
// verify required parameter 'projectId' is not null or undefined
|
|
1111
|
-
(0, common_1.assertParamExists)("
|
|
1112
|
-
// verify required parameter '
|
|
1113
|
-
(0, common_1.assertParamExists)("
|
|
1114
|
-
|
|
1862
|
+
(0, common_1.assertParamExists)("restoreScenarioHistory", "projectId", projectId);
|
|
1863
|
+
// verify required parameter 'scenarioId' is not null or undefined
|
|
1864
|
+
(0, common_1.assertParamExists)("restoreScenarioHistory", "scenarioId", scenarioId);
|
|
1865
|
+
// verify required parameter 'historyId' is not null or undefined
|
|
1866
|
+
(0, common_1.assertParamExists)("restoreScenarioHistory", "historyId", historyId);
|
|
1867
|
+
const localVarPath = `/projects/{project_id}/scenarios/{scenario_id}/histories/{history_id}/restore`
|
|
1868
|
+
.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)))
|
|
1869
|
+
.replace(`{${"scenario_id"}}`, encodeURIComponent(String(scenarioId)))
|
|
1870
|
+
.replace(`{${"history_id"}}`, encodeURIComponent(String(historyId)));
|
|
1115
1871
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1116
1872
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1117
1873
|
let baseOptions;
|
|
@@ -1136,23 +1892,28 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
1136
1892
|
...headersFromBaseOptions,
|
|
1137
1893
|
...options.headers,
|
|
1138
1894
|
};
|
|
1139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1895
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(restoreScenarioHistoryRequest, localVarRequestOptions, configuration);
|
|
1140
1896
|
return {
|
|
1141
1897
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1142
1898
|
options: localVarRequestOptions,
|
|
1143
1899
|
};
|
|
1144
1900
|
},
|
|
1145
1901
|
/**
|
|
1146
|
-
*
|
|
1902
|
+
* 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`.
|
|
1147
1903
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
1904
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
1905
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
1148
1906
|
* @param {number} [page] The number of page returns.
|
|
1907
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1149
1908
|
* @param {*} [options] Override http request option.
|
|
1150
1909
|
* @throws {RequiredError}
|
|
1151
1910
|
*/
|
|
1152
|
-
|
|
1911
|
+
searchSteps: async (projectId, q, matchOn, page, perPage, options = {}) => {
|
|
1153
1912
|
// verify required parameter 'projectId' is not null or undefined
|
|
1154
|
-
(0, common_1.assertParamExists)("
|
|
1155
|
-
|
|
1913
|
+
(0, common_1.assertParamExists)("searchSteps", "projectId", projectId);
|
|
1914
|
+
// verify required parameter 'q' is not null or undefined
|
|
1915
|
+
(0, common_1.assertParamExists)("searchSteps", "q", q);
|
|
1916
|
+
const localVarPath = `/projects/{project_id}/steps/search`.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId)));
|
|
1156
1917
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1157
1918
|
const localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1158
1919
|
let baseOptions;
|
|
@@ -1169,9 +1930,18 @@ const ScenarioApiAxiosParamCreator = function (configuration) {
|
|
|
1169
1930
|
// authentication bearerAuth required
|
|
1170
1931
|
// http bearer authentication required
|
|
1171
1932
|
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1933
|
+
if (q !== undefined) {
|
|
1934
|
+
localVarQueryParameter["q"] = q;
|
|
1935
|
+
}
|
|
1936
|
+
if (matchOn !== undefined) {
|
|
1937
|
+
localVarQueryParameter["match_on"] = matchOn;
|
|
1938
|
+
}
|
|
1172
1939
|
if (page !== undefined) {
|
|
1173
1940
|
localVarQueryParameter["page"] = page;
|
|
1174
1941
|
}
|
|
1942
|
+
if (perPage !== undefined) {
|
|
1943
|
+
localVarQueryParameter["per_page"] = perPage;
|
|
1944
|
+
}
|
|
1175
1945
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1176
1946
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1177
1947
|
localVarRequestOptions.headers = {
|
|
@@ -1243,7 +2013,30 @@ const ScenarioApiFp = function (configuration) {
|
|
|
1243
2013
|
const localVarAxiosParamCreator = (0, exports.ScenarioApiAxiosParamCreator)(configuration);
|
|
1244
2014
|
return {
|
|
1245
2015
|
/**
|
|
1246
|
-
*
|
|
2016
|
+
* 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.
|
|
2017
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2018
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
2019
|
+
* @param {*} [options] Override http request option.
|
|
2020
|
+
* @throws {RequiredError}
|
|
2021
|
+
*/
|
|
2022
|
+
async createScenario(projectId, createScenarioRequest, options) {
|
|
2023
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createScenario(projectId, createScenarioRequest, options);
|
|
2024
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2025
|
+
},
|
|
2026
|
+
/**
|
|
2027
|
+
* 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.
|
|
2028
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2029
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2030
|
+
* @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.
|
|
2031
|
+
* @param {*} [options] Override http request option.
|
|
2032
|
+
* @throws {RequiredError}
|
|
2033
|
+
*/
|
|
2034
|
+
async deleteScenario(projectId, scenarioId, versionToken, options) {
|
|
2035
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScenario(projectId, scenarioId, versionToken, options);
|
|
2036
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2037
|
+
},
|
|
2038
|
+
/**
|
|
2039
|
+
* 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`.
|
|
1247
2040
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1248
2041
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1249
2042
|
* @param {*} [options] Override http request option.
|
|
@@ -1253,6 +2046,18 @@ const ScenarioApiFp = function (configuration) {
|
|
|
1253
2046
|
const localVarAxiosArgs = await localVarAxiosParamCreator.describeScenario(projectId, scenarioId, options);
|
|
1254
2047
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1255
2048
|
},
|
|
2049
|
+
/**
|
|
2050
|
+
* 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.
|
|
2051
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2052
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2053
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
2054
|
+
* @param {*} [options] Override http request option.
|
|
2055
|
+
* @throws {RequiredError}
|
|
2056
|
+
*/
|
|
2057
|
+
async describeScenarioHistory(projectId, scenarioId, historyId, options) {
|
|
2058
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.describeScenarioHistory(projectId, scenarioId, historyId, options);
|
|
2059
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2060
|
+
},
|
|
1256
2061
|
/**
|
|
1257
2062
|
* Duplicate a scenario.
|
|
1258
2063
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -1275,6 +2080,19 @@ const ScenarioApiFp = function (configuration) {
|
|
|
1275
2080
|
const localVarAxiosArgs = await localVarAxiosParamCreator.executeScenarios(projectId, executeScenariosRequest, options);
|
|
1276
2081
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1277
2082
|
},
|
|
2083
|
+
/**
|
|
2084
|
+
* 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.
|
|
2085
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2086
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2087
|
+
* @param {number} [page] The number of page returns.
|
|
2088
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
2089
|
+
* @param {*} [options] Override http request option.
|
|
2090
|
+
* @throws {RequiredError}
|
|
2091
|
+
*/
|
|
2092
|
+
async listScenarioHistories(projectId, scenarioId, page, perPage, options) {
|
|
2093
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listScenarioHistories(projectId, scenarioId, page, perPage, options);
|
|
2094
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2095
|
+
},
|
|
1278
2096
|
/**
|
|
1279
2097
|
* List scenarios.
|
|
1280
2098
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -1286,6 +2104,55 @@ const ScenarioApiFp = function (configuration) {
|
|
|
1286
2104
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listScenarios(projectId, page, options);
|
|
1287
2105
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1288
2106
|
},
|
|
2107
|
+
/**
|
|
2108
|
+
* 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.
|
|
2109
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2110
|
+
* @param {*} [options] Override http request option.
|
|
2111
|
+
* @throws {RequiredError}
|
|
2112
|
+
*/
|
|
2113
|
+
async listStepKeywords(projectId, options) {
|
|
2114
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listStepKeywords(projectId, options);
|
|
2115
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2116
|
+
},
|
|
2117
|
+
/**
|
|
2118
|
+
* 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.
|
|
2119
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2120
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2121
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
2122
|
+
* @param {*} [options] Override http request option.
|
|
2123
|
+
* @throws {RequiredError}
|
|
2124
|
+
*/
|
|
2125
|
+
async replaceScenarioSteps(projectId, scenarioId, replaceScenarioStepsRequest, options) {
|
|
2126
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.replaceScenarioSteps(projectId, scenarioId, replaceScenarioStepsRequest, options);
|
|
2127
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2128
|
+
},
|
|
2129
|
+
/**
|
|
2130
|
+
* 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.
|
|
2131
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2132
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2133
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
2134
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
2135
|
+
* @param {*} [options] Override http request option.
|
|
2136
|
+
* @throws {RequiredError}
|
|
2137
|
+
*/
|
|
2138
|
+
async restoreScenarioHistory(projectId, scenarioId, historyId, restoreScenarioHistoryRequest, options) {
|
|
2139
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.restoreScenarioHistory(projectId, scenarioId, historyId, restoreScenarioHistoryRequest, options);
|
|
2140
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2141
|
+
},
|
|
2142
|
+
/**
|
|
2143
|
+
* 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`.
|
|
2144
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2145
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
2146
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
2147
|
+
* @param {number} [page] The number of page returns.
|
|
2148
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
2149
|
+
* @param {*} [options] Override http request option.
|
|
2150
|
+
* @throws {RequiredError}
|
|
2151
|
+
*/
|
|
2152
|
+
async searchSteps(projectId, q, matchOn, page, perPage, options) {
|
|
2153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.searchSteps(projectId, q, matchOn, page, perPage, options);
|
|
2154
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2155
|
+
},
|
|
1289
2156
|
/**
|
|
1290
2157
|
* Update a scenario.
|
|
1291
2158
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -1309,7 +2176,32 @@ const ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
|
1309
2176
|
const localVarFp = (0, exports.ScenarioApiFp)(configuration);
|
|
1310
2177
|
return {
|
|
1311
2178
|
/**
|
|
1312
|
-
*
|
|
2179
|
+
* 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.
|
|
2180
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2181
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
2182
|
+
* @param {*} [options] Override http request option.
|
|
2183
|
+
* @throws {RequiredError}
|
|
2184
|
+
*/
|
|
2185
|
+
createScenario(projectId, createScenarioRequest, options) {
|
|
2186
|
+
return localVarFp
|
|
2187
|
+
.createScenario(projectId, createScenarioRequest, options)
|
|
2188
|
+
.then((request) => request(axios, basePath));
|
|
2189
|
+
},
|
|
2190
|
+
/**
|
|
2191
|
+
* 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.
|
|
2192
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2193
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2194
|
+
* @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.
|
|
2195
|
+
* @param {*} [options] Override http request option.
|
|
2196
|
+
* @throws {RequiredError}
|
|
2197
|
+
*/
|
|
2198
|
+
deleteScenario(projectId, scenarioId, versionToken, options) {
|
|
2199
|
+
return localVarFp
|
|
2200
|
+
.deleteScenario(projectId, scenarioId, versionToken, options)
|
|
2201
|
+
.then((request) => request(axios, basePath));
|
|
2202
|
+
},
|
|
2203
|
+
/**
|
|
2204
|
+
* 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`.
|
|
1313
2205
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1314
2206
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1315
2207
|
* @param {*} [options] Override http request option.
|
|
@@ -1320,6 +2212,19 @@ const ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
|
1320
2212
|
.describeScenario(projectId, scenarioId, options)
|
|
1321
2213
|
.then((request) => request(axios, basePath));
|
|
1322
2214
|
},
|
|
2215
|
+
/**
|
|
2216
|
+
* 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.
|
|
2217
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2218
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2219
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
2220
|
+
* @param {*} [options] Override http request option.
|
|
2221
|
+
* @throws {RequiredError}
|
|
2222
|
+
*/
|
|
2223
|
+
describeScenarioHistory(projectId, scenarioId, historyId, options) {
|
|
2224
|
+
return localVarFp
|
|
2225
|
+
.describeScenarioHistory(projectId, scenarioId, historyId, options)
|
|
2226
|
+
.then((request) => request(axios, basePath));
|
|
2227
|
+
},
|
|
1323
2228
|
/**
|
|
1324
2229
|
* Duplicate a scenario.
|
|
1325
2230
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -1344,6 +2249,20 @@ const ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
|
1344
2249
|
.executeScenarios(projectId, executeScenariosRequest, options)
|
|
1345
2250
|
.then((request) => request(axios, basePath));
|
|
1346
2251
|
},
|
|
2252
|
+
/**
|
|
2253
|
+
* 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.
|
|
2254
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2255
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2256
|
+
* @param {number} [page] The number of page returns.
|
|
2257
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
2258
|
+
* @param {*} [options] Override http request option.
|
|
2259
|
+
* @throws {RequiredError}
|
|
2260
|
+
*/
|
|
2261
|
+
listScenarioHistories(projectId, scenarioId, page, perPage, options) {
|
|
2262
|
+
return localVarFp
|
|
2263
|
+
.listScenarioHistories(projectId, scenarioId, page, perPage, options)
|
|
2264
|
+
.then((request) => request(axios, basePath));
|
|
2265
|
+
},
|
|
1347
2266
|
/**
|
|
1348
2267
|
* List scenarios.
|
|
1349
2268
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -1356,6 +2275,59 @@ const ScenarioApiFactory = function (configuration, basePath, axios) {
|
|
|
1356
2275
|
.listScenarios(projectId, page, options)
|
|
1357
2276
|
.then((request) => request(axios, basePath));
|
|
1358
2277
|
},
|
|
2278
|
+
/**
|
|
2279
|
+
* 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.
|
|
2280
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2281
|
+
* @param {*} [options] Override http request option.
|
|
2282
|
+
* @throws {RequiredError}
|
|
2283
|
+
*/
|
|
2284
|
+
listStepKeywords(projectId, options) {
|
|
2285
|
+
return localVarFp
|
|
2286
|
+
.listStepKeywords(projectId, options)
|
|
2287
|
+
.then((request) => request(axios, basePath));
|
|
2288
|
+
},
|
|
2289
|
+
/**
|
|
2290
|
+
* 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.
|
|
2291
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2292
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2293
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
2294
|
+
* @param {*} [options] Override http request option.
|
|
2295
|
+
* @throws {RequiredError}
|
|
2296
|
+
*/
|
|
2297
|
+
replaceScenarioSteps(projectId, scenarioId, replaceScenarioStepsRequest, options) {
|
|
2298
|
+
return localVarFp
|
|
2299
|
+
.replaceScenarioSteps(projectId, scenarioId, replaceScenarioStepsRequest, options)
|
|
2300
|
+
.then((request) => request(axios, basePath));
|
|
2301
|
+
},
|
|
2302
|
+
/**
|
|
2303
|
+
* 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.
|
|
2304
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2305
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2306
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
2307
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
2308
|
+
* @param {*} [options] Override http request option.
|
|
2309
|
+
* @throws {RequiredError}
|
|
2310
|
+
*/
|
|
2311
|
+
restoreScenarioHistory(projectId, scenarioId, historyId, restoreScenarioHistoryRequest, options) {
|
|
2312
|
+
return localVarFp
|
|
2313
|
+
.restoreScenarioHistory(projectId, scenarioId, historyId, restoreScenarioHistoryRequest, options)
|
|
2314
|
+
.then((request) => request(axios, basePath));
|
|
2315
|
+
},
|
|
2316
|
+
/**
|
|
2317
|
+
* 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`.
|
|
2318
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2319
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
2320
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
2321
|
+
* @param {number} [page] The number of page returns.
|
|
2322
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
2323
|
+
* @param {*} [options] Override http request option.
|
|
2324
|
+
* @throws {RequiredError}
|
|
2325
|
+
*/
|
|
2326
|
+
searchSteps(projectId, q, matchOn, page, perPage, options) {
|
|
2327
|
+
return localVarFp
|
|
2328
|
+
.searchSteps(projectId, q, matchOn, page, perPage, options)
|
|
2329
|
+
.then((request) => request(axios, basePath));
|
|
2330
|
+
},
|
|
1359
2331
|
/**
|
|
1360
2332
|
* Update a scenario.
|
|
1361
2333
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -1380,7 +2352,34 @@ exports.ScenarioApiFactory = ScenarioApiFactory;
|
|
|
1380
2352
|
*/
|
|
1381
2353
|
class ScenarioApi extends base_1.BaseAPI {
|
|
1382
2354
|
/**
|
|
1383
|
-
*
|
|
2355
|
+
* 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.
|
|
2356
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2357
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
2358
|
+
* @param {*} [options] Override http request option.
|
|
2359
|
+
* @throws {RequiredError}
|
|
2360
|
+
* @memberof ScenarioApi
|
|
2361
|
+
*/
|
|
2362
|
+
createScenario(projectId, createScenarioRequest, options) {
|
|
2363
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
2364
|
+
.createScenario(projectId, createScenarioRequest, options)
|
|
2365
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2366
|
+
}
|
|
2367
|
+
/**
|
|
2368
|
+
* 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.
|
|
2369
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2370
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2371
|
+
* @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.
|
|
2372
|
+
* @param {*} [options] Override http request option.
|
|
2373
|
+
* @throws {RequiredError}
|
|
2374
|
+
* @memberof ScenarioApi
|
|
2375
|
+
*/
|
|
2376
|
+
deleteScenario(projectId, scenarioId, versionToken, options) {
|
|
2377
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
2378
|
+
.deleteScenario(projectId, scenarioId, versionToken, options)
|
|
2379
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2380
|
+
}
|
|
2381
|
+
/**
|
|
2382
|
+
* 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`.
|
|
1384
2383
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1385
2384
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
1386
2385
|
* @param {*} [options] Override http request option.
|
|
@@ -1392,6 +2391,20 @@ class ScenarioApi extends base_1.BaseAPI {
|
|
|
1392
2391
|
.describeScenario(projectId, scenarioId, options)
|
|
1393
2392
|
.then((request) => request(this.axios, this.basePath));
|
|
1394
2393
|
}
|
|
2394
|
+
/**
|
|
2395
|
+
* 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.
|
|
2396
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2397
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2398
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
2399
|
+
* @param {*} [options] Override http request option.
|
|
2400
|
+
* @throws {RequiredError}
|
|
2401
|
+
* @memberof ScenarioApi
|
|
2402
|
+
*/
|
|
2403
|
+
describeScenarioHistory(projectId, scenarioId, historyId, options) {
|
|
2404
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
2405
|
+
.describeScenarioHistory(projectId, scenarioId, historyId, options)
|
|
2406
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2407
|
+
}
|
|
1395
2408
|
/**
|
|
1396
2409
|
* Duplicate a scenario.
|
|
1397
2410
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -1418,6 +2431,21 @@ class ScenarioApi extends base_1.BaseAPI {
|
|
|
1418
2431
|
.executeScenarios(projectId, executeScenariosRequest, options)
|
|
1419
2432
|
.then((request) => request(this.axios, this.basePath));
|
|
1420
2433
|
}
|
|
2434
|
+
/**
|
|
2435
|
+
* 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.
|
|
2436
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2437
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2438
|
+
* @param {number} [page] The number of page returns.
|
|
2439
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
2440
|
+
* @param {*} [options] Override http request option.
|
|
2441
|
+
* @throws {RequiredError}
|
|
2442
|
+
* @memberof ScenarioApi
|
|
2443
|
+
*/
|
|
2444
|
+
listScenarioHistories(projectId, scenarioId, page, perPage, options) {
|
|
2445
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
2446
|
+
.listScenarioHistories(projectId, scenarioId, page, perPage, options)
|
|
2447
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2448
|
+
}
|
|
1421
2449
|
/**
|
|
1422
2450
|
* List scenarios.
|
|
1423
2451
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -1431,6 +2459,63 @@ class ScenarioApi extends base_1.BaseAPI {
|
|
|
1431
2459
|
.listScenarios(projectId, page, options)
|
|
1432
2460
|
.then((request) => request(this.axios, this.basePath));
|
|
1433
2461
|
}
|
|
2462
|
+
/**
|
|
2463
|
+
* 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.
|
|
2464
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2465
|
+
* @param {*} [options] Override http request option.
|
|
2466
|
+
* @throws {RequiredError}
|
|
2467
|
+
* @memberof ScenarioApi
|
|
2468
|
+
*/
|
|
2469
|
+
listStepKeywords(projectId, options) {
|
|
2470
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
2471
|
+
.listStepKeywords(projectId, options)
|
|
2472
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2473
|
+
}
|
|
2474
|
+
/**
|
|
2475
|
+
* 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.
|
|
2476
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2477
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2478
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
2479
|
+
* @param {*} [options] Override http request option.
|
|
2480
|
+
* @throws {RequiredError}
|
|
2481
|
+
* @memberof ScenarioApi
|
|
2482
|
+
*/
|
|
2483
|
+
replaceScenarioSteps(projectId, scenarioId, replaceScenarioStepsRequest, options) {
|
|
2484
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
2485
|
+
.replaceScenarioSteps(projectId, scenarioId, replaceScenarioStepsRequest, options)
|
|
2486
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2487
|
+
}
|
|
2488
|
+
/**
|
|
2489
|
+
* 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.
|
|
2490
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2491
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2492
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
2493
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
2494
|
+
* @param {*} [options] Override http request option.
|
|
2495
|
+
* @throws {RequiredError}
|
|
2496
|
+
* @memberof ScenarioApi
|
|
2497
|
+
*/
|
|
2498
|
+
restoreScenarioHistory(projectId, scenarioId, historyId, restoreScenarioHistoryRequest, options) {
|
|
2499
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
2500
|
+
.restoreScenarioHistory(projectId, scenarioId, historyId, restoreScenarioHistoryRequest, options)
|
|
2501
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2502
|
+
}
|
|
2503
|
+
/**
|
|
2504
|
+
* 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`.
|
|
2505
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
2506
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
2507
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
2508
|
+
* @param {number} [page] The number of page returns.
|
|
2509
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
2510
|
+
* @param {*} [options] Override http request option.
|
|
2511
|
+
* @throws {RequiredError}
|
|
2512
|
+
* @memberof ScenarioApi
|
|
2513
|
+
*/
|
|
2514
|
+
searchSteps(projectId, q, matchOn, page, perPage, options) {
|
|
2515
|
+
return (0, exports.ScenarioApiFp)(this.configuration)
|
|
2516
|
+
.searchSteps(projectId, q, matchOn, page, perPage, options)
|
|
2517
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2518
|
+
}
|
|
1434
2519
|
/**
|
|
1435
2520
|
* Update a scenario.
|
|
1436
2521
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -1454,7 +2539,7 @@ exports.ScenarioApi = ScenarioApi;
|
|
|
1454
2539
|
const ScheduleApiAxiosParamCreator = function (configuration) {
|
|
1455
2540
|
return {
|
|
1456
2541
|
/**
|
|
1457
|
-
* "Schedule" is
|
|
2542
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
1458
2543
|
* @summary Run a test plan.
|
|
1459
2544
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1460
2545
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -1506,7 +2591,7 @@ const ScheduleApiFp = function (configuration) {
|
|
|
1506
2591
|
const localVarAxiosParamCreator = (0, exports.ScheduleApiAxiosParamCreator)(configuration);
|
|
1507
2592
|
return {
|
|
1508
2593
|
/**
|
|
1509
|
-
* "Schedule" is
|
|
2594
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
1510
2595
|
* @summary Run a test plan.
|
|
1511
2596
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1512
2597
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -1528,7 +2613,7 @@ const ScheduleApiFactory = function (configuration, basePath, axios) {
|
|
|
1528
2613
|
const localVarFp = (0, exports.ScheduleApiFp)(configuration);
|
|
1529
2614
|
return {
|
|
1530
2615
|
/**
|
|
1531
|
-
* "Schedule" is
|
|
2616
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
1532
2617
|
* @summary Run a test plan.
|
|
1533
2618
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1534
2619
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -1551,7 +2636,7 @@ exports.ScheduleApiFactory = ScheduleApiFactory;
|
|
|
1551
2636
|
*/
|
|
1552
2637
|
class ScheduleApi extends base_1.BaseAPI {
|
|
1553
2638
|
/**
|
|
1554
|
-
* "Schedule" is
|
|
2639
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
1555
2640
|
* @summary Run a test plan.
|
|
1556
2641
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
1557
2642
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|