@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
|
@@ -29,7 +29,7 @@ export interface AccessPoint {
|
|
|
29
29
|
* @type {string}
|
|
30
30
|
* @memberof AccessPoint
|
|
31
31
|
*/
|
|
32
|
-
last_use?: string;
|
|
32
|
+
last_use?: string | null;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @type {string}
|
|
@@ -61,6 +61,8 @@ export declare const BrowserTypeEnum: {
|
|
|
61
61
|
readonly Edge: "edge";
|
|
62
62
|
readonly EdgeLegacy: "edge_legacy";
|
|
63
63
|
readonly Ie: "ie";
|
|
64
|
+
readonly Chromium: "chromium";
|
|
65
|
+
readonly Webkit: "webkit";
|
|
64
66
|
};
|
|
65
67
|
export type BrowserTypeEnum = (typeof BrowserTypeEnum)[keyof typeof BrowserTypeEnum];
|
|
66
68
|
/**
|
|
@@ -86,7 +88,7 @@ export interface Capability {
|
|
|
86
88
|
* @type {string}
|
|
87
89
|
* @memberof Capability
|
|
88
90
|
*/
|
|
89
|
-
os_version?: string;
|
|
91
|
+
os_version?: string | null;
|
|
90
92
|
/**
|
|
91
93
|
*
|
|
92
94
|
* @type {string}
|
|
@@ -98,13 +100,13 @@ export interface Capability {
|
|
|
98
100
|
* @type {string}
|
|
99
101
|
* @memberof Capability
|
|
100
102
|
*/
|
|
101
|
-
browser_version?: string;
|
|
103
|
+
browser_version?: string | null;
|
|
102
104
|
/**
|
|
103
105
|
*
|
|
104
106
|
* @type {string}
|
|
105
107
|
* @memberof Capability
|
|
106
108
|
*/
|
|
107
|
-
device?: string;
|
|
109
|
+
device?: string | null;
|
|
108
110
|
/**
|
|
109
111
|
*
|
|
110
112
|
* @type {TimezoneEnum}
|
|
@@ -153,7 +155,7 @@ export interface CapabilityOption {
|
|
|
153
155
|
* @type {string}
|
|
154
156
|
* @memberof CapabilityOption
|
|
155
157
|
*/
|
|
156
|
-
os_version?: string;
|
|
158
|
+
os_version?: string | null;
|
|
157
159
|
/**
|
|
158
160
|
*
|
|
159
161
|
* @type {string}
|
|
@@ -171,13 +173,13 @@ export interface CapabilityOption {
|
|
|
171
173
|
* @type {string}
|
|
172
174
|
* @memberof CapabilityOption
|
|
173
175
|
*/
|
|
174
|
-
browser_version?: string;
|
|
176
|
+
browser_version?: string | null;
|
|
175
177
|
/**
|
|
176
178
|
*
|
|
177
179
|
* @type {string}
|
|
178
180
|
* @memberof CapabilityOption
|
|
179
181
|
*/
|
|
180
|
-
device?: string;
|
|
182
|
+
device?: string | null;
|
|
181
183
|
/**
|
|
182
184
|
*
|
|
183
185
|
* @type {DeviceTypeEnum}
|
|
@@ -266,7 +268,7 @@ export interface CreateAccessPointResult {
|
|
|
266
268
|
* @type {string}
|
|
267
269
|
* @memberof CreateAccessPointResult
|
|
268
270
|
*/
|
|
269
|
-
last_use?: string;
|
|
271
|
+
last_use?: string | null;
|
|
270
272
|
/**
|
|
271
273
|
*
|
|
272
274
|
* @type {string}
|
|
@@ -280,6 +282,37 @@ export interface CreateAccessPointResult {
|
|
|
280
282
|
*/
|
|
281
283
|
updated_at?: string;
|
|
282
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @export
|
|
288
|
+
* @interface CreateScenarioRequest
|
|
289
|
+
*/
|
|
290
|
+
export interface CreateScenarioRequest {
|
|
291
|
+
/**
|
|
292
|
+
* Name of the scenario, unique within the project. Omit it to have a default name generated.
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof CreateScenarioRequest
|
|
295
|
+
*/
|
|
296
|
+
name?: string;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {string}
|
|
300
|
+
* @memberof CreateScenarioRequest
|
|
301
|
+
*/
|
|
302
|
+
description?: string;
|
|
303
|
+
/**
|
|
304
|
+
* Label names to attach, matched against this project\'s labels in the same way as `labels` on `updateScenario`. A name this project does not already have is created in it, unless `on_create` is false.
|
|
305
|
+
* @type {Array<string>}
|
|
306
|
+
* @memberof CreateScenarioRequest
|
|
307
|
+
*/
|
|
308
|
+
labels?: Array<string>;
|
|
309
|
+
/**
|
|
310
|
+
* Whether to create a label named in `labels` that this project does not have. Set it to false to have an unrecognised name rejected instead. Only `true` and `false` are accepted, as booleans or as the strings `"true"` and `"false"`.
|
|
311
|
+
* @type {boolean}
|
|
312
|
+
* @memberof CreateScenarioRequest
|
|
313
|
+
*/
|
|
314
|
+
on_create?: boolean;
|
|
315
|
+
}
|
|
283
316
|
/**
|
|
284
317
|
*
|
|
285
318
|
* @export
|
|
@@ -462,13 +495,45 @@ export interface DescribeResult200Response {
|
|
|
462
495
|
* @enum {string}
|
|
463
496
|
*/
|
|
464
497
|
export declare const DeviceTypeEnum: {
|
|
465
|
-
readonly
|
|
498
|
+
readonly Computer: "computer";
|
|
466
499
|
readonly Mobile: "mobile";
|
|
467
500
|
readonly Smartphone: "smartphone";
|
|
468
501
|
readonly Tablet: "tablet";
|
|
469
502
|
readonly Emulator: "emulator";
|
|
470
503
|
};
|
|
471
504
|
export type DeviceTypeEnum = (typeof DeviceTypeEnum)[keyof typeof DeviceTypeEnum];
|
|
505
|
+
/**
|
|
506
|
+
*
|
|
507
|
+
* @export
|
|
508
|
+
* @interface DuplicateScenario402Response
|
|
509
|
+
*/
|
|
510
|
+
export interface DuplicateScenario402Response {
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @type {Array<DuplicateScenario402ResponseErrorsInner>}
|
|
514
|
+
* @memberof DuplicateScenario402Response
|
|
515
|
+
*/
|
|
516
|
+
errors?: Array<DuplicateScenario402ResponseErrorsInner>;
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @export
|
|
521
|
+
* @interface DuplicateScenario402ResponseErrorsInner
|
|
522
|
+
*/
|
|
523
|
+
export interface DuplicateScenario402ResponseErrorsInner {
|
|
524
|
+
/**
|
|
525
|
+
*
|
|
526
|
+
* @type {number}
|
|
527
|
+
* @memberof DuplicateScenario402ResponseErrorsInner
|
|
528
|
+
*/
|
|
529
|
+
code?: number;
|
|
530
|
+
/**
|
|
531
|
+
*
|
|
532
|
+
* @type {string}
|
|
533
|
+
* @memberof DuplicateScenario402ResponseErrorsInner
|
|
534
|
+
*/
|
|
535
|
+
message?: string;
|
|
536
|
+
}
|
|
472
537
|
/**
|
|
473
538
|
*
|
|
474
539
|
* @export
|
|
@@ -857,6 +922,25 @@ export declare const OsTypeEnum: {
|
|
|
857
922
|
readonly Android: "android";
|
|
858
923
|
};
|
|
859
924
|
export type OsTypeEnum = (typeof OsTypeEnum)[keyof typeof OsTypeEnum];
|
|
925
|
+
/**
|
|
926
|
+
*
|
|
927
|
+
* @export
|
|
928
|
+
* @interface Project
|
|
929
|
+
*/
|
|
930
|
+
export interface Project {
|
|
931
|
+
/**
|
|
932
|
+
*
|
|
933
|
+
* @type {number}
|
|
934
|
+
* @memberof Project
|
|
935
|
+
*/
|
|
936
|
+
id?: number;
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {string}
|
|
940
|
+
* @memberof Project
|
|
941
|
+
*/
|
|
942
|
+
name?: string;
|
|
943
|
+
}
|
|
860
944
|
/**
|
|
861
945
|
*
|
|
862
946
|
* @export
|
|
@@ -888,6 +972,100 @@ export interface ProjectInfo {
|
|
|
888
972
|
*/
|
|
889
973
|
test_plans_count?: number;
|
|
890
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
*
|
|
977
|
+
* @export
|
|
978
|
+
* @interface ReplaceScenarioStepsRequest
|
|
979
|
+
*/
|
|
980
|
+
export interface ReplaceScenarioStepsRequest {
|
|
981
|
+
/**
|
|
982
|
+
* The version of the scenario you are writing, as returned by `version_token` when you read it. The write is rejected with 412 if anyone changed the scenario\'s name, description, labels or steps in between. Running the scenario or reviewing its results does not change it. Sending an empty value is an error; omit the field entirely to write whatever is there without checking.
|
|
983
|
+
* @type {string}
|
|
984
|
+
* @memberof ReplaceScenarioStepsRequest
|
|
985
|
+
*/
|
|
986
|
+
version_token?: string;
|
|
987
|
+
/**
|
|
988
|
+
* Every step of the scenario, in the order they should run. Each is an object with the fields of a `describeScenario` step: - `id`: an existing step\'s id. Leave it out to add a step. - `action_type`: required for a new step, from `listStepKeywords`. - `name`, `memo`: strings. `null` clears them to empty. - `on_failure`: `abort`, `continue` or `ignore`. `null` resets it to `abort`. - `step_execution_type`: `scenario_step` or `cleanup_step`. - `arguments`: a list of `{"name": ..., <fields>}`, matched by name. A `text` or `url` argument takes `value`, a string, or `true`/`false` for the switches of `Assert File Download`. An `element` argument takes `user_locator` and `user_locator_heals`. A `step_group` argument takes `step_group_id`, the id of a step group in this project, and `overrides`, described below. A function argument of an `Execute Javascript` step takes `value`, a string, which replaces any data table column, variable or address group the argument read before. Where the step\'s custom action declares the argument an integer, the string must hold one, such as `"7"`. `"value": null` removes the function argument. A name the step lacks adds one, after the others, on an existing step or a new one. Its code reads the argument as a parameter of that name, so the name must be a JavaScript identifier, not a reserved word, not a name the step uses already, and not one of the keyword\'s argument names in any case, such as `element`. `user_locator` is a CSS or XPath selector with a mandatory `css:` or `xpath:` prefix, and a new element needs one. Set `user_locator_heals` to true to have Autify find the element by it on the next passing run, learn the element from that run, and match it automatically from then on, the way a recorded step is matched; the selector then only has to be unambiguous now, not survive later page changes. Left false, the selector is a pin used on every run. Sending `user_locator: null` clears it, so the step goes back to matching the element automatically. For a keyword that needs its element, that is refused with 400 while the element has learned nothing to match it by, as on a step whose `candidate_locators` are still empty because it has not passed a run yet. Read only, and ignored when sent: `element_id`, `seed_locator`, `candidate_locators` and `assign`. A new `Execute Javascript` or `Open Window` step is given a generated `assign`; copy it from the response if another step refers to it. A `file` argument is read only, and sending a different file value is rejected. A value read back as `******` from a password field is treated as unchanged while the step keeps its keyword. Changing such a step\'s `action_type` needs the real value sent for that argument, and is rejected with 400 otherwise. `overrides` is a merge patch like the rest: an object keyed by the id of a step inside the group, each with `arguments` in the shape `describeScenario` reads back. Send only the arguments you change. An argument\'s `value` replaces what the group passes to that step, and `null` reverts it to the group\'s own value. A step id sent as `null` reverts all of that step\'s arguments, and `overrides: null` reverts every one. An `Execute Javascript` step\'s function arguments are named as its code refers to them. Only what the scenario editor lets a call site override is writable. Anything else is rejected with 400, including an element or a file and a step whose custom action was selected at the call site. Pointing the call site at another group drops its overrides before any you send apply. Not writable here: `Choose File` and `Open Email With Title` steps, which can only be recorded; the code of an `Execute Javascript` step that runs a custom action; the function arguments a custom action defines, beyond their values; and an element added to an existing `Execute Javascript` step that has none. To add an element, send the step without its `id`, with its function arguments, to replace it. A step sent without its `id` is new, so every value it carries is literal: an argument `describeScenario` reads as an email address group\'s identifier reaches the step as that identifier, not as an address from the group.
|
|
989
|
+
* @type {Array<object>}
|
|
990
|
+
* @memberof ReplaceScenarioStepsRequest
|
|
991
|
+
*/
|
|
992
|
+
steps: Array<object>;
|
|
993
|
+
}
|
|
994
|
+
/**
|
|
995
|
+
*
|
|
996
|
+
* @export
|
|
997
|
+
* @interface RestoreScenarioHistoryRequest
|
|
998
|
+
*/
|
|
999
|
+
export interface RestoreScenarioHistoryRequest {
|
|
1000
|
+
/**
|
|
1001
|
+
* The version of the scenario you are restoring, as returned by `version_token` when you read it. The restore is rejected with 412 if anyone changed the scenario\'s name, description, labels or steps in between. Running the scenario or reviewing its results does not change it. Sending an empty value is an error; omit the field entirely to restore over whatever is there without checking.
|
|
1002
|
+
* @type {string}
|
|
1003
|
+
* @memberof RestoreScenarioHistoryRequest
|
|
1004
|
+
*/
|
|
1005
|
+
version_token?: string;
|
|
1006
|
+
}
|
|
1007
|
+
/**
|
|
1008
|
+
* An argument to a step of a run. The vocabulary matches `ScenarioStepArgument`; which fields are present depends on `type`.
|
|
1009
|
+
* @export
|
|
1010
|
+
* @interface ResultStepArgument
|
|
1011
|
+
*/
|
|
1012
|
+
export interface ResultStepArgument {
|
|
1013
|
+
/**
|
|
1014
|
+
* Name of the argument, matching the `name` `listStepKeywords` publishes for this keyword\'s argument in the same slot. Null for a value the run carried beyond the arguments the keyword declares.
|
|
1015
|
+
* @type {string}
|
|
1016
|
+
* @memberof ResultStepArgument
|
|
1017
|
+
*/
|
|
1018
|
+
name?: string | null;
|
|
1019
|
+
/**
|
|
1020
|
+
* `text` and `url` carry `value`. `file` carries `file_name`. `element` carries `element_id`, `user_locator` and `candidate_locators`.
|
|
1021
|
+
* @type {string}
|
|
1022
|
+
* @memberof ResultStepArgument
|
|
1023
|
+
*/
|
|
1024
|
+
type?: ResultStepArgumentTypeEnum;
|
|
1025
|
+
/**
|
|
1026
|
+
*
|
|
1027
|
+
* @type {ResultStepArgumentValue}
|
|
1028
|
+
* @memberof ResultStepArgument
|
|
1029
|
+
*/
|
|
1030
|
+
value?: ResultStepArgumentValue;
|
|
1031
|
+
/**
|
|
1032
|
+
* The uploaded file\'s name, without the storage path it is kept under.
|
|
1033
|
+
* @type {string}
|
|
1034
|
+
* @memberof ResultStepArgument
|
|
1035
|
+
*/
|
|
1036
|
+
file_name?: string | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* ID of the Autify element targeted by the step.
|
|
1039
|
+
* @type {number}
|
|
1040
|
+
* @memberof ResultStepArgument
|
|
1041
|
+
*/
|
|
1042
|
+
element_id?: number | null;
|
|
1043
|
+
/**
|
|
1044
|
+
* Locator explicitly specified by the user, when present. Null for a password field, whose locator can embed the value.
|
|
1045
|
+
* @type {string}
|
|
1046
|
+
* @memberof ResultStepArgument
|
|
1047
|
+
*/
|
|
1048
|
+
user_locator?: string | null;
|
|
1049
|
+
/**
|
|
1050
|
+
* Selectors Autify had available going into this run, the same flat list `describeScenario` returns for the element. These come from what Autify learned on earlier runs, so a step that has never passed has none. They work as a set, not as alternatives. When Autify matches on them it requires every one to resolve to the same element, so a single one may be ambiguous alone and is not safe to pin on its own. Order is the order Autify generated them in, and carries no ranking. Empty for a password field, whose locators can embed the value.
|
|
1051
|
+
* @type {Array<string>}
|
|
1052
|
+
* @memberof ResultStepArgument
|
|
1053
|
+
*/
|
|
1054
|
+
candidate_locators?: Array<string>;
|
|
1055
|
+
}
|
|
1056
|
+
export declare const ResultStepArgumentTypeEnum: {
|
|
1057
|
+
readonly Text: "text";
|
|
1058
|
+
readonly Url: "url";
|
|
1059
|
+
readonly File: "file";
|
|
1060
|
+
readonly Element: "element";
|
|
1061
|
+
};
|
|
1062
|
+
export type ResultStepArgumentTypeEnum = (typeof ResultStepArgumentTypeEnum)[keyof typeof ResultStepArgumentTypeEnum];
|
|
1063
|
+
/**
|
|
1064
|
+
* @type ResultStepArgumentValue
|
|
1065
|
+
* The value, for a `text` or `url` argument, and null for a declared slot the run did not fill. A boolean argument returns a real boolean, matching what `describeScenario` returns for the same step.
|
|
1066
|
+
* @export
|
|
1067
|
+
*/
|
|
1068
|
+
export type ResultStepArgumentValue = boolean | string;
|
|
891
1069
|
/**
|
|
892
1070
|
*
|
|
893
1071
|
* @export
|
|
@@ -949,6 +1127,12 @@ export interface ScenarioDetail {
|
|
|
949
1127
|
* @memberof ScenarioDetail
|
|
950
1128
|
*/
|
|
951
1129
|
id?: number;
|
|
1130
|
+
/**
|
|
1131
|
+
* Opaque version of the scenario as returned. Send it back as `version_token` on an update to have that update rejected if the scenario changed in between.
|
|
1132
|
+
* @type {string}
|
|
1133
|
+
* @memberof ScenarioDetail
|
|
1134
|
+
*/
|
|
1135
|
+
version_token?: string;
|
|
952
1136
|
/**
|
|
953
1137
|
*
|
|
954
1138
|
* @type {string}
|
|
@@ -981,10 +1165,34 @@ export interface ScenarioDetail {
|
|
|
981
1165
|
updater?: User;
|
|
982
1166
|
/**
|
|
983
1167
|
*
|
|
984
|
-
* @type {
|
|
1168
|
+
* @type {string}
|
|
1169
|
+
* @memberof ScenarioDetail
|
|
1170
|
+
*/
|
|
1171
|
+
description?: string | null;
|
|
1172
|
+
/**
|
|
1173
|
+
*
|
|
1174
|
+
* @type {string}
|
|
1175
|
+
* @memberof ScenarioDetail
|
|
1176
|
+
*/
|
|
1177
|
+
project_url?: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* The scenario\'s steps, in execution order.
|
|
1180
|
+
* @type {Array<ScenarioStep>}
|
|
1181
|
+
* @memberof ScenarioDetail
|
|
1182
|
+
*/
|
|
1183
|
+
steps?: Array<ScenarioStep>;
|
|
1184
|
+
/**
|
|
1185
|
+
* The scenario\'s data table, one entry per row.
|
|
1186
|
+
* @type {Array<object>}
|
|
1187
|
+
* @memberof ScenarioDetail
|
|
1188
|
+
*/
|
|
1189
|
+
data_table?: Array<object>;
|
|
1190
|
+
/**
|
|
1191
|
+
*
|
|
1192
|
+
* @type {ScenarioVariables}
|
|
985
1193
|
* @memberof ScenarioDetail
|
|
986
1194
|
*/
|
|
987
|
-
|
|
1195
|
+
variables?: ScenarioVariables;
|
|
988
1196
|
/**
|
|
989
1197
|
*
|
|
990
1198
|
* @type {Array<Label>}
|
|
@@ -995,213 +1203,858 @@ export interface ScenarioDetail {
|
|
|
995
1203
|
/**
|
|
996
1204
|
*
|
|
997
1205
|
* @export
|
|
998
|
-
* @interface
|
|
1206
|
+
* @interface ScenarioHistory
|
|
999
1207
|
*/
|
|
1000
|
-
export interface
|
|
1208
|
+
export interface ScenarioHistory {
|
|
1001
1209
|
/**
|
|
1002
1210
|
*
|
|
1003
1211
|
* @type {number}
|
|
1004
|
-
* @memberof
|
|
1212
|
+
* @memberof ScenarioHistory
|
|
1005
1213
|
*/
|
|
1006
1214
|
id?: number;
|
|
1007
1215
|
/**
|
|
1008
|
-
*
|
|
1009
|
-
* @type {
|
|
1010
|
-
* @memberof
|
|
1216
|
+
* When this entry was recorded. For an editor save that is a moment after the save, when the entry is written.
|
|
1217
|
+
* @type {string}
|
|
1218
|
+
* @memberof ScenarioHistory
|
|
1011
1219
|
*/
|
|
1012
|
-
|
|
1220
|
+
created_at?: string;
|
|
1013
1221
|
/**
|
|
1014
1222
|
*
|
|
1015
|
-
* @type {
|
|
1016
|
-
* @memberof
|
|
1223
|
+
* @type {ScenarioHistoryAuthor}
|
|
1224
|
+
* @memberof ScenarioHistory
|
|
1225
|
+
*/
|
|
1226
|
+
author?: ScenarioHistoryAuthor | null;
|
|
1227
|
+
/**
|
|
1228
|
+
* True on the entry recorded by the most recent save of the scenario\'s steps.
|
|
1229
|
+
* @type {boolean}
|
|
1230
|
+
* @memberof ScenarioHistory
|
|
1017
1231
|
*/
|
|
1018
|
-
|
|
1232
|
+
latest?: boolean;
|
|
1019
1233
|
}
|
|
1020
1234
|
/**
|
|
1021
1235
|
*
|
|
1022
1236
|
* @export
|
|
1023
|
-
* @interface
|
|
1237
|
+
* @interface ScenarioHistoryAuthor
|
|
1024
1238
|
*/
|
|
1025
|
-
export interface
|
|
1239
|
+
export interface ScenarioHistoryAuthor {
|
|
1026
1240
|
/**
|
|
1027
1241
|
*
|
|
1028
1242
|
* @type {number}
|
|
1029
|
-
* @memberof
|
|
1243
|
+
* @memberof ScenarioHistoryAuthor
|
|
1030
1244
|
*/
|
|
1031
1245
|
id?: number;
|
|
1032
1246
|
/**
|
|
1033
1247
|
*
|
|
1034
|
-
* @type {
|
|
1035
|
-
* @memberof
|
|
1036
|
-
*/
|
|
1037
|
-
step_arguments?: ScenarioDetailStepsInnerStepKeywordStepArguments;
|
|
1038
|
-
/**
|
|
1039
|
-
*
|
|
1040
|
-
* @type {ScenarioDetailStepsInnerStepKeywordTranslatedKeyword}
|
|
1041
|
-
* @memberof ScenarioDetailStepsInnerStepKeyword
|
|
1248
|
+
* @type {string}
|
|
1249
|
+
* @memberof ScenarioHistoryAuthor
|
|
1042
1250
|
*/
|
|
1043
|
-
|
|
1251
|
+
username?: string;
|
|
1044
1252
|
}
|
|
1045
1253
|
/**
|
|
1046
1254
|
*
|
|
1047
1255
|
* @export
|
|
1048
|
-
* @interface
|
|
1256
|
+
* @interface ScenarioHistoryDetail
|
|
1049
1257
|
*/
|
|
1050
|
-
export interface
|
|
1258
|
+
export interface ScenarioHistoryDetail {
|
|
1051
1259
|
/**
|
|
1052
1260
|
*
|
|
1053
1261
|
* @type {number}
|
|
1054
|
-
* @memberof
|
|
1262
|
+
* @memberof ScenarioHistoryDetail
|
|
1055
1263
|
*/
|
|
1056
1264
|
id?: number;
|
|
1265
|
+
/**
|
|
1266
|
+
* When this entry was recorded. For an editor save that is a moment after the save, when the entry is written.
|
|
1267
|
+
* @type {string}
|
|
1268
|
+
* @memberof ScenarioHistoryDetail
|
|
1269
|
+
*/
|
|
1270
|
+
created_at?: string;
|
|
1271
|
+
/**
|
|
1272
|
+
*
|
|
1273
|
+
* @type {ScenarioHistoryAuthor}
|
|
1274
|
+
* @memberof ScenarioHistoryDetail
|
|
1275
|
+
*/
|
|
1276
|
+
author?: ScenarioHistoryAuthor | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* True when this entry was recorded by the most recent save of the scenario\'s steps.
|
|
1279
|
+
* @type {boolean}
|
|
1280
|
+
* @memberof ScenarioHistoryDetail
|
|
1281
|
+
*/
|
|
1282
|
+
latest?: boolean;
|
|
1283
|
+
/**
|
|
1284
|
+
* The scenario\'s name when this entry was recorded.
|
|
1285
|
+
* @type {string}
|
|
1286
|
+
* @memberof ScenarioHistoryDetail
|
|
1287
|
+
*/
|
|
1288
|
+
name?: string;
|
|
1289
|
+
/**
|
|
1290
|
+
* The scenario\'s steps at this entry, in execution order.
|
|
1291
|
+
* @type {Array<ScenarioStep>}
|
|
1292
|
+
* @memberof ScenarioHistoryDetail
|
|
1293
|
+
*/
|
|
1294
|
+
steps?: Array<ScenarioStep>;
|
|
1295
|
+
/**
|
|
1296
|
+
* The scenario\'s data table at this entry, one entry per row.
|
|
1297
|
+
* @type {Array<object>}
|
|
1298
|
+
* @memberof ScenarioHistoryDetail
|
|
1299
|
+
*/
|
|
1300
|
+
data_table?: Array<object>;
|
|
1057
1301
|
/**
|
|
1058
1302
|
*
|
|
1059
|
-
* @type {
|
|
1060
|
-
* @memberof
|
|
1303
|
+
* @type {ScenarioVariables}
|
|
1304
|
+
* @memberof ScenarioHistoryDetail
|
|
1061
1305
|
*/
|
|
1062
|
-
|
|
1306
|
+
variables?: ScenarioVariables;
|
|
1063
1307
|
}
|
|
1064
|
-
/**
|
|
1065
|
-
* @type ScenarioDetailStepsInnerStepKeywordStepArgumentsValue
|
|
1066
|
-
* @export
|
|
1067
|
-
*/
|
|
1068
|
-
export type ScenarioDetailStepsInnerStepKeywordStepArgumentsValue = boolean | string;
|
|
1069
1308
|
/**
|
|
1070
1309
|
*
|
|
1071
1310
|
* @export
|
|
1072
|
-
* @interface
|
|
1311
|
+
* @interface ScenarioStep
|
|
1073
1312
|
*/
|
|
1074
|
-
export interface
|
|
1313
|
+
export interface ScenarioStep {
|
|
1075
1314
|
/**
|
|
1076
|
-
*
|
|
1315
|
+
* Identifier of the step. `describeScenario` always fills it. Only `describeScenarioHistory` can return null, for an entry saved before late July 2024, when history entries started recording step ids.
|
|
1077
1316
|
* @type {number}
|
|
1078
|
-
* @memberof
|
|
1317
|
+
* @memberof ScenarioStep
|
|
1079
1318
|
*/
|
|
1080
|
-
id?: number;
|
|
1319
|
+
id?: number | null;
|
|
1081
1320
|
/**
|
|
1082
|
-
*
|
|
1321
|
+
* The step\'s keyword in enum form, for example `INPUT_TEXT`. This is the same value the write API takes, and the `action_type` `listStepKeywords` publishes. Null for a legacy keyword that has no enum member.
|
|
1322
|
+
* @type {string}
|
|
1323
|
+
* @memberof ScenarioStep
|
|
1324
|
+
*/
|
|
1325
|
+
action_type?: string | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* The step\'s name, as shown in the scenario editor.
|
|
1083
1328
|
* @type {string}
|
|
1084
|
-
* @memberof
|
|
1329
|
+
* @memberof ScenarioStep
|
|
1085
1330
|
*/
|
|
1086
1331
|
name?: string;
|
|
1087
1332
|
/**
|
|
1088
1333
|
*
|
|
1089
1334
|
* @type {string}
|
|
1090
|
-
* @memberof
|
|
1335
|
+
* @memberof ScenarioStep
|
|
1091
1336
|
*/
|
|
1092
|
-
|
|
1337
|
+
memo?: string;
|
|
1093
1338
|
/**
|
|
1094
|
-
*
|
|
1339
|
+
* What the run does when this step fails.
|
|
1095
1340
|
* @type {string}
|
|
1096
|
-
* @memberof
|
|
1341
|
+
* @memberof ScenarioStep
|
|
1097
1342
|
*/
|
|
1098
|
-
|
|
1343
|
+
on_failure?: ScenarioStepOnFailureEnum;
|
|
1344
|
+
/**
|
|
1345
|
+
* Whether the step runs as part of the scenario or as a cleanup step afterwards.
|
|
1346
|
+
* @type {string}
|
|
1347
|
+
* @memberof ScenarioStep
|
|
1348
|
+
*/
|
|
1349
|
+
step_execution_type?: ScenarioStepStepExecutionTypeEnum;
|
|
1350
|
+
/**
|
|
1351
|
+
* The identifier this step\'s result is assigned to. Two kinds of value appear here. A step that an export variable reads from carries that variable\'s key, which you chose. A JavaScript step instead carries a generated key shaped `${<32 hex characters>}`, which is machine-owned: copy it verbatim and do not invent one. An `assign` does not imply that an export variable exists for the step.
|
|
1352
|
+
* @type {string}
|
|
1353
|
+
* @memberof ScenarioStep
|
|
1354
|
+
*/
|
|
1355
|
+
assign?: string | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* The step\'s arguments, in the order `listStepKeywords` gives them for this keyword. Optional arguments the step does not set are absent, so match an argument by its `name` rather than by position. A run\'s steps carry the same names and types, under `ResultStepArgument`, with a different arity: this endpoint leaves out an optional argument the step never set, while a run emits every slot its keyword declares. There a `file` argument reports just `file_name`, and `step_group` appears only here. A run lists an `Execute Javascript` step\'s function arguments after its keyword\'s arguments with a null `name`, in the order the code reads them.
|
|
1358
|
+
* @type {Array<ScenarioStepArgument>}
|
|
1359
|
+
* @memberof ScenarioStep
|
|
1360
|
+
*/
|
|
1361
|
+
arguments?: Array<ScenarioStepArgument>;
|
|
1099
1362
|
}
|
|
1363
|
+
export declare const ScenarioStepOnFailureEnum: {
|
|
1364
|
+
readonly Abort: "abort";
|
|
1365
|
+
readonly Continue: "continue";
|
|
1366
|
+
readonly Ignore: "ignore";
|
|
1367
|
+
};
|
|
1368
|
+
export type ScenarioStepOnFailureEnum = (typeof ScenarioStepOnFailureEnum)[keyof typeof ScenarioStepOnFailureEnum];
|
|
1369
|
+
export declare const ScenarioStepStepExecutionTypeEnum: {
|
|
1370
|
+
readonly ScenarioStep: "scenario_step";
|
|
1371
|
+
readonly CleanupStep: "cleanup_step";
|
|
1372
|
+
};
|
|
1373
|
+
export type ScenarioStepStepExecutionTypeEnum = (typeof ScenarioStepStepExecutionTypeEnum)[keyof typeof ScenarioStepStepExecutionTypeEnum];
|
|
1100
1374
|
/**
|
|
1101
|
-
*
|
|
1375
|
+
* An argument to a step. Which fields are present depends on `type`.
|
|
1102
1376
|
* @export
|
|
1103
|
-
* @interface
|
|
1377
|
+
* @interface ScenarioStepArgument
|
|
1104
1378
|
*/
|
|
1105
|
-
export interface
|
|
1379
|
+
export interface ScenarioStepArgument {
|
|
1106
1380
|
/**
|
|
1107
|
-
*
|
|
1108
|
-
* @type {
|
|
1109
|
-
* @memberof
|
|
1381
|
+
* Name of the argument, matching the `name` `listStepKeywords` publishes for this keyword\'s argument in the same slot. An `Execute Javascript` step\'s function arguments follow its keyword\'s arguments, each named as the step\'s code refers to it.
|
|
1382
|
+
* @type {string}
|
|
1383
|
+
* @memberof ScenarioStepArgument
|
|
1110
1384
|
*/
|
|
1111
|
-
|
|
1385
|
+
name?: string | null;
|
|
1112
1386
|
/**
|
|
1113
|
-
*
|
|
1114
|
-
* @type {
|
|
1115
|
-
* @memberof
|
|
1387
|
+
* `text` and `url` carry `value`. `file` carries `file_name`, `file_size` and `object_key`. `element` carries `element_id`, `user_locator`, `user_locator_heals`, `seed_locator` and `candidate_locators`. `step_group` carries `step_group_id` and `overrides`.
|
|
1388
|
+
* @type {string}
|
|
1389
|
+
* @memberof ScenarioStepArgument
|
|
1116
1390
|
*/
|
|
1117
|
-
|
|
1391
|
+
type?: ScenarioStepArgumentTypeEnum;
|
|
1118
1392
|
/**
|
|
1119
1393
|
*
|
|
1394
|
+
* @type {ScenarioStepArgumentValue}
|
|
1395
|
+
* @memberof ScenarioStepArgument
|
|
1396
|
+
*/
|
|
1397
|
+
value?: ScenarioStepArgumentValue;
|
|
1398
|
+
/**
|
|
1399
|
+
* Identifier of the element this step targets. Read only. `describeScenario` always fills it. `describeScenarioHistory` always returns null, because a history entry never records element ids.
|
|
1120
1400
|
* @type {number}
|
|
1121
|
-
* @memberof
|
|
1401
|
+
* @memberof ScenarioStepArgument
|
|
1122
1402
|
*/
|
|
1123
|
-
|
|
1403
|
+
element_id?: number | null;
|
|
1124
1404
|
/**
|
|
1125
|
-
*
|
|
1405
|
+
* The CSS or XPath selector pinned to this element, if one is set. The `css:` or `xpath:` prefix is part of the value.
|
|
1126
1406
|
* @type {string}
|
|
1127
|
-
* @memberof
|
|
1407
|
+
* @memberof ScenarioStepArgument
|
|
1128
1408
|
*/
|
|
1129
|
-
|
|
1409
|
+
user_locator?: string | null;
|
|
1130
1410
|
/**
|
|
1131
|
-
*
|
|
1132
|
-
* @type {
|
|
1133
|
-
* @memberof
|
|
1411
|
+
* Whether `user_locator` is a seed rather than a pin. When true, the next run finds the element by `user_locator`, Autify learns the element from that run, and later runs match it automatically as if it had been recorded, so a page change no longer breaks the step. When false, every run uses `user_locator` and nothing else. `describeScenario` always fills it; `describeScenarioHistory` returns null, because a history entry does not record it.
|
|
1412
|
+
* @type {boolean}
|
|
1413
|
+
* @memberof ScenarioStepArgument
|
|
1134
1414
|
*/
|
|
1135
|
-
|
|
1415
|
+
user_locator_heals?: boolean | null;
|
|
1136
1416
|
/**
|
|
1137
|
-
*
|
|
1417
|
+
* The `user_locator` Autify last learned the element from. Read only. It equals `user_locator` once a run has learned the element; when the two differ, the next run uses `user_locator` again and relearns from it.
|
|
1138
1418
|
* @type {string}
|
|
1139
|
-
* @memberof
|
|
1419
|
+
* @memberof ScenarioStepArgument
|
|
1140
1420
|
*/
|
|
1141
|
-
|
|
1421
|
+
seed_locator?: string | null;
|
|
1422
|
+
/**
|
|
1423
|
+
* The locators Autify generated for this element on its last passing run, which is how the step is matched when no `user_locator` is set. Read only, and empty until the scenario has passed once. `null` when the step was recorded on a password field, which withholds them.
|
|
1424
|
+
* @type {Array<string>}
|
|
1425
|
+
* @memberof ScenarioStepArgument
|
|
1426
|
+
*/
|
|
1427
|
+
candidate_locators?: Array<string> | null;
|
|
1142
1428
|
/**
|
|
1143
1429
|
*
|
|
1144
1430
|
* @type {string}
|
|
1145
|
-
* @memberof
|
|
1431
|
+
* @memberof ScenarioStepArgument
|
|
1146
1432
|
*/
|
|
1147
|
-
|
|
1433
|
+
file_name?: string | null;
|
|
1148
1434
|
/**
|
|
1149
|
-
*
|
|
1435
|
+
*
|
|
1150
1436
|
* @type {number}
|
|
1151
|
-
* @memberof
|
|
1437
|
+
* @memberof ScenarioStepArgument
|
|
1152
1438
|
*/
|
|
1153
|
-
|
|
1439
|
+
file_size?: number | null;
|
|
1154
1440
|
/**
|
|
1155
1441
|
*
|
|
1156
1442
|
* @type {string}
|
|
1157
|
-
* @memberof
|
|
1158
|
-
*/
|
|
1159
|
-
project_url?: string;
|
|
1160
|
-
/**
|
|
1161
|
-
* Number of "Review needed" flags present in the test results.
|
|
1162
|
-
* @type {number}
|
|
1163
|
-
* @memberof TestCaseResult
|
|
1443
|
+
* @memberof ScenarioStepArgument
|
|
1164
1444
|
*/
|
|
1165
|
-
|
|
1445
|
+
object_key?: string | null;
|
|
1166
1446
|
/**
|
|
1167
|
-
*
|
|
1447
|
+
* The step group this step runs. Read it with `describeScenario` using this id.
|
|
1168
1448
|
* @type {number}
|
|
1169
|
-
* @memberof
|
|
1449
|
+
* @memberof ScenarioStepArgument
|
|
1170
1450
|
*/
|
|
1171
|
-
|
|
1451
|
+
step_group_id?: number | null;
|
|
1172
1452
|
/**
|
|
1173
|
-
*
|
|
1174
|
-
* @type {
|
|
1175
|
-
* @memberof
|
|
1453
|
+
* The values this call site substitutes into the step group, keyed by the id of the step inside the group that each one applies to. An empty object means this endpoint reports no override for the group, which is not the same as the group running as authored. A custom action selected for an `Execute Javascript` step at the call site is never reported, and neither are that step\'s other overrides. `replaceScenarioSteps` writes these in the same shape.
|
|
1454
|
+
* @type {{ [key: string]: ScenarioStepArgumentOverridesValue; }}
|
|
1455
|
+
* @memberof ScenarioStepArgument
|
|
1176
1456
|
*/
|
|
1177
|
-
|
|
1457
|
+
overrides?: {
|
|
1458
|
+
[key: string]: ScenarioStepArgumentOverridesValue;
|
|
1459
|
+
};
|
|
1460
|
+
}
|
|
1461
|
+
export declare const ScenarioStepArgumentTypeEnum: {
|
|
1462
|
+
readonly Text: "text";
|
|
1463
|
+
readonly Url: "url";
|
|
1464
|
+
readonly File: "file";
|
|
1465
|
+
readonly Element: "element";
|
|
1466
|
+
readonly StepGroup: "step_group";
|
|
1467
|
+
};
|
|
1468
|
+
export type ScenarioStepArgumentTypeEnum = (typeof ScenarioStepArgumentTypeEnum)[keyof typeof ScenarioStepArgumentTypeEnum];
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @export
|
|
1472
|
+
* @interface ScenarioStepArgumentOverridesValue
|
|
1473
|
+
*/
|
|
1474
|
+
export interface ScenarioStepArgumentOverridesValue {
|
|
1178
1475
|
/**
|
|
1179
|
-
*
|
|
1180
|
-
* @type {Array<
|
|
1181
|
-
* @memberof
|
|
1476
|
+
* Only the arguments this call site overrides, named as `listStepKeywords` names them for the overridden step\'s keyword. Match by `name`: an argument left as the group authored it is absent, as is one whose stored override repeats the authored value and so substitutes nothing. An argument that names an element is absent too, because a run locates the element the step group authored and ignores anything a call site stores against that argument. An `Execute Javascript` step\'s changed function arguments follow, named as its code refers to them.
|
|
1477
|
+
* @type {Array<ScenarioStepArgumentOverridesValueArgumentsInner>}
|
|
1478
|
+
* @memberof ScenarioStepArgumentOverridesValue
|
|
1182
1479
|
*/
|
|
1183
|
-
|
|
1480
|
+
arguments?: Array<ScenarioStepArgumentOverridesValueArgumentsInner>;
|
|
1184
1481
|
}
|
|
1185
1482
|
/**
|
|
1186
1483
|
*
|
|
1187
1484
|
* @export
|
|
1188
|
-
* @interface
|
|
1485
|
+
* @interface ScenarioStepArgumentOverridesValueArgumentsInner
|
|
1189
1486
|
*/
|
|
1190
|
-
export interface
|
|
1487
|
+
export interface ScenarioStepArgumentOverridesValueArgumentsInner {
|
|
1191
1488
|
/**
|
|
1192
1489
|
*
|
|
1193
1490
|
* @type {string}
|
|
1194
|
-
* @memberof
|
|
1491
|
+
* @memberof ScenarioStepArgumentOverridesValueArgumentsInner
|
|
1195
1492
|
*/
|
|
1196
|
-
|
|
1493
|
+
name?: string | null;
|
|
1197
1494
|
/**
|
|
1198
|
-
*
|
|
1495
|
+
* The kind of the substituted value: `url` where the overridden argument names a page, `text` otherwise.
|
|
1199
1496
|
* @type {string}
|
|
1200
|
-
* @memberof
|
|
1497
|
+
* @memberof ScenarioStepArgumentOverridesValueArgumentsInner
|
|
1201
1498
|
*/
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1499
|
+
type?: ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum;
|
|
1500
|
+
/**
|
|
1501
|
+
*
|
|
1502
|
+
* @type {ScenarioStepArgumentOverridesValueArgumentsInnerValue}
|
|
1503
|
+
* @memberof ScenarioStepArgumentOverridesValueArgumentsInner
|
|
1504
|
+
*/
|
|
1505
|
+
value?: ScenarioStepArgumentOverridesValueArgumentsInnerValue;
|
|
1506
|
+
}
|
|
1507
|
+
export declare const ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum: {
|
|
1508
|
+
readonly Text: "text";
|
|
1509
|
+
readonly Url: "url";
|
|
1510
|
+
};
|
|
1511
|
+
export type ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum = (typeof ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum)[keyof typeof ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum];
|
|
1512
|
+
/**
|
|
1513
|
+
* @type ScenarioStepArgumentOverridesValueArgumentsInnerValue
|
|
1514
|
+
* The substituted value. Where the overridden step was recorded on a password field this is `******`, as it is when the step group itself is read.
|
|
1515
|
+
* @export
|
|
1516
|
+
*/
|
|
1517
|
+
export type ScenarioStepArgumentOverridesValueArgumentsInnerValue = boolean | string;
|
|
1518
|
+
/**
|
|
1519
|
+
* @type ScenarioStepArgumentValue
|
|
1520
|
+
* The value, for a `text` or `url` argument. A value typed into a password field is returned as `******`.
|
|
1521
|
+
* @export
|
|
1522
|
+
*/
|
|
1523
|
+
export type ScenarioStepArgumentValue = boolean | string;
|
|
1524
|
+
/**
|
|
1525
|
+
*
|
|
1526
|
+
* @export
|
|
1527
|
+
* @interface ScenarioTestCaseResult
|
|
1528
|
+
*/
|
|
1529
|
+
export interface ScenarioTestCaseResult {
|
|
1530
|
+
/**
|
|
1531
|
+
*
|
|
1532
|
+
* @type {number}
|
|
1533
|
+
* @memberof ScenarioTestCaseResult
|
|
1534
|
+
*/
|
|
1535
|
+
id?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
*
|
|
1538
|
+
* @type {TestCaseResultStatus}
|
|
1539
|
+
* @memberof ScenarioTestCaseResult
|
|
1540
|
+
*/
|
|
1541
|
+
status?: TestCaseResultStatus;
|
|
1542
|
+
/**
|
|
1543
|
+
*
|
|
1544
|
+
* @type {number}
|
|
1545
|
+
* @memberof ScenarioTestCaseResult
|
|
1546
|
+
*/
|
|
1547
|
+
duration?: number;
|
|
1548
|
+
/**
|
|
1549
|
+
*
|
|
1550
|
+
* @type {string}
|
|
1551
|
+
* @memberof ScenarioTestCaseResult
|
|
1552
|
+
*/
|
|
1553
|
+
started_at?: string;
|
|
1554
|
+
/**
|
|
1555
|
+
*
|
|
1556
|
+
* @type {string}
|
|
1557
|
+
* @memberof ScenarioTestCaseResult
|
|
1558
|
+
*/
|
|
1559
|
+
finished_at?: string;
|
|
1560
|
+
/**
|
|
1561
|
+
*
|
|
1562
|
+
* @type {string}
|
|
1563
|
+
* @memberof ScenarioTestCaseResult
|
|
1564
|
+
*/
|
|
1565
|
+
created_at?: string;
|
|
1566
|
+
/**
|
|
1567
|
+
*
|
|
1568
|
+
* @type {string}
|
|
1569
|
+
* @memberof ScenarioTestCaseResult
|
|
1570
|
+
*/
|
|
1571
|
+
updated_at?: string;
|
|
1572
|
+
/**
|
|
1573
|
+
* ID of the scenario executed.
|
|
1574
|
+
* @type {number}
|
|
1575
|
+
* @memberof ScenarioTestCaseResult
|
|
1576
|
+
*/
|
|
1577
|
+
test_case_id?: number;
|
|
1578
|
+
/**
|
|
1579
|
+
*
|
|
1580
|
+
* @type {string}
|
|
1581
|
+
* @memberof ScenarioTestCaseResult
|
|
1582
|
+
*/
|
|
1583
|
+
project_url?: string;
|
|
1584
|
+
/**
|
|
1585
|
+
* Number of "Review needed" flags present in the test results.
|
|
1586
|
+
* @type {number}
|
|
1587
|
+
* @memberof ScenarioTestCaseResult
|
|
1588
|
+
*/
|
|
1589
|
+
review_needed?: number;
|
|
1590
|
+
/**
|
|
1591
|
+
* Number of credits consumed by this test result. (default 0 for test result created before credit based system)
|
|
1592
|
+
* @type {number}
|
|
1593
|
+
* @memberof ScenarioTestCaseResult
|
|
1594
|
+
*/
|
|
1595
|
+
number_of_credits_consumed?: number;
|
|
1596
|
+
/**
|
|
1597
|
+
* THIS FEATURE IS FOR LIMITED NUMBER OF CUSTOMERS. Variables imported from previously executed test results in a test plan.
|
|
1598
|
+
* @type {Array<TestCaseResultImportVariablesInner>}
|
|
1599
|
+
* @memberof ScenarioTestCaseResult
|
|
1600
|
+
*/
|
|
1601
|
+
import_variables?: Array<TestCaseResultImportVariablesInner>;
|
|
1602
|
+
/**
|
|
1603
|
+
* THIS FEATURE IS FOR LIMITED NUMBER OF CUSTOMERS. Variables exported from this test result.
|
|
1604
|
+
* @type {Array<TestCaseResultExportVariablesInner>}
|
|
1605
|
+
* @memberof ScenarioTestCaseResult
|
|
1606
|
+
*/
|
|
1607
|
+
export_variables?: Array<TestCaseResultExportVariablesInner>;
|
|
1608
|
+
/**
|
|
1609
|
+
*
|
|
1610
|
+
* @type {Capability}
|
|
1611
|
+
* @memberof ScenarioTestCaseResult
|
|
1612
|
+
*/
|
|
1613
|
+
capability?: Capability | null;
|
|
1614
|
+
}
|
|
1615
|
+
/**
|
|
1616
|
+
*
|
|
1617
|
+
* @export
|
|
1618
|
+
* @interface ScenarioTestCaseResultAllOf
|
|
1619
|
+
*/
|
|
1620
|
+
export interface ScenarioTestCaseResultAllOf {
|
|
1621
|
+
/**
|
|
1622
|
+
*
|
|
1623
|
+
* @type {Capability}
|
|
1624
|
+
* @memberof ScenarioTestCaseResultAllOf
|
|
1625
|
+
*/
|
|
1626
|
+
capability?: Capability | null;
|
|
1627
|
+
}
|
|
1628
|
+
/**
|
|
1629
|
+
*
|
|
1630
|
+
* @export
|
|
1631
|
+
* @interface ScenarioVariables
|
|
1632
|
+
*/
|
|
1633
|
+
export interface ScenarioVariables {
|
|
1634
|
+
/**
|
|
1635
|
+
*
|
|
1636
|
+
* @type {Array<ScenarioVariablesImportInner>}
|
|
1637
|
+
* @memberof ScenarioVariables
|
|
1638
|
+
*/
|
|
1639
|
+
import?: Array<ScenarioVariablesImportInner>;
|
|
1640
|
+
/**
|
|
1641
|
+
*
|
|
1642
|
+
* @type {Array<ScenarioVariablesExportInner>}
|
|
1643
|
+
* @memberof ScenarioVariables
|
|
1644
|
+
*/
|
|
1645
|
+
export?: Array<ScenarioVariablesExportInner>;
|
|
1646
|
+
}
|
|
1647
|
+
/**
|
|
1648
|
+
*
|
|
1649
|
+
* @export
|
|
1650
|
+
* @interface ScenarioVariablesExportInner
|
|
1651
|
+
*/
|
|
1652
|
+
export interface ScenarioVariablesExportInner {
|
|
1653
|
+
/**
|
|
1654
|
+
*
|
|
1655
|
+
* @type {string}
|
|
1656
|
+
* @memberof ScenarioVariablesExportInner
|
|
1657
|
+
*/
|
|
1658
|
+
key?: string;
|
|
1659
|
+
/**
|
|
1660
|
+
*
|
|
1661
|
+
* @type {number}
|
|
1662
|
+
* @memberof ScenarioVariablesExportInner
|
|
1663
|
+
*/
|
|
1664
|
+
step_id?: number | null;
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
*
|
|
1668
|
+
* @export
|
|
1669
|
+
* @interface ScenarioVariablesImportInner
|
|
1670
|
+
*/
|
|
1671
|
+
export interface ScenarioVariablesImportInner {
|
|
1672
|
+
/**
|
|
1673
|
+
*
|
|
1674
|
+
* @type {string}
|
|
1675
|
+
* @memberof ScenarioVariablesImportInner
|
|
1676
|
+
*/
|
|
1677
|
+
key?: string;
|
|
1678
|
+
/**
|
|
1679
|
+
*
|
|
1680
|
+
* @type {string}
|
|
1681
|
+
* @memberof ScenarioVariablesImportInner
|
|
1682
|
+
*/
|
|
1683
|
+
default_value?: string;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
*
|
|
1687
|
+
* @export
|
|
1688
|
+
* @interface SearchSteps400Response
|
|
1689
|
+
*/
|
|
1690
|
+
export interface SearchSteps400Response {
|
|
1691
|
+
/**
|
|
1692
|
+
*
|
|
1693
|
+
* @type {Array<SearchSteps400ResponseErrorsInner>}
|
|
1694
|
+
* @memberof SearchSteps400Response
|
|
1695
|
+
*/
|
|
1696
|
+
errors?: Array<SearchSteps400ResponseErrorsInner>;
|
|
1697
|
+
}
|
|
1698
|
+
/**
|
|
1699
|
+
*
|
|
1700
|
+
* @export
|
|
1701
|
+
* @interface SearchSteps400ResponseErrorsInner
|
|
1702
|
+
*/
|
|
1703
|
+
export interface SearchSteps400ResponseErrorsInner {
|
|
1704
|
+
/**
|
|
1705
|
+
*
|
|
1706
|
+
* @type {number}
|
|
1707
|
+
* @memberof SearchSteps400ResponseErrorsInner
|
|
1708
|
+
*/
|
|
1709
|
+
code?: number;
|
|
1710
|
+
/**
|
|
1711
|
+
*
|
|
1712
|
+
* @type {string}
|
|
1713
|
+
* @memberof SearchSteps400ResponseErrorsInner
|
|
1714
|
+
*/
|
|
1715
|
+
message?: string;
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
*
|
|
1719
|
+
* @export
|
|
1720
|
+
* @interface StepKeyword
|
|
1721
|
+
*/
|
|
1722
|
+
export interface StepKeyword {
|
|
1723
|
+
/**
|
|
1724
|
+
* Canonical English name of the keyword, for example `Input Text`. This is the name the rest of the API expects, in every workspace language.
|
|
1725
|
+
* @type {string}
|
|
1726
|
+
* @memberof StepKeyword
|
|
1727
|
+
*/
|
|
1728
|
+
keyword?: string;
|
|
1729
|
+
/**
|
|
1730
|
+
* The same keyword in enum form, for example `INPUT_TEXT`.
|
|
1731
|
+
* @type {string}
|
|
1732
|
+
* @memberof StepKeyword
|
|
1733
|
+
*/
|
|
1734
|
+
action_type?: string;
|
|
1735
|
+
/**
|
|
1736
|
+
* Whether this workspace\'s plan includes the keyword. Writing a step whose keyword is not included is rejected with 402.
|
|
1737
|
+
* @type {boolean}
|
|
1738
|
+
* @memberof StepKeyword
|
|
1739
|
+
*/
|
|
1740
|
+
included_in_plan?: boolean;
|
|
1741
|
+
/**
|
|
1742
|
+
* The keyword\'s arguments, in the order they must be supplied. Empty for a keyword that takes none.
|
|
1743
|
+
* @type {Array<StepKeywordArgument>}
|
|
1744
|
+
* @memberof StepKeyword
|
|
1745
|
+
*/
|
|
1746
|
+
arguments?: Array<StepKeywordArgument>;
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
*
|
|
1750
|
+
* @export
|
|
1751
|
+
* @interface StepKeywordArgument
|
|
1752
|
+
*/
|
|
1753
|
+
export interface StepKeywordArgument {
|
|
1754
|
+
/**
|
|
1755
|
+
* Name of the argument as the scenario editor shows it.
|
|
1756
|
+
* @type {string}
|
|
1757
|
+
* @memberof StepKeywordArgument
|
|
1758
|
+
*/
|
|
1759
|
+
name?: string;
|
|
1760
|
+
/**
|
|
1761
|
+
* What the argument accepts. `text` is a plain string, `url` an address, `file` an uploaded file, and `element` an element on the page.
|
|
1762
|
+
* @type {string}
|
|
1763
|
+
* @memberof StepKeywordArgument
|
|
1764
|
+
*/
|
|
1765
|
+
type?: StepKeywordArgumentTypeEnum;
|
|
1766
|
+
/**
|
|
1767
|
+
* Present only when `type` is `element` and the keyword expects a particular kind of element, for example `element_textfield` for Input Text or `element_checkbox` for Checkbox Should Be Selected. An element is supplied as a locator string whose `css:` or `xpath:` prefix is mandatory: a `css:` selector descends into shadow DOM where `xpath:` does not, the first match wins if a selector is ambiguous, a selector resolving outside `<body>` raises, and the lookup is retried for 30 seconds before the step fails.
|
|
1768
|
+
* @type {string}
|
|
1769
|
+
* @memberof StepKeywordArgument
|
|
1770
|
+
*/
|
|
1771
|
+
element_type?: string;
|
|
1772
|
+
/**
|
|
1773
|
+
*
|
|
1774
|
+
* @type {boolean}
|
|
1775
|
+
* @memberof StepKeywordArgument
|
|
1776
|
+
*/
|
|
1777
|
+
required?: boolean;
|
|
1778
|
+
}
|
|
1779
|
+
export declare const StepKeywordArgumentTypeEnum: {
|
|
1780
|
+
readonly Text: "text";
|
|
1781
|
+
readonly Url: "url";
|
|
1782
|
+
readonly File: "file";
|
|
1783
|
+
readonly Element: "element";
|
|
1784
|
+
};
|
|
1785
|
+
export type StepKeywordArgumentTypeEnum = (typeof StepKeywordArgumentTypeEnum)[keyof typeof StepKeywordArgumentTypeEnum];
|
|
1786
|
+
/**
|
|
1787
|
+
* A step whose arguments contain the searched text. Exactly one of `scenario` and `step_group` is set, naming where the step is.
|
|
1788
|
+
* @export
|
|
1789
|
+
* @interface StepSearchHit
|
|
1790
|
+
*/
|
|
1791
|
+
export interface StepSearchHit {
|
|
1792
|
+
/**
|
|
1793
|
+
* The step\'s `id`, as `describeScenario` returns it.
|
|
1794
|
+
* @type {number}
|
|
1795
|
+
* @memberof StepSearchHit
|
|
1796
|
+
*/
|
|
1797
|
+
step_id?: number;
|
|
1798
|
+
/**
|
|
1799
|
+
* The step\'s position, counting from 0, in the `steps` that `describeScenario` returns for its scenario or step group.
|
|
1800
|
+
* @type {number}
|
|
1801
|
+
* @memberof StepSearchHit
|
|
1802
|
+
*/
|
|
1803
|
+
step_index?: number;
|
|
1804
|
+
/**
|
|
1805
|
+
*
|
|
1806
|
+
* @type {StepSearchHitScenario}
|
|
1807
|
+
* @memberof StepSearchHit
|
|
1808
|
+
*/
|
|
1809
|
+
scenario?: StepSearchHitScenario | null;
|
|
1810
|
+
/**
|
|
1811
|
+
*
|
|
1812
|
+
* @type {StepSearchHitStepGroup}
|
|
1813
|
+
* @memberof StepSearchHit
|
|
1814
|
+
*/
|
|
1815
|
+
step_group?: StepSearchHitStepGroup | null;
|
|
1816
|
+
/**
|
|
1817
|
+
* The step\'s keyword in enum form, as `describeScenario` reports it.
|
|
1818
|
+
* @type {string}
|
|
1819
|
+
* @memberof StepSearchHit
|
|
1820
|
+
*/
|
|
1821
|
+
action_type?: string | null;
|
|
1822
|
+
/**
|
|
1823
|
+
* The step\'s arguments that contain the text, as `describeScenario` returns them. An `Execute Step Group` step\'s `step_group` argument keeps only the `overrides` that contain it. This can be empty when the match is a stored override that `describeScenario` does not report, such as one against an element, or one that repeats the value the group already carries.
|
|
1824
|
+
* @type {Array<ScenarioStepArgument>}
|
|
1825
|
+
* @memberof StepSearchHit
|
|
1826
|
+
*/
|
|
1827
|
+
matched_arguments?: Array<ScenarioStepArgument>;
|
|
1828
|
+
/**
|
|
1829
|
+
* For a step group\'s step, every scenario in the project with a live `Execute Step Group` step that runs the group, which is everything a change to the step reaches. Null for a scenario\'s step.
|
|
1830
|
+
* @type {Array<StepSearchHitExecutedByInner>}
|
|
1831
|
+
* @memberof StepSearchHit
|
|
1832
|
+
*/
|
|
1833
|
+
executed_by?: Array<StepSearchHitExecutedByInner> | null;
|
|
1834
|
+
}
|
|
1835
|
+
/**
|
|
1836
|
+
*
|
|
1837
|
+
* @export
|
|
1838
|
+
* @interface StepSearchHitExecutedByInner
|
|
1839
|
+
*/
|
|
1840
|
+
export interface StepSearchHitExecutedByInner {
|
|
1841
|
+
/**
|
|
1842
|
+
*
|
|
1843
|
+
* @type {number}
|
|
1844
|
+
* @memberof StepSearchHitExecutedByInner
|
|
1845
|
+
*/
|
|
1846
|
+
id?: number;
|
|
1847
|
+
/**
|
|
1848
|
+
*
|
|
1849
|
+
* @type {string}
|
|
1850
|
+
* @memberof StepSearchHitExecutedByInner
|
|
1851
|
+
*/
|
|
1852
|
+
name?: string;
|
|
1853
|
+
}
|
|
1854
|
+
/**
|
|
1855
|
+
* The scenario the step is in, or null for a step group\'s step.
|
|
1856
|
+
* @export
|
|
1857
|
+
* @interface StepSearchHitScenario
|
|
1858
|
+
*/
|
|
1859
|
+
export interface StepSearchHitScenario {
|
|
1860
|
+
/**
|
|
1861
|
+
*
|
|
1862
|
+
* @type {number}
|
|
1863
|
+
* @memberof StepSearchHitScenario
|
|
1864
|
+
*/
|
|
1865
|
+
id?: number;
|
|
1866
|
+
/**
|
|
1867
|
+
*
|
|
1868
|
+
* @type {string}
|
|
1869
|
+
* @memberof StepSearchHitScenario
|
|
1870
|
+
*/
|
|
1871
|
+
name?: string;
|
|
1872
|
+
}
|
|
1873
|
+
/**
|
|
1874
|
+
* The step group the step is in, or null for a scenario\'s step. Read it with `describeScenario` using this id.
|
|
1875
|
+
* @export
|
|
1876
|
+
* @interface StepSearchHitStepGroup
|
|
1877
|
+
*/
|
|
1878
|
+
export interface StepSearchHitStepGroup {
|
|
1879
|
+
/**
|
|
1880
|
+
*
|
|
1881
|
+
* @type {number}
|
|
1882
|
+
* @memberof StepSearchHitStepGroup
|
|
1883
|
+
*/
|
|
1884
|
+
id?: number;
|
|
1885
|
+
/**
|
|
1886
|
+
*
|
|
1887
|
+
* @type {string}
|
|
1888
|
+
* @memberof StepSearchHitStepGroup
|
|
1889
|
+
*/
|
|
1890
|
+
name?: string;
|
|
1891
|
+
}
|
|
1892
|
+
/**
|
|
1893
|
+
*
|
|
1894
|
+
* @export
|
|
1895
|
+
* @interface TestCaseResult
|
|
1896
|
+
*/
|
|
1897
|
+
export interface TestCaseResult {
|
|
1898
|
+
/**
|
|
1899
|
+
*
|
|
1900
|
+
* @type {number}
|
|
1901
|
+
* @memberof TestCaseResult
|
|
1902
|
+
*/
|
|
1903
|
+
id?: number;
|
|
1904
|
+
/**
|
|
1905
|
+
*
|
|
1906
|
+
* @type {TestCaseResultStatus}
|
|
1907
|
+
* @memberof TestCaseResult
|
|
1908
|
+
*/
|
|
1909
|
+
status?: TestCaseResultStatus;
|
|
1910
|
+
/**
|
|
1911
|
+
*
|
|
1912
|
+
* @type {number}
|
|
1913
|
+
* @memberof TestCaseResult
|
|
1914
|
+
*/
|
|
1915
|
+
duration?: number;
|
|
1916
|
+
/**
|
|
1917
|
+
*
|
|
1918
|
+
* @type {string}
|
|
1919
|
+
* @memberof TestCaseResult
|
|
1920
|
+
*/
|
|
1921
|
+
started_at?: string;
|
|
1922
|
+
/**
|
|
1923
|
+
*
|
|
1924
|
+
* @type {string}
|
|
1925
|
+
* @memberof TestCaseResult
|
|
1926
|
+
*/
|
|
1927
|
+
finished_at?: string;
|
|
1928
|
+
/**
|
|
1929
|
+
*
|
|
1930
|
+
* @type {string}
|
|
1931
|
+
* @memberof TestCaseResult
|
|
1932
|
+
*/
|
|
1933
|
+
created_at?: string;
|
|
1934
|
+
/**
|
|
1935
|
+
*
|
|
1936
|
+
* @type {string}
|
|
1937
|
+
* @memberof TestCaseResult
|
|
1938
|
+
*/
|
|
1939
|
+
updated_at?: string;
|
|
1940
|
+
/**
|
|
1941
|
+
* ID of the scenario executed.
|
|
1942
|
+
* @type {number}
|
|
1943
|
+
* @memberof TestCaseResult
|
|
1944
|
+
*/
|
|
1945
|
+
test_case_id?: number;
|
|
1946
|
+
/**
|
|
1947
|
+
*
|
|
1948
|
+
* @type {string}
|
|
1949
|
+
* @memberof TestCaseResult
|
|
1950
|
+
*/
|
|
1951
|
+
project_url?: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* Number of "Review needed" flags present in the test results.
|
|
1954
|
+
* @type {number}
|
|
1955
|
+
* @memberof TestCaseResult
|
|
1956
|
+
*/
|
|
1957
|
+
review_needed?: number;
|
|
1958
|
+
/**
|
|
1959
|
+
* Number of credits consumed by this test result. (default 0 for test result created before credit based system)
|
|
1960
|
+
* @type {number}
|
|
1961
|
+
* @memberof TestCaseResult
|
|
1962
|
+
*/
|
|
1963
|
+
number_of_credits_consumed?: number;
|
|
1964
|
+
/**
|
|
1965
|
+
* THIS FEATURE IS FOR LIMITED NUMBER OF CUSTOMERS. Variables imported from previously executed test results in a test plan.
|
|
1966
|
+
* @type {Array<TestCaseResultImportVariablesInner>}
|
|
1967
|
+
* @memberof TestCaseResult
|
|
1968
|
+
*/
|
|
1969
|
+
import_variables?: Array<TestCaseResultImportVariablesInner>;
|
|
1970
|
+
/**
|
|
1971
|
+
* THIS FEATURE IS FOR LIMITED NUMBER OF CUSTOMERS. Variables exported from this test result.
|
|
1972
|
+
* @type {Array<TestCaseResultExportVariablesInner>}
|
|
1973
|
+
* @memberof TestCaseResult
|
|
1974
|
+
*/
|
|
1975
|
+
export_variables?: Array<TestCaseResultExportVariablesInner>;
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
*
|
|
1979
|
+
* @export
|
|
1980
|
+
* @interface TestCaseResultDetail
|
|
1981
|
+
*/
|
|
1982
|
+
export interface TestCaseResultDetail {
|
|
1983
|
+
/**
|
|
1984
|
+
*
|
|
1985
|
+
* @type {number}
|
|
1986
|
+
* @memberof TestCaseResultDetail
|
|
1987
|
+
*/
|
|
1988
|
+
id?: number;
|
|
1989
|
+
/**
|
|
1990
|
+
* ID of the scenario (test case) that was executed.
|
|
1991
|
+
* @type {number}
|
|
1992
|
+
* @memberof TestCaseResultDetail
|
|
1993
|
+
*/
|
|
1994
|
+
scenario_id?: number;
|
|
1995
|
+
/**
|
|
1996
|
+
*
|
|
1997
|
+
* @type {TestCaseResultStatus}
|
|
1998
|
+
* @memberof TestCaseResultDetail
|
|
1999
|
+
*/
|
|
2000
|
+
status?: TestCaseResultStatus;
|
|
2001
|
+
/**
|
|
2002
|
+
*
|
|
2003
|
+
* @type {string}
|
|
2004
|
+
* @memberof TestCaseResultDetail
|
|
2005
|
+
*/
|
|
2006
|
+
started_at?: string;
|
|
2007
|
+
/**
|
|
2008
|
+
*
|
|
2009
|
+
* @type {string}
|
|
2010
|
+
* @memberof TestCaseResultDetail
|
|
2011
|
+
*/
|
|
2012
|
+
finished_at?: string;
|
|
2013
|
+
/**
|
|
2014
|
+
*
|
|
2015
|
+
* @type {number}
|
|
2016
|
+
* @memberof TestCaseResultDetail
|
|
2017
|
+
*/
|
|
2018
|
+
duration?: number;
|
|
2019
|
+
/**
|
|
2020
|
+
*
|
|
2021
|
+
* @type {string}
|
|
2022
|
+
* @memberof TestCaseResultDetail
|
|
2023
|
+
*/
|
|
2024
|
+
project_url?: string;
|
|
2025
|
+
/**
|
|
2026
|
+
*
|
|
2027
|
+
* @type {Capability}
|
|
2028
|
+
* @memberof TestCaseResultDetail
|
|
2029
|
+
*/
|
|
2030
|
+
capability?: Capability;
|
|
2031
|
+
/**
|
|
2032
|
+
*
|
|
2033
|
+
* @type {Array<TestCaseResultStep>}
|
|
2034
|
+
* @memberof TestCaseResultDetail
|
|
2035
|
+
*/
|
|
2036
|
+
steps?: Array<TestCaseResultStep>;
|
|
2037
|
+
}
|
|
2038
|
+
/**
|
|
2039
|
+
*
|
|
2040
|
+
* @export
|
|
2041
|
+
* @interface TestCaseResultExportVariablesInner
|
|
2042
|
+
*/
|
|
2043
|
+
export interface TestCaseResultExportVariablesInner {
|
|
2044
|
+
/**
|
|
2045
|
+
*
|
|
2046
|
+
* @type {string}
|
|
2047
|
+
* @memberof TestCaseResultExportVariablesInner
|
|
2048
|
+
*/
|
|
2049
|
+
key?: string;
|
|
2050
|
+
/**
|
|
2051
|
+
*
|
|
2052
|
+
* @type {string}
|
|
2053
|
+
* @memberof TestCaseResultExportVariablesInner
|
|
2054
|
+
*/
|
|
2055
|
+
value?: string;
|
|
2056
|
+
}
|
|
2057
|
+
/**
|
|
1205
2058
|
*
|
|
1206
2059
|
* @export
|
|
1207
2060
|
* @interface TestCaseResultImportVariablesInner
|
|
@@ -1260,6 +2113,168 @@ export declare const TestCaseResultStatus: {
|
|
|
1260
2113
|
readonly Canceled: "canceled";
|
|
1261
2114
|
};
|
|
1262
2115
|
export type TestCaseResultStatus = (typeof TestCaseResultStatus)[keyof typeof TestCaseResultStatus];
|
|
2116
|
+
/**
|
|
2117
|
+
*
|
|
2118
|
+
* @export
|
|
2119
|
+
* @interface TestCaseResultStep
|
|
2120
|
+
*/
|
|
2121
|
+
export interface TestCaseResultStep {
|
|
2122
|
+
/**
|
|
2123
|
+
* Step number within the executed test case, matching the numbering shown in the result UI. Steps inside a step group collapse onto one first-level number and get a sub-number, e.g. "1", "2", "3-1", "3-2".
|
|
2124
|
+
* @type {string}
|
|
2125
|
+
* @memberof TestCaseResultStep
|
|
2126
|
+
*/
|
|
2127
|
+
index?: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* ID of the scenario step this ran, the same identifier `describeScenario` returns as a step\'s `id`.
|
|
2130
|
+
* @type {number}
|
|
2131
|
+
* @memberof TestCaseResultStep
|
|
2132
|
+
*/
|
|
2133
|
+
id?: number;
|
|
2134
|
+
/**
|
|
2135
|
+
* Identifier that is unique even when the step runs inside a step group.
|
|
2136
|
+
* @type {string}
|
|
2137
|
+
* @memberof TestCaseResultStep
|
|
2138
|
+
*/
|
|
2139
|
+
composite_id?: string;
|
|
2140
|
+
/**
|
|
2141
|
+
* Human-readable name of the step.
|
|
2142
|
+
* @type {string}
|
|
2143
|
+
* @memberof TestCaseResultStep
|
|
2144
|
+
*/
|
|
2145
|
+
name?: string;
|
|
2146
|
+
/**
|
|
2147
|
+
* What the run does when this step fails.
|
|
2148
|
+
* @type {string}
|
|
2149
|
+
* @memberof TestCaseResultStep
|
|
2150
|
+
*/
|
|
2151
|
+
on_failure?: TestCaseResultStepOnFailureEnum;
|
|
2152
|
+
/**
|
|
2153
|
+
* Whether the step runs as part of the scenario or as a cleanup step afterwards.
|
|
2154
|
+
* @type {string}
|
|
2155
|
+
* @memberof TestCaseResultStep
|
|
2156
|
+
*/
|
|
2157
|
+
step_execution_type?: TestCaseResultStepStepExecutionTypeEnum;
|
|
2158
|
+
/**
|
|
2159
|
+
* The action identifier `listStepKeywords` and `describeScenario` also use, so a run\'s step and the scenario step it came from read the same way. A step whose keyword the catalog does not have is not returned at all, where `describeScenario` keeps it with a null `action_type`; the gap it leaves in `index` is the only trace of it here.
|
|
2160
|
+
* @type {string}
|
|
2161
|
+
* @memberof TestCaseResultStep
|
|
2162
|
+
*/
|
|
2163
|
+
action_type?: string;
|
|
2164
|
+
/**
|
|
2165
|
+
* The step\'s arguments, in the order `listStepKeywords` gives them for this keyword, each carrying the `name` that catalog publishes. A value typed into a password field is returned as `******`.
|
|
2166
|
+
* @type {Array<ResultStepArgument>}
|
|
2167
|
+
* @memberof TestCaseResultStep
|
|
2168
|
+
*/
|
|
2169
|
+
arguments?: Array<ResultStepArgument>;
|
|
2170
|
+
/**
|
|
2171
|
+
* Result of the step.
|
|
2172
|
+
* @type {string}
|
|
2173
|
+
* @memberof TestCaseResultStep
|
|
2174
|
+
*/
|
|
2175
|
+
status?: TestCaseResultStepStatusEnum;
|
|
2176
|
+
/**
|
|
2177
|
+
* Error message when the step failed.
|
|
2178
|
+
* @type {string}
|
|
2179
|
+
* @memberof TestCaseResultStep
|
|
2180
|
+
*/
|
|
2181
|
+
error_message?: string | null;
|
|
2182
|
+
/**
|
|
2183
|
+
*
|
|
2184
|
+
* @type {TestCaseResultStepMatch}
|
|
2185
|
+
* @memberof TestCaseResultStep
|
|
2186
|
+
*/
|
|
2187
|
+
match?: TestCaseResultStepMatch | null;
|
|
2188
|
+
/**
|
|
2189
|
+
* The URL the browser was on when the step started and when it finished, so a step that navigated can be told from one that did not. Only URLs of the application under test appear: not the browser\'s own start page, so the first step usually reports just its end, and not Autify\'s email inbox, which a step that opens an email navigates to.
|
|
2190
|
+
* @type {Array<TestCaseResultStepUrlEventsInner>}
|
|
2191
|
+
* @memberof TestCaseResultStep
|
|
2192
|
+
*/
|
|
2193
|
+
url_events?: Array<TestCaseResultStepUrlEventsInner>;
|
|
2194
|
+
/**
|
|
2195
|
+
* A link to the screenshot the worker took of the page during the step. Depending on the keyword, it shows the page before the step acted, when the step found its element, or after the step finished. Absent when the step took none. The link needs no `Authorization` header and stops working within an hour, possibly after only a few minutes. Fetch it right away, or call this endpoint again for a fresh one.
|
|
2196
|
+
* @type {string}
|
|
2197
|
+
* @memberof TestCaseResultStep
|
|
2198
|
+
*/
|
|
2199
|
+
screenshot_url?: string | null;
|
|
2200
|
+
}
|
|
2201
|
+
export declare const TestCaseResultStepOnFailureEnum: {
|
|
2202
|
+
readonly Abort: "abort";
|
|
2203
|
+
readonly Continue: "continue";
|
|
2204
|
+
readonly Ignore: "ignore";
|
|
2205
|
+
};
|
|
2206
|
+
export type TestCaseResultStepOnFailureEnum = (typeof TestCaseResultStepOnFailureEnum)[keyof typeof TestCaseResultStepOnFailureEnum];
|
|
2207
|
+
export declare const TestCaseResultStepStepExecutionTypeEnum: {
|
|
2208
|
+
readonly ScenarioStep: "scenario_step";
|
|
2209
|
+
readonly CleanupStep: "cleanup_step";
|
|
2210
|
+
};
|
|
2211
|
+
export type TestCaseResultStepStepExecutionTypeEnum = (typeof TestCaseResultStepStepExecutionTypeEnum)[keyof typeof TestCaseResultStepStepExecutionTypeEnum];
|
|
2212
|
+
export declare const TestCaseResultStepStatusEnum: {
|
|
2213
|
+
readonly Passed: "passed";
|
|
2214
|
+
readonly Failed: "failed";
|
|
2215
|
+
readonly Skipped: "skipped";
|
|
2216
|
+
};
|
|
2217
|
+
export type TestCaseResultStepStatusEnum = (typeof TestCaseResultStepStatusEnum)[keyof typeof TestCaseResultStepStatusEnum];
|
|
2218
|
+
/**
|
|
2219
|
+
* How this run found the element. Absent when the step targets no element, when the step failed before finding one, and for results captured before Autify recorded how it matched.
|
|
2220
|
+
* @export
|
|
2221
|
+
* @interface TestCaseResultStepMatch
|
|
2222
|
+
*/
|
|
2223
|
+
export interface TestCaseResultStepMatch {
|
|
2224
|
+
/**
|
|
2225
|
+
* How Autify found the element: `user_locator` when it matched the locator you specified on the step, `automatic` when Autify matched it for you.
|
|
2226
|
+
* @type {string}
|
|
2227
|
+
* @memberof TestCaseResultStepMatch
|
|
2228
|
+
*/
|
|
2229
|
+
located_by?: TestCaseResultStepMatchLocatedByEnum;
|
|
2230
|
+
/**
|
|
2231
|
+
* How confident Autify was in the element it matched. Around 1 is an exact match; lower means a looser one.
|
|
2232
|
+
* @type {number}
|
|
2233
|
+
* @memberof TestCaseResultStepMatch
|
|
2234
|
+
*/
|
|
2235
|
+
confidence?: number | null;
|
|
2236
|
+
/**
|
|
2237
|
+
* Selectors Autify generated from the element it actually found. These are what later runs will match on. They work as a set, not as alternatives. When Autify matches on them it requires every one to resolve to the same element, so a single one may be ambiguous alone and is not safe to pin on its own. Order is the order Autify generated them in, and carries no ranking.
|
|
2238
|
+
* @type {Array<string>}
|
|
2239
|
+
* @memberof TestCaseResultStepMatch
|
|
2240
|
+
*/
|
|
2241
|
+
candidate_locators?: Array<string> | null;
|
|
2242
|
+
}
|
|
2243
|
+
export declare const TestCaseResultStepMatchLocatedByEnum: {
|
|
2244
|
+
readonly UserLocator: "user_locator";
|
|
2245
|
+
readonly Automatic: "automatic";
|
|
2246
|
+
};
|
|
2247
|
+
export type TestCaseResultStepMatchLocatedByEnum = (typeof TestCaseResultStepMatchLocatedByEnum)[keyof typeof TestCaseResultStepMatchLocatedByEnum];
|
|
2248
|
+
/**
|
|
2249
|
+
*
|
|
2250
|
+
* @export
|
|
2251
|
+
* @interface TestCaseResultStepUrlEventsInner
|
|
2252
|
+
*/
|
|
2253
|
+
export interface TestCaseResultStepUrlEventsInner {
|
|
2254
|
+
/**
|
|
2255
|
+
*
|
|
2256
|
+
* @type {string}
|
|
2257
|
+
* @memberof TestCaseResultStepUrlEventsInner
|
|
2258
|
+
*/
|
|
2259
|
+
timing?: TestCaseResultStepUrlEventsInnerTimingEnum;
|
|
2260
|
+
/**
|
|
2261
|
+
*
|
|
2262
|
+
* @type {string}
|
|
2263
|
+
* @memberof TestCaseResultStepUrlEventsInner
|
|
2264
|
+
*/
|
|
2265
|
+
url?: string;
|
|
2266
|
+
/**
|
|
2267
|
+
* Unix timestamp in milliseconds.
|
|
2268
|
+
* @type {number}
|
|
2269
|
+
* @memberof TestCaseResultStepUrlEventsInner
|
|
2270
|
+
*/
|
|
2271
|
+
at?: number;
|
|
2272
|
+
}
|
|
2273
|
+
export declare const TestCaseResultStepUrlEventsInnerTimingEnum: {
|
|
2274
|
+
readonly StepStart: "stepStart";
|
|
2275
|
+
readonly StepEnd: "stepEnd";
|
|
2276
|
+
};
|
|
2277
|
+
export type TestCaseResultStepUrlEventsInnerTimingEnum = (typeof TestCaseResultStepUrlEventsInnerTimingEnum)[keyof typeof TestCaseResultStepUrlEventsInnerTimingEnum];
|
|
1263
2278
|
/**
|
|
1264
2279
|
*
|
|
1265
2280
|
* @export
|
|
@@ -1448,12 +2463,50 @@ export declare const TimezoneEnum: {
|
|
|
1448
2463
|
readonly EtcUtc: "Etc/UTC";
|
|
1449
2464
|
};
|
|
1450
2465
|
export type TimezoneEnum = (typeof TimezoneEnum)[keyof typeof TimezoneEnum];
|
|
2466
|
+
/**
|
|
2467
|
+
*
|
|
2468
|
+
* @export
|
|
2469
|
+
* @interface UpdateScenario412Response
|
|
2470
|
+
*/
|
|
2471
|
+
export interface UpdateScenario412Response {
|
|
2472
|
+
/**
|
|
2473
|
+
*
|
|
2474
|
+
* @type {Array<UpdateScenario412ResponseErrorsInner>}
|
|
2475
|
+
* @memberof UpdateScenario412Response
|
|
2476
|
+
*/
|
|
2477
|
+
errors?: Array<UpdateScenario412ResponseErrorsInner>;
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2480
|
+
*
|
|
2481
|
+
* @export
|
|
2482
|
+
* @interface UpdateScenario412ResponseErrorsInner
|
|
2483
|
+
*/
|
|
2484
|
+
export interface UpdateScenario412ResponseErrorsInner {
|
|
2485
|
+
/**
|
|
2486
|
+
*
|
|
2487
|
+
* @type {number}
|
|
2488
|
+
* @memberof UpdateScenario412ResponseErrorsInner
|
|
2489
|
+
*/
|
|
2490
|
+
code?: number;
|
|
2491
|
+
/**
|
|
2492
|
+
*
|
|
2493
|
+
* @type {string}
|
|
2494
|
+
* @memberof UpdateScenario412ResponseErrorsInner
|
|
2495
|
+
*/
|
|
2496
|
+
message?: string;
|
|
2497
|
+
}
|
|
1451
2498
|
/**
|
|
1452
2499
|
*
|
|
1453
2500
|
* @export
|
|
1454
2501
|
* @interface UpdateScenarioRequest
|
|
1455
2502
|
*/
|
|
1456
2503
|
export interface UpdateScenarioRequest {
|
|
2504
|
+
/**
|
|
2505
|
+
* The version of the scenario you are updating, as returned by `version_token` when you read it. The update is rejected with 412 if anyone changed the scenario\'s name, description, labels or steps in between, so read it again and retry against the version you get back. Running the scenario or reviewing its results does not change it. Sending an empty value is an error; omit the field entirely to update whatever is there without checking.
|
|
2506
|
+
* @type {string}
|
|
2507
|
+
* @memberof UpdateScenarioRequest
|
|
2508
|
+
*/
|
|
2509
|
+
version_token?: string;
|
|
1457
2510
|
/**
|
|
1458
2511
|
*
|
|
1459
2512
|
* @type {string}
|
|
@@ -1467,11 +2520,17 @@ export interface UpdateScenarioRequest {
|
|
|
1467
2520
|
*/
|
|
1468
2521
|
description?: string;
|
|
1469
2522
|
/**
|
|
1470
|
-
*
|
|
2523
|
+
* Label names, replacing the scenario\'s current labels. A name this project does not already have is created in it, unless `on_create` is false. Only this project\'s labels are matched, so a label of the same name in another project is never attached.
|
|
1471
2524
|
* @type {Array<string>}
|
|
1472
2525
|
* @memberof UpdateScenarioRequest
|
|
1473
2526
|
*/
|
|
1474
2527
|
labels?: Array<string>;
|
|
2528
|
+
/**
|
|
2529
|
+
* Whether to create a label named in `labels` that this project does not have. Set it to false to have an unrecognised name rejected instead, which is the safer setting when a name may be a typo. Only `true` and `false` are accepted, as booleans or as the strings `"true"` and `"false"`. Any other value is rejected with 400 rather than being read as `true`, so a typo in this flag cannot silently turn label creation back on. A repeated name in `labels` is attached once. A name the project would have to create but that the label validations reject, such as one over 50 characters, is a 400 carrying the validation message.
|
|
2530
|
+
* @type {boolean}
|
|
2531
|
+
* @memberof UpdateScenarioRequest
|
|
2532
|
+
*/
|
|
2533
|
+
on_create?: boolean;
|
|
1475
2534
|
}
|
|
1476
2535
|
/**
|
|
1477
2536
|
*
|
|
@@ -1709,7 +2768,7 @@ export declare class AutifyConnectApi extends BaseAPI {
|
|
|
1709
2768
|
* @throws {RequiredError}
|
|
1710
2769
|
* @memberof AutifyConnectApi
|
|
1711
2770
|
*/
|
|
1712
|
-
createAccessPoint(projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccessPointResult, any, {}>>;
|
|
2771
|
+
createAccessPoint(projectId: number, createAccessPointRequest: CreateAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAccessPointResult, any, {}, any>>;
|
|
1713
2772
|
/**
|
|
1714
2773
|
* You can delete an access point by passing in its name.
|
|
1715
2774
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -1718,7 +2777,7 @@ export declare class AutifyConnectApi extends BaseAPI {
|
|
|
1718
2777
|
* @throws {RequiredError}
|
|
1719
2778
|
* @memberof AutifyConnectApi
|
|
1720
2779
|
*/
|
|
1721
|
-
deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
2780
|
+
deleteAccessPoint(projectId: number, deleteAccessPointRequest: DeleteAccessPointRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
|
|
1722
2781
|
/**
|
|
1723
2782
|
* List access points for the project.
|
|
1724
2783
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -1727,7 +2786,7 @@ export declare class AutifyConnectApi extends BaseAPI {
|
|
|
1727
2786
|
* @throws {RequiredError}
|
|
1728
2787
|
* @memberof AutifyConnectApi
|
|
1729
2788
|
*/
|
|
1730
|
-
listAccessPoints(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccessPoint[], any, {}>>;
|
|
2789
|
+
listAccessPoints(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<AccessPoint[], any, {}, any>>;
|
|
1731
2790
|
}
|
|
1732
2791
|
/**
|
|
1733
2792
|
* CapabilityApi - axios parameter creator
|
|
@@ -1802,7 +2861,7 @@ export declare class CapabilityApi extends BaseAPI {
|
|
|
1802
2861
|
* @throws {RequiredError}
|
|
1803
2862
|
* @memberof CapabilityApi
|
|
1804
2863
|
*/
|
|
1805
|
-
listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any, {}>>;
|
|
2864
|
+
listCapabilities(projectId: number, os?: string, osType?: OsTypeEnum, browser?: string, browserType?: BrowserTypeEnum, deviceType?: DeviceTypeEnum, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CapabilityOption[], any, {}, any>>;
|
|
1806
2865
|
}
|
|
1807
2866
|
/**
|
|
1808
2867
|
* CreditApi - axios parameter creator
|
|
@@ -1877,7 +2936,7 @@ export declare class CreditApi extends BaseAPI {
|
|
|
1877
2936
|
* @throws {RequiredError}
|
|
1878
2937
|
* @memberof CreditApi
|
|
1879
2938
|
*/
|
|
1880
|
-
getCreditUsage(projectId: number, dateFrom?: string, dateTo?: string, scenarioId?: number, testPlanId?: number, userId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UsedCredits, any, {}>>;
|
|
2939
|
+
getCreditUsage(projectId: number, dateFrom?: string, dateTo?: string, scenarioId?: number, testPlanId?: number, userId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UsedCredits, any, {}, any>>;
|
|
1881
2940
|
}
|
|
1882
2941
|
/**
|
|
1883
2942
|
* ProjectApi - axios parameter creator
|
|
@@ -1891,6 +2950,12 @@ export declare const ProjectApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1891
2950
|
* @throws {RequiredError}
|
|
1892
2951
|
*/
|
|
1893
2952
|
getProjectInfo: (projectId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2953
|
+
/**
|
|
2954
|
+
* 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.
|
|
2955
|
+
* @param {*} [options] Override http request option.
|
|
2956
|
+
* @throws {RequiredError}
|
|
2957
|
+
*/
|
|
2958
|
+
listProjects: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1894
2959
|
};
|
|
1895
2960
|
/**
|
|
1896
2961
|
* ProjectApi - functional programming interface
|
|
@@ -1904,6 +2969,12 @@ export declare const ProjectApiFp: (configuration?: Configuration) => {
|
|
|
1904
2969
|
* @throws {RequiredError}
|
|
1905
2970
|
*/
|
|
1906
2971
|
getProjectInfo(projectId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectInfo>>;
|
|
2972
|
+
/**
|
|
2973
|
+
* 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.
|
|
2974
|
+
* @param {*} [options] Override http request option.
|
|
2975
|
+
* @throws {RequiredError}
|
|
2976
|
+
*/
|
|
2977
|
+
listProjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Project>>>;
|
|
1907
2978
|
};
|
|
1908
2979
|
/**
|
|
1909
2980
|
* ProjectApi - factory interface
|
|
@@ -1917,6 +2988,12 @@ export declare const ProjectApiFactory: (configuration?: Configuration, basePath
|
|
|
1917
2988
|
* @throws {RequiredError}
|
|
1918
2989
|
*/
|
|
1919
2990
|
getProjectInfo(projectId: number, options?: any): AxiosPromise<ProjectInfo>;
|
|
2991
|
+
/**
|
|
2992
|
+
* 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.
|
|
2993
|
+
* @param {*} [options] Override http request option.
|
|
2994
|
+
* @throws {RequiredError}
|
|
2995
|
+
*/
|
|
2996
|
+
listProjects(options?: any): AxiosPromise<Array<Project>>;
|
|
1920
2997
|
};
|
|
1921
2998
|
/**
|
|
1922
2999
|
* ProjectApi - object-oriented interface
|
|
@@ -1932,7 +3009,14 @@ export declare class ProjectApi extends BaseAPI {
|
|
|
1932
3009
|
* @throws {RequiredError}
|
|
1933
3010
|
* @memberof ProjectApi
|
|
1934
3011
|
*/
|
|
1935
|
-
getProjectInfo(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectInfo, any, {}>>;
|
|
3012
|
+
getProjectInfo(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectInfo, any, {}, any>>;
|
|
3013
|
+
/**
|
|
3014
|
+
* 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.
|
|
3015
|
+
* @param {*} [options] Override http request option.
|
|
3016
|
+
* @throws {RequiredError}
|
|
3017
|
+
* @memberof ProjectApi
|
|
3018
|
+
*/
|
|
3019
|
+
listProjects(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Project[], any, {}, any>>;
|
|
1936
3020
|
}
|
|
1937
3021
|
/**
|
|
1938
3022
|
* ResultApi - axios parameter creator
|
|
@@ -1940,15 +3024,25 @@ export declare class ProjectApi extends BaseAPI {
|
|
|
1940
3024
|
*/
|
|
1941
3025
|
export declare const ResultApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
1942
3026
|
/**
|
|
1943
|
-
*
|
|
3027
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
1944
3028
|
* @summary Get a test result.
|
|
1945
3029
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1946
3030
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1947
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
3031
|
+
* @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.
|
|
3032
|
+
* @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.
|
|
3033
|
+
* @param {*} [options] Override http request option.
|
|
3034
|
+
* @throws {RequiredError}
|
|
3035
|
+
*/
|
|
3036
|
+
describeResult: (projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3037
|
+
/**
|
|
3038
|
+
* 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 `******`.
|
|
3039
|
+
* @summary Get the steps and element locators of a test case result.
|
|
3040
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3041
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
1948
3042
|
* @param {*} [options] Override http request option.
|
|
1949
3043
|
* @throws {RequiredError}
|
|
1950
3044
|
*/
|
|
1951
|
-
|
|
3045
|
+
describeTestCaseResult: (projectId: number, testCaseResultId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1952
3046
|
/**
|
|
1953
3047
|
* List test results.
|
|
1954
3048
|
* @summary List test results.
|
|
@@ -1960,6 +3054,26 @@ export declare const ResultApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1960
3054
|
* @throws {RequiredError}
|
|
1961
3055
|
*/
|
|
1962
3056
|
listResults: (projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3057
|
+
/**
|
|
3058
|
+
* 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`.
|
|
3059
|
+
* @summary List the test results of one scenario.
|
|
3060
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3061
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3062
|
+
* @param {number} [page] The number of page returns.
|
|
3063
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3064
|
+
* @param {*} [options] Override http request option.
|
|
3065
|
+
* @throws {RequiredError}
|
|
3066
|
+
*/
|
|
3067
|
+
listScenarioResults: (projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3068
|
+
/**
|
|
3069
|
+
* 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.
|
|
3070
|
+
* @summary Rerun the failed test cases of a test result.
|
|
3071
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3072
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3073
|
+
* @param {*} [options] Override http request option.
|
|
3074
|
+
* @throws {RequiredError}
|
|
3075
|
+
*/
|
|
3076
|
+
rerunFailedTestCases: (projectId: number, resultId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1963
3077
|
};
|
|
1964
3078
|
/**
|
|
1965
3079
|
* ResultApi - functional programming interface
|
|
@@ -1967,26 +3081,56 @@ export declare const ResultApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1967
3081
|
*/
|
|
1968
3082
|
export declare const ResultApiFp: (configuration?: Configuration) => {
|
|
1969
3083
|
/**
|
|
1970
|
-
*
|
|
3084
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
1971
3085
|
* @summary Get a test result.
|
|
1972
3086
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1973
3087
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1974
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
3088
|
+
* @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.
|
|
3089
|
+
* @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.
|
|
3090
|
+
* @param {*} [options] Override http request option.
|
|
3091
|
+
* @throws {RequiredError}
|
|
3092
|
+
*/
|
|
3093
|
+
describeResult(projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DescribeResult200Response>>;
|
|
3094
|
+
/**
|
|
3095
|
+
* 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 `******`.
|
|
3096
|
+
* @summary Get the steps and element locators of a test case result.
|
|
3097
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3098
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
3099
|
+
* @param {*} [options] Override http request option.
|
|
3100
|
+
* @throws {RequiredError}
|
|
3101
|
+
*/
|
|
3102
|
+
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TestCaseResultDetail>>;
|
|
3103
|
+
/**
|
|
3104
|
+
* List test results.
|
|
3105
|
+
* @summary List test results.
|
|
3106
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results
|
|
3107
|
+
* @param {number} [page] The number of page returns.
|
|
3108
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3109
|
+
* @param {number} [testPlanId] Test plan ID used to filter results.
|
|
3110
|
+
* @param {*} [options] Override http request option.
|
|
3111
|
+
* @throws {RequiredError}
|
|
3112
|
+
*/
|
|
3113
|
+
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TestPlanResult>>>;
|
|
3114
|
+
/**
|
|
3115
|
+
* 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`.
|
|
3116
|
+
* @summary List the test results of one scenario.
|
|
3117
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3118
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3119
|
+
* @param {number} [page] The number of page returns.
|
|
3120
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1975
3121
|
* @param {*} [options] Override http request option.
|
|
1976
3122
|
* @throws {RequiredError}
|
|
1977
3123
|
*/
|
|
1978
|
-
|
|
3124
|
+
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioTestCaseResult>>>;
|
|
1979
3125
|
/**
|
|
1980
|
-
*
|
|
1981
|
-
* @summary
|
|
1982
|
-
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results
|
|
1983
|
-
* @param {number}
|
|
1984
|
-
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1985
|
-
* @param {number} [testPlanId] Test plan ID used to filter results.
|
|
3126
|
+
* 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.
|
|
3127
|
+
* @summary Rerun the failed test cases of a test result.
|
|
3128
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3129
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1986
3130
|
* @param {*} [options] Override http request option.
|
|
1987
3131
|
* @throws {RequiredError}
|
|
1988
3132
|
*/
|
|
1989
|
-
|
|
3133
|
+
rerunFailedTestCases(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteScenariosResult>>;
|
|
1990
3134
|
};
|
|
1991
3135
|
/**
|
|
1992
3136
|
* ResultApi - factory interface
|
|
@@ -1994,15 +3138,25 @@ export declare const ResultApiFp: (configuration?: Configuration) => {
|
|
|
1994
3138
|
*/
|
|
1995
3139
|
export declare const ResultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
1996
3140
|
/**
|
|
1997
|
-
*
|
|
3141
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
1998
3142
|
* @summary Get a test result.
|
|
1999
3143
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
2000
3144
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
2001
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
3145
|
+
* @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.
|
|
3146
|
+
* @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.
|
|
3147
|
+
* @param {*} [options] Override http request option.
|
|
3148
|
+
* @throws {RequiredError}
|
|
3149
|
+
*/
|
|
3150
|
+
describeResult(projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: any): AxiosPromise<DescribeResult200Response>;
|
|
3151
|
+
/**
|
|
3152
|
+
* 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 `******`.
|
|
3153
|
+
* @summary Get the steps and element locators of a test case result.
|
|
3154
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3155
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
2002
3156
|
* @param {*} [options] Override http request option.
|
|
2003
3157
|
* @throws {RequiredError}
|
|
2004
3158
|
*/
|
|
2005
|
-
|
|
3159
|
+
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: any): AxiosPromise<TestCaseResultDetail>;
|
|
2006
3160
|
/**
|
|
2007
3161
|
* List test results.
|
|
2008
3162
|
* @summary List test results.
|
|
@@ -2014,6 +3168,26 @@ export declare const ResultApiFactory: (configuration?: Configuration, basePath?
|
|
|
2014
3168
|
* @throws {RequiredError}
|
|
2015
3169
|
*/
|
|
2016
3170
|
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: any): AxiosPromise<Array<TestPlanResult>>;
|
|
3171
|
+
/**
|
|
3172
|
+
* 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`.
|
|
3173
|
+
* @summary List the test results of one scenario.
|
|
3174
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3175
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3176
|
+
* @param {number} [page] The number of page returns.
|
|
3177
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3178
|
+
* @param {*} [options] Override http request option.
|
|
3179
|
+
* @throws {RequiredError}
|
|
3180
|
+
*/
|
|
3181
|
+
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: any): AxiosPromise<Array<ScenarioTestCaseResult>>;
|
|
3182
|
+
/**
|
|
3183
|
+
* 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.
|
|
3184
|
+
* @summary Rerun the failed test cases of a test result.
|
|
3185
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3186
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3187
|
+
* @param {*} [options] Override http request option.
|
|
3188
|
+
* @throws {RequiredError}
|
|
3189
|
+
*/
|
|
3190
|
+
rerunFailedTestCases(projectId: number, resultId: number, options?: any): AxiosPromise<ExecuteScenariosResult>;
|
|
2017
3191
|
};
|
|
2018
3192
|
/**
|
|
2019
3193
|
* ResultApi - object-oriented interface
|
|
@@ -2023,16 +3197,27 @@ export declare const ResultApiFactory: (configuration?: Configuration, basePath?
|
|
|
2023
3197
|
*/
|
|
2024
3198
|
export declare class ResultApi extends BaseAPI {
|
|
2025
3199
|
/**
|
|
2026
|
-
*
|
|
3200
|
+
* To see a test case\'s steps, call `describeTestCaseResult` with its `test_plan_capability_results[].test_case_results[].id`.
|
|
2027
3201
|
* @summary Get a test result.
|
|
2028
3202
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
2029
3203
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
2030
|
-
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
3204
|
+
* @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.
|
|
3205
|
+
* @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.
|
|
3206
|
+
* @param {*} [options] Override http request option.
|
|
3207
|
+
* @throws {RequiredError}
|
|
3208
|
+
* @memberof ResultApi
|
|
3209
|
+
*/
|
|
3210
|
+
describeResult(projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeResult200Response, any, {}, any>>;
|
|
3211
|
+
/**
|
|
3212
|
+
* 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 `******`.
|
|
3213
|
+
* @summary Get the steps and element locators of a test case result.
|
|
3214
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3215
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
2031
3216
|
* @param {*} [options] Override http request option.
|
|
2032
3217
|
* @throws {RequiredError}
|
|
2033
3218
|
* @memberof ResultApi
|
|
2034
3219
|
*/
|
|
2035
|
-
|
|
3220
|
+
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestCaseResultDetail, any, {}, any>>;
|
|
2036
3221
|
/**
|
|
2037
3222
|
* List test results.
|
|
2038
3223
|
* @summary List test results.
|
|
@@ -2044,7 +3229,29 @@ export declare class ResultApi extends BaseAPI {
|
|
|
2044
3229
|
* @throws {RequiredError}
|
|
2045
3230
|
* @memberof ResultApi
|
|
2046
3231
|
*/
|
|
2047
|
-
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanResult[], any, {}>>;
|
|
3232
|
+
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanResult[], any, {}, any>>;
|
|
3233
|
+
/**
|
|
3234
|
+
* 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`.
|
|
3235
|
+
* @summary List the test results of one scenario.
|
|
3236
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3237
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3238
|
+
* @param {number} [page] The number of page returns.
|
|
3239
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3240
|
+
* @param {*} [options] Override http request option.
|
|
3241
|
+
* @throws {RequiredError}
|
|
3242
|
+
* @memberof ResultApi
|
|
3243
|
+
*/
|
|
3244
|
+
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioTestCaseResult[], any, {}, any>>;
|
|
3245
|
+
/**
|
|
3246
|
+
* 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.
|
|
3247
|
+
* @summary Rerun the failed test cases of a test result.
|
|
3248
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3249
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3250
|
+
* @param {*} [options] Override http request option.
|
|
3251
|
+
* @throws {RequiredError}
|
|
3252
|
+
* @memberof ResultApi
|
|
3253
|
+
*/
|
|
3254
|
+
rerunFailedTestCases(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}, any>>;
|
|
2048
3255
|
}
|
|
2049
3256
|
/**
|
|
2050
3257
|
* ScenarioApi - axios parameter creator
|
|
@@ -2052,13 +3259,39 @@ export declare class ResultApi extends BaseAPI {
|
|
|
2052
3259
|
*/
|
|
2053
3260
|
export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2054
3261
|
/**
|
|
2055
|
-
*
|
|
3262
|
+
* 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.
|
|
3263
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3264
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
3265
|
+
* @param {*} [options] Override http request option.
|
|
3266
|
+
* @throws {RequiredError}
|
|
3267
|
+
*/
|
|
3268
|
+
createScenario: (projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3269
|
+
/**
|
|
3270
|
+
* 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.
|
|
3271
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3272
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3273
|
+
* @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.
|
|
3274
|
+
* @param {*} [options] Override http request option.
|
|
3275
|
+
* @throws {RequiredError}
|
|
3276
|
+
*/
|
|
3277
|
+
deleteScenario: (projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3278
|
+
/**
|
|
3279
|
+
* 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`.
|
|
2056
3280
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2057
3281
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2058
3282
|
* @param {*} [options] Override http request option.
|
|
2059
3283
|
* @throws {RequiredError}
|
|
2060
3284
|
*/
|
|
2061
3285
|
describeScenario: (projectId: number, scenarioId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3286
|
+
/**
|
|
3287
|
+
* 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.
|
|
3288
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3289
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3290
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3291
|
+
* @param {*} [options] Override http request option.
|
|
3292
|
+
* @throws {RequiredError}
|
|
3293
|
+
*/
|
|
3294
|
+
describeScenarioHistory: (projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2062
3295
|
/**
|
|
2063
3296
|
* Duplicate a scenario.
|
|
2064
3297
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2075,6 +3308,16 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2075
3308
|
* @throws {RequiredError}
|
|
2076
3309
|
*/
|
|
2077
3310
|
executeScenarios: (projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3311
|
+
/**
|
|
3312
|
+
* 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.
|
|
3313
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3314
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3315
|
+
* @param {number} [page] The number of page returns.
|
|
3316
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3317
|
+
* @param {*} [options] Override http request option.
|
|
3318
|
+
* @throws {RequiredError}
|
|
3319
|
+
*/
|
|
3320
|
+
listScenarioHistories: (projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2078
3321
|
/**
|
|
2079
3322
|
* List scenarios.
|
|
2080
3323
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2083,6 +3326,43 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2083
3326
|
* @throws {RequiredError}
|
|
2084
3327
|
*/
|
|
2085
3328
|
listScenarios: (projectId: number, page?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3329
|
+
/**
|
|
3330
|
+
* 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.
|
|
3331
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3332
|
+
* @param {*} [options] Override http request option.
|
|
3333
|
+
* @throws {RequiredError}
|
|
3334
|
+
*/
|
|
3335
|
+
listStepKeywords: (projectId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3336
|
+
/**
|
|
3337
|
+
* 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.
|
|
3338
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3339
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3340
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
3341
|
+
* @param {*} [options] Override http request option.
|
|
3342
|
+
* @throws {RequiredError}
|
|
3343
|
+
*/
|
|
3344
|
+
replaceScenarioSteps: (projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3345
|
+
/**
|
|
3346
|
+
* 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.
|
|
3347
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3348
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3349
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3350
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
3351
|
+
* @param {*} [options] Override http request option.
|
|
3352
|
+
* @throws {RequiredError}
|
|
3353
|
+
*/
|
|
3354
|
+
restoreScenarioHistory: (projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3355
|
+
/**
|
|
3356
|
+
* 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`.
|
|
3357
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3358
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
3359
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
3360
|
+
* @param {number} [page] The number of page returns.
|
|
3361
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3362
|
+
* @param {*} [options] Override http request option.
|
|
3363
|
+
* @throws {RequiredError}
|
|
3364
|
+
*/
|
|
3365
|
+
searchSteps: (projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2086
3366
|
/**
|
|
2087
3367
|
* Update a scenario.
|
|
2088
3368
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2099,13 +3379,39 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2099
3379
|
*/
|
|
2100
3380
|
export declare const ScenarioApiFp: (configuration?: Configuration) => {
|
|
2101
3381
|
/**
|
|
2102
|
-
*
|
|
3382
|
+
* 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.
|
|
3383
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3384
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
3385
|
+
* @param {*} [options] Override http request option.
|
|
3386
|
+
* @throws {RequiredError}
|
|
3387
|
+
*/
|
|
3388
|
+
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
|
|
3389
|
+
/**
|
|
3390
|
+
* 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.
|
|
3391
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3392
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3393
|
+
* @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.
|
|
3394
|
+
* @param {*} [options] Override http request option.
|
|
3395
|
+
* @throws {RequiredError}
|
|
3396
|
+
*/
|
|
3397
|
+
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
3398
|
+
/**
|
|
3399
|
+
* 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`.
|
|
2103
3400
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2104
3401
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2105
3402
|
* @param {*} [options] Override http request option.
|
|
2106
3403
|
* @throws {RequiredError}
|
|
2107
3404
|
*/
|
|
2108
3405
|
describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
|
|
3406
|
+
/**
|
|
3407
|
+
* 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.
|
|
3408
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3409
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3410
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3411
|
+
* @param {*} [options] Override http request option.
|
|
3412
|
+
* @throws {RequiredError}
|
|
3413
|
+
*/
|
|
3414
|
+
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioHistoryDetail>>;
|
|
2109
3415
|
/**
|
|
2110
3416
|
* Duplicate a scenario.
|
|
2111
3417
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2122,6 +3428,16 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
|
|
|
2122
3428
|
* @throws {RequiredError}
|
|
2123
3429
|
*/
|
|
2124
3430
|
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteScenariosResult>>;
|
|
3431
|
+
/**
|
|
3432
|
+
* 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.
|
|
3433
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3434
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3435
|
+
* @param {number} [page] The number of page returns.
|
|
3436
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3437
|
+
* @param {*} [options] Override http request option.
|
|
3438
|
+
* @throws {RequiredError}
|
|
3439
|
+
*/
|
|
3440
|
+
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioHistory>>>;
|
|
2125
3441
|
/**
|
|
2126
3442
|
* List scenarios.
|
|
2127
3443
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2130,6 +3446,43 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
|
|
|
2130
3446
|
* @throws {RequiredError}
|
|
2131
3447
|
*/
|
|
2132
3448
|
listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>>;
|
|
3449
|
+
/**
|
|
3450
|
+
* 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.
|
|
3451
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3452
|
+
* @param {*} [options] Override http request option.
|
|
3453
|
+
* @throws {RequiredError}
|
|
3454
|
+
*/
|
|
3455
|
+
listStepKeywords(projectId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<StepKeyword>>>;
|
|
3456
|
+
/**
|
|
3457
|
+
* 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.
|
|
3458
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3459
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3460
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
3461
|
+
* @param {*} [options] Override http request option.
|
|
3462
|
+
* @throws {RequiredError}
|
|
3463
|
+
*/
|
|
3464
|
+
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
|
|
3465
|
+
/**
|
|
3466
|
+
* 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.
|
|
3467
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3468
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3469
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3470
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
3471
|
+
* @param {*} [options] Override http request option.
|
|
3472
|
+
* @throws {RequiredError}
|
|
3473
|
+
*/
|
|
3474
|
+
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
|
|
3475
|
+
/**
|
|
3476
|
+
* 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`.
|
|
3477
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3478
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
3479
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
3480
|
+
* @param {number} [page] The number of page returns.
|
|
3481
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3482
|
+
* @param {*} [options] Override http request option.
|
|
3483
|
+
* @throws {RequiredError}
|
|
3484
|
+
*/
|
|
3485
|
+
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<StepSearchHit>>>;
|
|
2133
3486
|
/**
|
|
2134
3487
|
* Update a scenario.
|
|
2135
3488
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2146,13 +3499,39 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
|
|
|
2146
3499
|
*/
|
|
2147
3500
|
export declare const ScenarioApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2148
3501
|
/**
|
|
2149
|
-
*
|
|
3502
|
+
* 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.
|
|
3503
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3504
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
3505
|
+
* @param {*} [options] Override http request option.
|
|
3506
|
+
* @throws {RequiredError}
|
|
3507
|
+
*/
|
|
3508
|
+
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: any): AxiosPromise<ScenarioDetail>;
|
|
3509
|
+
/**
|
|
3510
|
+
* 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.
|
|
3511
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3512
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3513
|
+
* @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.
|
|
3514
|
+
* @param {*} [options] Override http request option.
|
|
3515
|
+
* @throws {RequiredError}
|
|
3516
|
+
*/
|
|
3517
|
+
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: any): AxiosPromise<string>;
|
|
3518
|
+
/**
|
|
3519
|
+
* 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`.
|
|
2150
3520
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2151
3521
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2152
3522
|
* @param {*} [options] Override http request option.
|
|
2153
3523
|
* @throws {RequiredError}
|
|
2154
3524
|
*/
|
|
2155
3525
|
describeScenario(projectId: number, scenarioId: number, options?: any): AxiosPromise<ScenarioDetail>;
|
|
3526
|
+
/**
|
|
3527
|
+
* 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.
|
|
3528
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3529
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3530
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3531
|
+
* @param {*} [options] Override http request option.
|
|
3532
|
+
* @throws {RequiredError}
|
|
3533
|
+
*/
|
|
3534
|
+
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: any): AxiosPromise<ScenarioHistoryDetail>;
|
|
2156
3535
|
/**
|
|
2157
3536
|
* Duplicate a scenario.
|
|
2158
3537
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2169,6 +3548,16 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
|
|
|
2169
3548
|
* @throws {RequiredError}
|
|
2170
3549
|
*/
|
|
2171
3550
|
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: any): AxiosPromise<ExecuteScenariosResult>;
|
|
3551
|
+
/**
|
|
3552
|
+
* 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.
|
|
3553
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3554
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3555
|
+
* @param {number} [page] The number of page returns.
|
|
3556
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3557
|
+
* @param {*} [options] Override http request option.
|
|
3558
|
+
* @throws {RequiredError}
|
|
3559
|
+
*/
|
|
3560
|
+
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: any): AxiosPromise<Array<ScenarioHistory>>;
|
|
2172
3561
|
/**
|
|
2173
3562
|
* List scenarios.
|
|
2174
3563
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2177,6 +3566,43 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
|
|
|
2177
3566
|
* @throws {RequiredError}
|
|
2178
3567
|
*/
|
|
2179
3568
|
listScenarios(projectId: number, page?: number, options?: any): AxiosPromise<Array<Scenario>>;
|
|
3569
|
+
/**
|
|
3570
|
+
* 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.
|
|
3571
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3572
|
+
* @param {*} [options] Override http request option.
|
|
3573
|
+
* @throws {RequiredError}
|
|
3574
|
+
*/
|
|
3575
|
+
listStepKeywords(projectId: number, options?: any): AxiosPromise<Array<StepKeyword>>;
|
|
3576
|
+
/**
|
|
3577
|
+
* 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.
|
|
3578
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3579
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3580
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
3581
|
+
* @param {*} [options] Override http request option.
|
|
3582
|
+
* @throws {RequiredError}
|
|
3583
|
+
*/
|
|
3584
|
+
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: any): AxiosPromise<ScenarioDetail>;
|
|
3585
|
+
/**
|
|
3586
|
+
* 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.
|
|
3587
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3588
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3589
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3590
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
3591
|
+
* @param {*} [options] Override http request option.
|
|
3592
|
+
* @throws {RequiredError}
|
|
3593
|
+
*/
|
|
3594
|
+
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: any): AxiosPromise<ScenarioDetail>;
|
|
3595
|
+
/**
|
|
3596
|
+
* 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`.
|
|
3597
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3598
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
3599
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
3600
|
+
* @param {number} [page] The number of page returns.
|
|
3601
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3602
|
+
* @param {*} [options] Override http request option.
|
|
3603
|
+
* @throws {RequiredError}
|
|
3604
|
+
*/
|
|
3605
|
+
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: any): AxiosPromise<Array<StepSearchHit>>;
|
|
2180
3606
|
/**
|
|
2181
3607
|
* Update a scenario.
|
|
2182
3608
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2195,14 +3621,43 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
|
|
|
2195
3621
|
*/
|
|
2196
3622
|
export declare class ScenarioApi extends BaseAPI {
|
|
2197
3623
|
/**
|
|
2198
|
-
*
|
|
3624
|
+
* 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.
|
|
3625
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3626
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
3627
|
+
* @param {*} [options] Override http request option.
|
|
3628
|
+
* @throws {RequiredError}
|
|
3629
|
+
* @memberof ScenarioApi
|
|
3630
|
+
*/
|
|
3631
|
+
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
3632
|
+
/**
|
|
3633
|
+
* 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.
|
|
3634
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3635
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3636
|
+
* @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.
|
|
3637
|
+
* @param {*} [options] Override http request option.
|
|
3638
|
+
* @throws {RequiredError}
|
|
3639
|
+
* @memberof ScenarioApi
|
|
3640
|
+
*/
|
|
3641
|
+
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
|
|
3642
|
+
/**
|
|
3643
|
+
* 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`.
|
|
3644
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3645
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3646
|
+
* @param {*} [options] Override http request option.
|
|
3647
|
+
* @throws {RequiredError}
|
|
3648
|
+
* @memberof ScenarioApi
|
|
3649
|
+
*/
|
|
3650
|
+
describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
3651
|
+
/**
|
|
3652
|
+
* 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.
|
|
2199
3653
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2200
3654
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3655
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
2201
3656
|
* @param {*} [options] Override http request option.
|
|
2202
3657
|
* @throws {RequiredError}
|
|
2203
3658
|
* @memberof ScenarioApi
|
|
2204
3659
|
*/
|
|
2205
|
-
|
|
3660
|
+
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistoryDetail, any, {}, any>>;
|
|
2206
3661
|
/**
|
|
2207
3662
|
* Duplicate a scenario.
|
|
2208
3663
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2211,7 +3666,7 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2211
3666
|
* @throws {RequiredError}
|
|
2212
3667
|
* @memberof ScenarioApi
|
|
2213
3668
|
*/
|
|
2214
|
-
duplicateScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
3669
|
+
duplicateScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
2215
3670
|
/**
|
|
2216
3671
|
* You can execute any scenarios in your workspace using any execution environments (which is called "capabilities" here).
|
|
2217
3672
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2220,7 +3675,18 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2220
3675
|
* @throws {RequiredError}
|
|
2221
3676
|
* @memberof ScenarioApi
|
|
2222
3677
|
*/
|
|
2223
|
-
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}>>;
|
|
3678
|
+
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}, any>>;
|
|
3679
|
+
/**
|
|
3680
|
+
* 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.
|
|
3681
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3682
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3683
|
+
* @param {number} [page] The number of page returns.
|
|
3684
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3685
|
+
* @param {*} [options] Override http request option.
|
|
3686
|
+
* @throws {RequiredError}
|
|
3687
|
+
* @memberof ScenarioApi
|
|
3688
|
+
*/
|
|
3689
|
+
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistory[], any, {}, any>>;
|
|
2224
3690
|
/**
|
|
2225
3691
|
* List scenarios.
|
|
2226
3692
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2229,7 +3695,48 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2229
3695
|
* @throws {RequiredError}
|
|
2230
3696
|
* @memberof ScenarioApi
|
|
2231
3697
|
*/
|
|
2232
|
-
listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario[], any, {}>>;
|
|
3698
|
+
listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario[], any, {}, any>>;
|
|
3699
|
+
/**
|
|
3700
|
+
* 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.
|
|
3701
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3702
|
+
* @param {*} [options] Override http request option.
|
|
3703
|
+
* @throws {RequiredError}
|
|
3704
|
+
* @memberof ScenarioApi
|
|
3705
|
+
*/
|
|
3706
|
+
listStepKeywords(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepKeyword[], any, {}, any>>;
|
|
3707
|
+
/**
|
|
3708
|
+
* 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.
|
|
3709
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3710
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3711
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
3712
|
+
* @param {*} [options] Override http request option.
|
|
3713
|
+
* @throws {RequiredError}
|
|
3714
|
+
* @memberof ScenarioApi
|
|
3715
|
+
*/
|
|
3716
|
+
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
3717
|
+
/**
|
|
3718
|
+
* 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.
|
|
3719
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3720
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3721
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3722
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
3723
|
+
* @param {*} [options] Override http request option.
|
|
3724
|
+
* @throws {RequiredError}
|
|
3725
|
+
* @memberof ScenarioApi
|
|
3726
|
+
*/
|
|
3727
|
+
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
3728
|
+
/**
|
|
3729
|
+
* 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`.
|
|
3730
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3731
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
3732
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
3733
|
+
* @param {number} [page] The number of page returns.
|
|
3734
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3735
|
+
* @param {*} [options] Override http request option.
|
|
3736
|
+
* @throws {RequiredError}
|
|
3737
|
+
* @memberof ScenarioApi
|
|
3738
|
+
*/
|
|
3739
|
+
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepSearchHit[], any, {}, any>>;
|
|
2233
3740
|
/**
|
|
2234
3741
|
* Update a scenario.
|
|
2235
3742
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2239,7 +3746,7 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2239
3746
|
* @throws {RequiredError}
|
|
2240
3747
|
* @memberof ScenarioApi
|
|
2241
3748
|
*/
|
|
2242
|
-
updateScenario(projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
3749
|
+
updateScenario(projectId: number, scenarioId: number, updateScenarioRequest: UpdateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}, any>>;
|
|
2243
3750
|
}
|
|
2244
3751
|
/**
|
|
2245
3752
|
* ScheduleApi - axios parameter creator
|
|
@@ -2247,7 +3754,7 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2247
3754
|
*/
|
|
2248
3755
|
export declare const ScheduleApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2249
3756
|
/**
|
|
2250
|
-
* "Schedule" is
|
|
3757
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
2251
3758
|
* @summary Run a test plan.
|
|
2252
3759
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
2253
3760
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -2262,7 +3769,7 @@ export declare const ScheduleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2262
3769
|
*/
|
|
2263
3770
|
export declare const ScheduleApiFp: (configuration?: Configuration) => {
|
|
2264
3771
|
/**
|
|
2265
|
-
* "Schedule" is
|
|
3772
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
2266
3773
|
* @summary Run a test plan.
|
|
2267
3774
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
2268
3775
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -2277,7 +3784,7 @@ export declare const ScheduleApiFp: (configuration?: Configuration) => {
|
|
|
2277
3784
|
*/
|
|
2278
3785
|
export declare const ScheduleApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2279
3786
|
/**
|
|
2280
|
-
* "Schedule" is
|
|
3787
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
2281
3788
|
* @summary Run a test plan.
|
|
2282
3789
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
2283
3790
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -2294,7 +3801,7 @@ export declare const ScheduleApiFactory: (configuration?: Configuration, basePat
|
|
|
2294
3801
|
*/
|
|
2295
3802
|
export declare class ScheduleApi extends BaseAPI {
|
|
2296
3803
|
/**
|
|
2297
|
-
* "Schedule" is
|
|
3804
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
2298
3805
|
* @summary Run a test plan.
|
|
2299
3806
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
2300
3807
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -2302,7 +3809,7 @@ export declare class ScheduleApi extends BaseAPI {
|
|
|
2302
3809
|
* @throws {RequiredError}
|
|
2303
3810
|
* @memberof ScheduleApi
|
|
2304
3811
|
*/
|
|
2305
|
-
executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any, {}>>;
|
|
3812
|
+
executeSchedule(scheduleId: number, executeScheduleRequest?: ExecuteScheduleRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteSchedule200Response, any, {}, any>>;
|
|
2306
3813
|
}
|
|
2307
3814
|
/**
|
|
2308
3815
|
* TestPlanVariableApi - axios parameter creator
|
|
@@ -2433,7 +3940,7 @@ export declare class TestPlanVariableApi extends BaseAPI {
|
|
|
2433
3940
|
* @throws {RequiredError}
|
|
2434
3941
|
* @memberof TestPlanVariableApi
|
|
2435
3942
|
*/
|
|
2436
|
-
createTestPlanVariable(testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any, {}>>;
|
|
3943
|
+
createTestPlanVariable(testPlanId: number, createTestPlanVariableRequest: CreateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any, {}, any>>;
|
|
2437
3944
|
/**
|
|
2438
3945
|
* Delete an existing test plan variable for the test plan
|
|
2439
3946
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/
|
|
@@ -2442,7 +3949,7 @@ export declare class TestPlanVariableApi extends BaseAPI {
|
|
|
2442
3949
|
* @throws {RequiredError}
|
|
2443
3950
|
* @memberof TestPlanVariableApi
|
|
2444
3951
|
*/
|
|
2445
|
-
deleteTestPlanVariable(testPlanId: number, testPlanVariableId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
3952
|
+
deleteTestPlanVariable(testPlanId: number, testPlanVariableId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
|
|
2446
3953
|
/**
|
|
2447
3954
|
* List the test plan\'s variables
|
|
2448
3955
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -2450,7 +3957,7 @@ export declare class TestPlanVariableApi extends BaseAPI {
|
|
|
2450
3957
|
* @throws {RequiredError}
|
|
2451
3958
|
* @memberof TestPlanVariableApi
|
|
2452
3959
|
*/
|
|
2453
|
-
listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable[], any, {}>>;
|
|
3960
|
+
listTestPlanVariable(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable[], any, {}, any>>;
|
|
2454
3961
|
/**
|
|
2455
3962
|
* Update a url replacement for the test plan
|
|
2456
3963
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -2460,7 +3967,7 @@ export declare class TestPlanVariableApi extends BaseAPI {
|
|
|
2460
3967
|
* @throws {RequiredError}
|
|
2461
3968
|
* @memberof TestPlanVariableApi
|
|
2462
3969
|
*/
|
|
2463
|
-
updateTestPlanVariable(testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any, {}>>;
|
|
3970
|
+
updateTestPlanVariable(testPlanId: number, testPlanVariableId: number, updateTestPlanVariableRequest: UpdateTestPlanVariableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanVariable, any, {}, any>>;
|
|
2464
3971
|
}
|
|
2465
3972
|
/**
|
|
2466
3973
|
* UrlReplacementApi - axios parameter creator
|
|
@@ -2591,7 +4098,7 @@ export declare class UrlReplacementApi extends BaseAPI {
|
|
|
2591
4098
|
* @throws {RequiredError}
|
|
2592
4099
|
* @memberof UrlReplacementApi
|
|
2593
4100
|
*/
|
|
2594
|
-
createUrlReplacement(testPlanId: number, createUrlReplacementRequest: CreateUrlReplacementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement, any, {}>>;
|
|
4101
|
+
createUrlReplacement(testPlanId: number, createUrlReplacementRequest: CreateUrlReplacementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement, any, {}, any>>;
|
|
2595
4102
|
/**
|
|
2596
4103
|
* Delete a url replacement for the test plan
|
|
2597
4104
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -2600,7 +4107,7 @@ export declare class UrlReplacementApi extends BaseAPI {
|
|
|
2600
4107
|
* @throws {RequiredError}
|
|
2601
4108
|
* @memberof UrlReplacementApi
|
|
2602
4109
|
*/
|
|
2603
|
-
deleteUrlReplacement(testPlanId: number, urlReplacementId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
4110
|
+
deleteUrlReplacement(testPlanId: number, urlReplacementId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}, any>>;
|
|
2604
4111
|
/**
|
|
2605
4112
|
* List url replacements for the test plan
|
|
2606
4113
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -2608,7 +4115,7 @@ export declare class UrlReplacementApi extends BaseAPI {
|
|
|
2608
4115
|
* @throws {RequiredError}
|
|
2609
4116
|
* @memberof UrlReplacementApi
|
|
2610
4117
|
*/
|
|
2611
|
-
listUrlReplacements(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement[], any, {}>>;
|
|
4118
|
+
listUrlReplacements(testPlanId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement[], any, {}, any>>;
|
|
2612
4119
|
/**
|
|
2613
4120
|
* Update a url replacement for the test plan
|
|
2614
4121
|
* @param {number} testPlanId For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15
|
|
@@ -2618,5 +4125,5 @@ export declare class UrlReplacementApi extends BaseAPI {
|
|
|
2618
4125
|
* @throws {RequiredError}
|
|
2619
4126
|
* @memberof UrlReplacementApi
|
|
2620
4127
|
*/
|
|
2621
|
-
updateUrlReplacement(testPlanId: number, urlReplacementId: number, updateUrlReplacementRequest: UpdateUrlReplacementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement, any, {}>>;
|
|
4128
|
+
updateUrlReplacement(testPlanId: number, urlReplacementId: number, updateUrlReplacementRequest: UpdateUrlReplacementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UrlReplacement, any, {}, any>>;
|
|
2622
4129
|
}
|