@autifyhq/autify-sdk 0.30.1 → 0.31.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/web/client.d.ts +125 -4
- package/dist/generated/web/client.js +149 -4
- package/dist/generated/web/openapi/api.d.ts +1638 -133
- package/dist/generated/web/openapi/api.js +1131 -48
- package/package.json +1 -1
|
@@ -280,6 +280,37 @@ export interface CreateAccessPointResult {
|
|
|
280
280
|
*/
|
|
281
281
|
updated_at?: string;
|
|
282
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
*
|
|
285
|
+
* @export
|
|
286
|
+
* @interface CreateScenarioRequest
|
|
287
|
+
*/
|
|
288
|
+
export interface CreateScenarioRequest {
|
|
289
|
+
/**
|
|
290
|
+
* Name of the scenario, unique within the project. Omit it to have a default name generated.
|
|
291
|
+
* @type {string}
|
|
292
|
+
* @memberof CreateScenarioRequest
|
|
293
|
+
*/
|
|
294
|
+
name?: string;
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @type {string}
|
|
298
|
+
* @memberof CreateScenarioRequest
|
|
299
|
+
*/
|
|
300
|
+
description?: string;
|
|
301
|
+
/**
|
|
302
|
+
* 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.
|
|
303
|
+
* @type {Array<string>}
|
|
304
|
+
* @memberof CreateScenarioRequest
|
|
305
|
+
*/
|
|
306
|
+
labels?: Array<string>;
|
|
307
|
+
/**
|
|
308
|
+
* 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"`.
|
|
309
|
+
* @type {boolean}
|
|
310
|
+
* @memberof CreateScenarioRequest
|
|
311
|
+
*/
|
|
312
|
+
on_create?: boolean;
|
|
313
|
+
}
|
|
283
314
|
/**
|
|
284
315
|
*
|
|
285
316
|
* @export
|
|
@@ -469,6 +500,38 @@ export declare const DeviceTypeEnum: {
|
|
|
469
500
|
readonly Emulator: "emulator";
|
|
470
501
|
};
|
|
471
502
|
export type DeviceTypeEnum = (typeof DeviceTypeEnum)[keyof typeof DeviceTypeEnum];
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @export
|
|
506
|
+
* @interface DuplicateScenario402Response
|
|
507
|
+
*/
|
|
508
|
+
export interface DuplicateScenario402Response {
|
|
509
|
+
/**
|
|
510
|
+
*
|
|
511
|
+
* @type {Array<DuplicateScenario402ResponseErrorsInner>}
|
|
512
|
+
* @memberof DuplicateScenario402Response
|
|
513
|
+
*/
|
|
514
|
+
errors?: Array<DuplicateScenario402ResponseErrorsInner>;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @export
|
|
519
|
+
* @interface DuplicateScenario402ResponseErrorsInner
|
|
520
|
+
*/
|
|
521
|
+
export interface DuplicateScenario402ResponseErrorsInner {
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @type {number}
|
|
525
|
+
* @memberof DuplicateScenario402ResponseErrorsInner
|
|
526
|
+
*/
|
|
527
|
+
code?: number;
|
|
528
|
+
/**
|
|
529
|
+
*
|
|
530
|
+
* @type {string}
|
|
531
|
+
* @memberof DuplicateScenario402ResponseErrorsInner
|
|
532
|
+
*/
|
|
533
|
+
message?: string;
|
|
534
|
+
}
|
|
472
535
|
/**
|
|
473
536
|
*
|
|
474
537
|
* @export
|
|
@@ -857,6 +920,25 @@ export declare const OsTypeEnum: {
|
|
|
857
920
|
readonly Android: "android";
|
|
858
921
|
};
|
|
859
922
|
export type OsTypeEnum = (typeof OsTypeEnum)[keyof typeof OsTypeEnum];
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @export
|
|
926
|
+
* @interface Project
|
|
927
|
+
*/
|
|
928
|
+
export interface Project {
|
|
929
|
+
/**
|
|
930
|
+
*
|
|
931
|
+
* @type {number}
|
|
932
|
+
* @memberof Project
|
|
933
|
+
*/
|
|
934
|
+
id?: number;
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
* @type {string}
|
|
938
|
+
* @memberof Project
|
|
939
|
+
*/
|
|
940
|
+
name?: string;
|
|
941
|
+
}
|
|
860
942
|
/**
|
|
861
943
|
*
|
|
862
944
|
* @export
|
|
@@ -888,6 +970,100 @@ export interface ProjectInfo {
|
|
|
888
970
|
*/
|
|
889
971
|
test_plans_count?: number;
|
|
890
972
|
}
|
|
973
|
+
/**
|
|
974
|
+
*
|
|
975
|
+
* @export
|
|
976
|
+
* @interface ReplaceScenarioStepsRequest
|
|
977
|
+
*/
|
|
978
|
+
export interface ReplaceScenarioStepsRequest {
|
|
979
|
+
/**
|
|
980
|
+
* 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.
|
|
981
|
+
* @type {string}
|
|
982
|
+
* @memberof ReplaceScenarioStepsRequest
|
|
983
|
+
*/
|
|
984
|
+
version_token?: string;
|
|
985
|
+
/**
|
|
986
|
+
* 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.
|
|
987
|
+
* @type {Array<object>}
|
|
988
|
+
* @memberof ReplaceScenarioStepsRequest
|
|
989
|
+
*/
|
|
990
|
+
steps: Array<object>;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
*
|
|
994
|
+
* @export
|
|
995
|
+
* @interface RestoreScenarioHistoryRequest
|
|
996
|
+
*/
|
|
997
|
+
export interface RestoreScenarioHistoryRequest {
|
|
998
|
+
/**
|
|
999
|
+
* 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.
|
|
1000
|
+
* @type {string}
|
|
1001
|
+
* @memberof RestoreScenarioHistoryRequest
|
|
1002
|
+
*/
|
|
1003
|
+
version_token?: string;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* An argument to a step of a run. The vocabulary matches `ScenarioStepArgument`; which fields are present depends on `type`.
|
|
1007
|
+
* @export
|
|
1008
|
+
* @interface ResultStepArgument
|
|
1009
|
+
*/
|
|
1010
|
+
export interface ResultStepArgument {
|
|
1011
|
+
/**
|
|
1012
|
+
* 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.
|
|
1013
|
+
* @type {string}
|
|
1014
|
+
* @memberof ResultStepArgument
|
|
1015
|
+
*/
|
|
1016
|
+
name?: string | null;
|
|
1017
|
+
/**
|
|
1018
|
+
* `text` and `url` carry `value`. `file` carries `file_name`. `element` carries `element_id`, `user_locator` and `candidate_locators`.
|
|
1019
|
+
* @type {string}
|
|
1020
|
+
* @memberof ResultStepArgument
|
|
1021
|
+
*/
|
|
1022
|
+
type?: ResultStepArgumentTypeEnum;
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @type {ResultStepArgumentValue}
|
|
1026
|
+
* @memberof ResultStepArgument
|
|
1027
|
+
*/
|
|
1028
|
+
value?: ResultStepArgumentValue;
|
|
1029
|
+
/**
|
|
1030
|
+
* The uploaded file\'s name, without the storage path it is kept under.
|
|
1031
|
+
* @type {string}
|
|
1032
|
+
* @memberof ResultStepArgument
|
|
1033
|
+
*/
|
|
1034
|
+
file_name?: string | null;
|
|
1035
|
+
/**
|
|
1036
|
+
* ID of the Autify element targeted by the step.
|
|
1037
|
+
* @type {number}
|
|
1038
|
+
* @memberof ResultStepArgument
|
|
1039
|
+
*/
|
|
1040
|
+
element_id?: number | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* Locator explicitly specified by the user, when present. Null for a password field, whose locator can embed the value.
|
|
1043
|
+
* @type {string}
|
|
1044
|
+
* @memberof ResultStepArgument
|
|
1045
|
+
*/
|
|
1046
|
+
user_locator?: string | null;
|
|
1047
|
+
/**
|
|
1048
|
+
* 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.
|
|
1049
|
+
* @type {Array<string>}
|
|
1050
|
+
* @memberof ResultStepArgument
|
|
1051
|
+
*/
|
|
1052
|
+
candidate_locators?: Array<string>;
|
|
1053
|
+
}
|
|
1054
|
+
export declare const ResultStepArgumentTypeEnum: {
|
|
1055
|
+
readonly Text: "text";
|
|
1056
|
+
readonly Url: "url";
|
|
1057
|
+
readonly File: "file";
|
|
1058
|
+
readonly Element: "element";
|
|
1059
|
+
};
|
|
1060
|
+
export type ResultStepArgumentTypeEnum = (typeof ResultStepArgumentTypeEnum)[keyof typeof ResultStepArgumentTypeEnum];
|
|
1061
|
+
/**
|
|
1062
|
+
* @type ResultStepArgumentValue
|
|
1063
|
+
* 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.
|
|
1064
|
+
* @export
|
|
1065
|
+
*/
|
|
1066
|
+
export type ResultStepArgumentValue = boolean | string;
|
|
891
1067
|
/**
|
|
892
1068
|
*
|
|
893
1069
|
* @export
|
|
@@ -949,6 +1125,12 @@ export interface ScenarioDetail {
|
|
|
949
1125
|
* @memberof ScenarioDetail
|
|
950
1126
|
*/
|
|
951
1127
|
id?: number;
|
|
1128
|
+
/**
|
|
1129
|
+
* 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.
|
|
1130
|
+
* @type {string}
|
|
1131
|
+
* @memberof ScenarioDetail
|
|
1132
|
+
*/
|
|
1133
|
+
version_token?: string;
|
|
952
1134
|
/**
|
|
953
1135
|
*
|
|
954
1136
|
* @type {string}
|
|
@@ -981,10 +1163,34 @@ export interface ScenarioDetail {
|
|
|
981
1163
|
updater?: User;
|
|
982
1164
|
/**
|
|
983
1165
|
*
|
|
984
|
-
* @type {
|
|
1166
|
+
* @type {string}
|
|
1167
|
+
* @memberof ScenarioDetail
|
|
1168
|
+
*/
|
|
1169
|
+
description?: string;
|
|
1170
|
+
/**
|
|
1171
|
+
*
|
|
1172
|
+
* @type {string}
|
|
1173
|
+
* @memberof ScenarioDetail
|
|
1174
|
+
*/
|
|
1175
|
+
project_url?: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* The scenario\'s steps, in execution order.
|
|
1178
|
+
* @type {Array<ScenarioStep>}
|
|
1179
|
+
* @memberof ScenarioDetail
|
|
1180
|
+
*/
|
|
1181
|
+
steps?: Array<ScenarioStep>;
|
|
1182
|
+
/**
|
|
1183
|
+
* The scenario\'s data table, one entry per row.
|
|
1184
|
+
* @type {Array<object>}
|
|
1185
|
+
* @memberof ScenarioDetail
|
|
1186
|
+
*/
|
|
1187
|
+
data_table?: Array<object>;
|
|
1188
|
+
/**
|
|
1189
|
+
*
|
|
1190
|
+
* @type {ScenarioVariables}
|
|
985
1191
|
* @memberof ScenarioDetail
|
|
986
1192
|
*/
|
|
987
|
-
|
|
1193
|
+
variables?: ScenarioVariables;
|
|
988
1194
|
/**
|
|
989
1195
|
*
|
|
990
1196
|
* @type {Array<Label>}
|
|
@@ -995,226 +1201,871 @@ export interface ScenarioDetail {
|
|
|
995
1201
|
/**
|
|
996
1202
|
*
|
|
997
1203
|
* @export
|
|
998
|
-
* @interface
|
|
1204
|
+
* @interface ScenarioHistory
|
|
999
1205
|
*/
|
|
1000
|
-
export interface
|
|
1206
|
+
export interface ScenarioHistory {
|
|
1001
1207
|
/**
|
|
1002
1208
|
*
|
|
1003
1209
|
* @type {number}
|
|
1004
|
-
* @memberof
|
|
1210
|
+
* @memberof ScenarioHistory
|
|
1005
1211
|
*/
|
|
1006
1212
|
id?: number;
|
|
1007
1213
|
/**
|
|
1008
|
-
*
|
|
1009
|
-
* @type {
|
|
1010
|
-
* @memberof
|
|
1214
|
+
* When this entry was recorded. For an editor save that is a moment after the save, when the entry is written.
|
|
1215
|
+
* @type {string}
|
|
1216
|
+
* @memberof ScenarioHistory
|
|
1011
1217
|
*/
|
|
1012
|
-
|
|
1218
|
+
created_at?: string;
|
|
1013
1219
|
/**
|
|
1014
1220
|
*
|
|
1015
|
-
* @type {
|
|
1016
|
-
* @memberof
|
|
1221
|
+
* @type {ScenarioHistoryAuthor}
|
|
1222
|
+
* @memberof ScenarioHistory
|
|
1017
1223
|
*/
|
|
1018
|
-
|
|
1224
|
+
author?: ScenarioHistoryAuthor | null;
|
|
1225
|
+
/**
|
|
1226
|
+
* True on the entry recorded by the most recent save of the scenario\'s steps.
|
|
1227
|
+
* @type {boolean}
|
|
1228
|
+
* @memberof ScenarioHistory
|
|
1229
|
+
*/
|
|
1230
|
+
latest?: boolean;
|
|
1019
1231
|
}
|
|
1020
1232
|
/**
|
|
1021
1233
|
*
|
|
1022
1234
|
* @export
|
|
1023
|
-
* @interface
|
|
1235
|
+
* @interface ScenarioHistoryAuthor
|
|
1024
1236
|
*/
|
|
1025
|
-
export interface
|
|
1237
|
+
export interface ScenarioHistoryAuthor {
|
|
1026
1238
|
/**
|
|
1027
1239
|
*
|
|
1028
1240
|
* @type {number}
|
|
1029
|
-
* @memberof
|
|
1241
|
+
* @memberof ScenarioHistoryAuthor
|
|
1030
1242
|
*/
|
|
1031
1243
|
id?: number;
|
|
1032
1244
|
/**
|
|
1033
1245
|
*
|
|
1034
|
-
* @type {
|
|
1035
|
-
* @memberof
|
|
1036
|
-
*/
|
|
1037
|
-
step_arguments?: ScenarioDetailStepsInnerStepKeywordStepArguments;
|
|
1038
|
-
/**
|
|
1039
|
-
*
|
|
1040
|
-
* @type {ScenarioDetailStepsInnerStepKeywordTranslatedKeyword}
|
|
1041
|
-
* @memberof ScenarioDetailStepsInnerStepKeyword
|
|
1246
|
+
* @type {string}
|
|
1247
|
+
* @memberof ScenarioHistoryAuthor
|
|
1042
1248
|
*/
|
|
1043
|
-
|
|
1249
|
+
username?: string;
|
|
1044
1250
|
}
|
|
1045
1251
|
/**
|
|
1046
1252
|
*
|
|
1047
1253
|
* @export
|
|
1048
|
-
* @interface
|
|
1254
|
+
* @interface ScenarioHistoryDetail
|
|
1049
1255
|
*/
|
|
1050
|
-
export interface
|
|
1256
|
+
export interface ScenarioHistoryDetail {
|
|
1051
1257
|
/**
|
|
1052
1258
|
*
|
|
1053
1259
|
* @type {number}
|
|
1054
|
-
* @memberof
|
|
1260
|
+
* @memberof ScenarioHistoryDetail
|
|
1055
1261
|
*/
|
|
1056
1262
|
id?: number;
|
|
1263
|
+
/**
|
|
1264
|
+
* When this entry was recorded. For an editor save that is a moment after the save, when the entry is written.
|
|
1265
|
+
* @type {string}
|
|
1266
|
+
* @memberof ScenarioHistoryDetail
|
|
1267
|
+
*/
|
|
1268
|
+
created_at?: string;
|
|
1057
1269
|
/**
|
|
1058
1270
|
*
|
|
1059
|
-
* @type {
|
|
1060
|
-
* @memberof
|
|
1271
|
+
* @type {ScenarioHistoryAuthor}
|
|
1272
|
+
* @memberof ScenarioHistoryDetail
|
|
1061
1273
|
*/
|
|
1062
|
-
|
|
1274
|
+
author?: ScenarioHistoryAuthor | null;
|
|
1275
|
+
/**
|
|
1276
|
+
* True when this entry was recorded by the most recent save of the scenario\'s steps.
|
|
1277
|
+
* @type {boolean}
|
|
1278
|
+
* @memberof ScenarioHistoryDetail
|
|
1279
|
+
*/
|
|
1280
|
+
latest?: boolean;
|
|
1281
|
+
/**
|
|
1282
|
+
* The scenario\'s name when this entry was recorded.
|
|
1283
|
+
* @type {string}
|
|
1284
|
+
* @memberof ScenarioHistoryDetail
|
|
1285
|
+
*/
|
|
1286
|
+
name?: string;
|
|
1287
|
+
/**
|
|
1288
|
+
* The scenario\'s steps at this entry, in execution order.
|
|
1289
|
+
* @type {Array<ScenarioStep>}
|
|
1290
|
+
* @memberof ScenarioHistoryDetail
|
|
1291
|
+
*/
|
|
1292
|
+
steps?: Array<ScenarioStep>;
|
|
1293
|
+
/**
|
|
1294
|
+
* The scenario\'s data table at this entry, one entry per row.
|
|
1295
|
+
* @type {Array<object>}
|
|
1296
|
+
* @memberof ScenarioHistoryDetail
|
|
1297
|
+
*/
|
|
1298
|
+
data_table?: Array<object>;
|
|
1299
|
+
/**
|
|
1300
|
+
*
|
|
1301
|
+
* @type {ScenarioVariables}
|
|
1302
|
+
* @memberof ScenarioHistoryDetail
|
|
1303
|
+
*/
|
|
1304
|
+
variables?: ScenarioVariables;
|
|
1063
1305
|
}
|
|
1064
|
-
/**
|
|
1065
|
-
* @type ScenarioDetailStepsInnerStepKeywordStepArgumentsValue
|
|
1066
|
-
* @export
|
|
1067
|
-
*/
|
|
1068
|
-
export type ScenarioDetailStepsInnerStepKeywordStepArgumentsValue = boolean | string;
|
|
1069
1306
|
/**
|
|
1070
1307
|
*
|
|
1071
1308
|
* @export
|
|
1072
|
-
* @interface
|
|
1309
|
+
* @interface ScenarioStep
|
|
1073
1310
|
*/
|
|
1074
|
-
export interface
|
|
1311
|
+
export interface ScenarioStep {
|
|
1075
1312
|
/**
|
|
1076
|
-
*
|
|
1313
|
+
* 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
1314
|
* @type {number}
|
|
1078
|
-
* @memberof
|
|
1315
|
+
* @memberof ScenarioStep
|
|
1079
1316
|
*/
|
|
1080
|
-
id?: number;
|
|
1317
|
+
id?: number | null;
|
|
1081
1318
|
/**
|
|
1082
|
-
*
|
|
1319
|
+
* 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.
|
|
1083
1320
|
* @type {string}
|
|
1084
|
-
* @memberof
|
|
1321
|
+
* @memberof ScenarioStep
|
|
1322
|
+
*/
|
|
1323
|
+
action_type?: string | null;
|
|
1324
|
+
/**
|
|
1325
|
+
* The step\'s name, as shown in the scenario editor.
|
|
1326
|
+
* @type {string}
|
|
1327
|
+
* @memberof ScenarioStep
|
|
1085
1328
|
*/
|
|
1086
1329
|
name?: string;
|
|
1087
1330
|
/**
|
|
1088
1331
|
*
|
|
1089
1332
|
* @type {string}
|
|
1090
|
-
* @memberof
|
|
1333
|
+
* @memberof ScenarioStep
|
|
1091
1334
|
*/
|
|
1092
|
-
|
|
1335
|
+
memo?: string;
|
|
1093
1336
|
/**
|
|
1094
|
-
*
|
|
1337
|
+
* What the run does when this step fails.
|
|
1095
1338
|
* @type {string}
|
|
1096
|
-
* @memberof
|
|
1339
|
+
* @memberof ScenarioStep
|
|
1097
1340
|
*/
|
|
1098
|
-
|
|
1341
|
+
on_failure?: ScenarioStepOnFailureEnum;
|
|
1342
|
+
/**
|
|
1343
|
+
* Whether the step runs as part of the scenario or as a cleanup step afterwards.
|
|
1344
|
+
* @type {string}
|
|
1345
|
+
* @memberof ScenarioStep
|
|
1346
|
+
*/
|
|
1347
|
+
step_execution_type?: ScenarioStepStepExecutionTypeEnum;
|
|
1348
|
+
/**
|
|
1349
|
+
* 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.
|
|
1350
|
+
* @type {string}
|
|
1351
|
+
* @memberof ScenarioStep
|
|
1352
|
+
*/
|
|
1353
|
+
assign?: string | null;
|
|
1354
|
+
/**
|
|
1355
|
+
* 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.
|
|
1356
|
+
* @type {Array<ScenarioStepArgument>}
|
|
1357
|
+
* @memberof ScenarioStep
|
|
1358
|
+
*/
|
|
1359
|
+
arguments?: Array<ScenarioStepArgument>;
|
|
1099
1360
|
}
|
|
1361
|
+
export declare const ScenarioStepOnFailureEnum: {
|
|
1362
|
+
readonly Abort: "abort";
|
|
1363
|
+
readonly Continue: "continue";
|
|
1364
|
+
readonly Ignore: "ignore";
|
|
1365
|
+
};
|
|
1366
|
+
export type ScenarioStepOnFailureEnum = (typeof ScenarioStepOnFailureEnum)[keyof typeof ScenarioStepOnFailureEnum];
|
|
1367
|
+
export declare const ScenarioStepStepExecutionTypeEnum: {
|
|
1368
|
+
readonly ScenarioStep: "scenario_step";
|
|
1369
|
+
readonly CleanupStep: "cleanup_step";
|
|
1370
|
+
};
|
|
1371
|
+
export type ScenarioStepStepExecutionTypeEnum = (typeof ScenarioStepStepExecutionTypeEnum)[keyof typeof ScenarioStepStepExecutionTypeEnum];
|
|
1100
1372
|
/**
|
|
1101
|
-
*
|
|
1373
|
+
* An argument to a step. Which fields are present depends on `type`.
|
|
1102
1374
|
* @export
|
|
1103
|
-
* @interface
|
|
1375
|
+
* @interface ScenarioStepArgument
|
|
1104
1376
|
*/
|
|
1105
|
-
export interface
|
|
1377
|
+
export interface ScenarioStepArgument {
|
|
1106
1378
|
/**
|
|
1107
|
-
*
|
|
1108
|
-
* @type {
|
|
1109
|
-
* @memberof
|
|
1379
|
+
* 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.
|
|
1380
|
+
* @type {string}
|
|
1381
|
+
* @memberof ScenarioStepArgument
|
|
1110
1382
|
*/
|
|
1111
|
-
|
|
1383
|
+
name?: string | null;
|
|
1112
1384
|
/**
|
|
1113
|
-
*
|
|
1114
|
-
* @type {
|
|
1115
|
-
* @memberof
|
|
1385
|
+
* `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`.
|
|
1386
|
+
* @type {string}
|
|
1387
|
+
* @memberof ScenarioStepArgument
|
|
1116
1388
|
*/
|
|
1117
|
-
|
|
1389
|
+
type?: ScenarioStepArgumentTypeEnum;
|
|
1118
1390
|
/**
|
|
1119
1391
|
*
|
|
1120
|
-
* @type {
|
|
1121
|
-
* @memberof
|
|
1392
|
+
* @type {ScenarioStepArgumentValue}
|
|
1393
|
+
* @memberof ScenarioStepArgument
|
|
1122
1394
|
*/
|
|
1123
|
-
|
|
1395
|
+
value?: ScenarioStepArgumentValue;
|
|
1124
1396
|
/**
|
|
1125
|
-
*
|
|
1126
|
-
* @type {
|
|
1127
|
-
* @memberof
|
|
1397
|
+
* 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.
|
|
1398
|
+
* @type {number}
|
|
1399
|
+
* @memberof ScenarioStepArgument
|
|
1128
1400
|
*/
|
|
1129
|
-
|
|
1401
|
+
element_id?: number | null;
|
|
1130
1402
|
/**
|
|
1131
|
-
*
|
|
1403
|
+
* The CSS or XPath selector pinned to this element, if one is set. The `css:` or `xpath:` prefix is part of the value.
|
|
1132
1404
|
* @type {string}
|
|
1133
|
-
* @memberof
|
|
1405
|
+
* @memberof ScenarioStepArgument
|
|
1134
1406
|
*/
|
|
1135
|
-
|
|
1407
|
+
user_locator?: string | null;
|
|
1136
1408
|
/**
|
|
1137
|
-
*
|
|
1138
|
-
* @type {
|
|
1139
|
-
* @memberof
|
|
1409
|
+
* 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.
|
|
1410
|
+
* @type {boolean}
|
|
1411
|
+
* @memberof ScenarioStepArgument
|
|
1140
1412
|
*/
|
|
1141
|
-
|
|
1413
|
+
user_locator_heals?: boolean | null;
|
|
1142
1414
|
/**
|
|
1143
|
-
*
|
|
1415
|
+
* 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.
|
|
1144
1416
|
* @type {string}
|
|
1145
|
-
* @memberof
|
|
1417
|
+
* @memberof ScenarioStepArgument
|
|
1146
1418
|
*/
|
|
1147
|
-
|
|
1419
|
+
seed_locator?: string | null;
|
|
1148
1420
|
/**
|
|
1149
|
-
*
|
|
1150
|
-
* @type {
|
|
1151
|
-
* @memberof
|
|
1421
|
+
* 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.
|
|
1422
|
+
* @type {Array<string>}
|
|
1423
|
+
* @memberof ScenarioStepArgument
|
|
1152
1424
|
*/
|
|
1153
|
-
|
|
1425
|
+
candidate_locators?: Array<string> | null;
|
|
1154
1426
|
/**
|
|
1155
1427
|
*
|
|
1156
1428
|
* @type {string}
|
|
1157
|
-
* @memberof
|
|
1429
|
+
* @memberof ScenarioStepArgument
|
|
1158
1430
|
*/
|
|
1159
|
-
|
|
1431
|
+
file_name?: string | null;
|
|
1160
1432
|
/**
|
|
1161
|
-
*
|
|
1433
|
+
*
|
|
1162
1434
|
* @type {number}
|
|
1163
|
-
* @memberof
|
|
1435
|
+
* @memberof ScenarioStepArgument
|
|
1164
1436
|
*/
|
|
1165
|
-
|
|
1437
|
+
file_size?: number | null;
|
|
1166
1438
|
/**
|
|
1167
|
-
*
|
|
1168
|
-
* @type {
|
|
1169
|
-
* @memberof
|
|
1439
|
+
*
|
|
1440
|
+
* @type {string}
|
|
1441
|
+
* @memberof ScenarioStepArgument
|
|
1170
1442
|
*/
|
|
1171
|
-
|
|
1443
|
+
object_key?: string | null;
|
|
1172
1444
|
/**
|
|
1173
|
-
*
|
|
1174
|
-
* @type {
|
|
1175
|
-
* @memberof
|
|
1445
|
+
* The step group this step runs. Read it with `describeScenario` using this id.
|
|
1446
|
+
* @type {number}
|
|
1447
|
+
* @memberof ScenarioStepArgument
|
|
1176
1448
|
*/
|
|
1177
|
-
|
|
1449
|
+
step_group_id?: number | null;
|
|
1178
1450
|
/**
|
|
1179
|
-
*
|
|
1180
|
-
* @type {
|
|
1181
|
-
* @memberof
|
|
1451
|
+
* 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.
|
|
1452
|
+
* @type {{ [key: string]: ScenarioStepArgumentOverridesValue; }}
|
|
1453
|
+
* @memberof ScenarioStepArgument
|
|
1182
1454
|
*/
|
|
1183
|
-
|
|
1455
|
+
overrides?: {
|
|
1456
|
+
[key: string]: ScenarioStepArgumentOverridesValue;
|
|
1457
|
+
};
|
|
1184
1458
|
}
|
|
1459
|
+
export declare const ScenarioStepArgumentTypeEnum: {
|
|
1460
|
+
readonly Text: "text";
|
|
1461
|
+
readonly Url: "url";
|
|
1462
|
+
readonly File: "file";
|
|
1463
|
+
readonly Element: "element";
|
|
1464
|
+
readonly StepGroup: "step_group";
|
|
1465
|
+
};
|
|
1466
|
+
export type ScenarioStepArgumentTypeEnum = (typeof ScenarioStepArgumentTypeEnum)[keyof typeof ScenarioStepArgumentTypeEnum];
|
|
1185
1467
|
/**
|
|
1186
1468
|
*
|
|
1187
1469
|
* @export
|
|
1188
|
-
* @interface
|
|
1470
|
+
* @interface ScenarioStepArgumentOverridesValue
|
|
1189
1471
|
*/
|
|
1190
|
-
export interface
|
|
1191
|
-
/**
|
|
1192
|
-
*
|
|
1193
|
-
* @type {string}
|
|
1194
|
-
* @memberof TestCaseResultExportVariablesInner
|
|
1195
|
-
*/
|
|
1196
|
-
key?: string;
|
|
1472
|
+
export interface ScenarioStepArgumentOverridesValue {
|
|
1197
1473
|
/**
|
|
1198
|
-
*
|
|
1199
|
-
* @type {
|
|
1200
|
-
* @memberof
|
|
1474
|
+
* 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.
|
|
1475
|
+
* @type {Array<ScenarioStepArgumentOverridesValueArgumentsInner>}
|
|
1476
|
+
* @memberof ScenarioStepArgumentOverridesValue
|
|
1201
1477
|
*/
|
|
1202
|
-
|
|
1478
|
+
arguments?: Array<ScenarioStepArgumentOverridesValueArgumentsInner>;
|
|
1203
1479
|
}
|
|
1204
1480
|
/**
|
|
1205
1481
|
*
|
|
1206
1482
|
* @export
|
|
1207
|
-
* @interface
|
|
1483
|
+
* @interface ScenarioStepArgumentOverridesValueArgumentsInner
|
|
1208
1484
|
*/
|
|
1209
|
-
export interface
|
|
1485
|
+
export interface ScenarioStepArgumentOverridesValueArgumentsInner {
|
|
1210
1486
|
/**
|
|
1211
1487
|
*
|
|
1212
1488
|
* @type {string}
|
|
1213
|
-
* @memberof
|
|
1489
|
+
* @memberof ScenarioStepArgumentOverridesValueArgumentsInner
|
|
1214
1490
|
*/
|
|
1215
|
-
|
|
1491
|
+
name?: string | null;
|
|
1216
1492
|
/**
|
|
1217
|
-
*
|
|
1493
|
+
* The kind of the substituted value: `url` where the overridden argument names a page, `text` otherwise.
|
|
1494
|
+
* @type {string}
|
|
1495
|
+
* @memberof ScenarioStepArgumentOverridesValueArgumentsInner
|
|
1496
|
+
*/
|
|
1497
|
+
type?: ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum;
|
|
1498
|
+
/**
|
|
1499
|
+
*
|
|
1500
|
+
* @type {ScenarioStepArgumentOverridesValueArgumentsInnerValue}
|
|
1501
|
+
* @memberof ScenarioStepArgumentOverridesValueArgumentsInner
|
|
1502
|
+
*/
|
|
1503
|
+
value?: ScenarioStepArgumentOverridesValueArgumentsInnerValue;
|
|
1504
|
+
}
|
|
1505
|
+
export declare const ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum: {
|
|
1506
|
+
readonly Text: "text";
|
|
1507
|
+
readonly Url: "url";
|
|
1508
|
+
};
|
|
1509
|
+
export type ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum = (typeof ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum)[keyof typeof ScenarioStepArgumentOverridesValueArgumentsInnerTypeEnum];
|
|
1510
|
+
/**
|
|
1511
|
+
* @type ScenarioStepArgumentOverridesValueArgumentsInnerValue
|
|
1512
|
+
* 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.
|
|
1513
|
+
* @export
|
|
1514
|
+
*/
|
|
1515
|
+
export type ScenarioStepArgumentOverridesValueArgumentsInnerValue = boolean | string;
|
|
1516
|
+
/**
|
|
1517
|
+
* @type ScenarioStepArgumentValue
|
|
1518
|
+
* The value, for a `text` or `url` argument. A value typed into a password field is returned as `******`.
|
|
1519
|
+
* @export
|
|
1520
|
+
*/
|
|
1521
|
+
export type ScenarioStepArgumentValue = boolean | string;
|
|
1522
|
+
/**
|
|
1523
|
+
*
|
|
1524
|
+
* @export
|
|
1525
|
+
* @interface ScenarioTestCaseResult
|
|
1526
|
+
*/
|
|
1527
|
+
export interface ScenarioTestCaseResult {
|
|
1528
|
+
/**
|
|
1529
|
+
*
|
|
1530
|
+
* @type {number}
|
|
1531
|
+
* @memberof ScenarioTestCaseResult
|
|
1532
|
+
*/
|
|
1533
|
+
id?: number;
|
|
1534
|
+
/**
|
|
1535
|
+
*
|
|
1536
|
+
* @type {TestCaseResultStatus}
|
|
1537
|
+
* @memberof ScenarioTestCaseResult
|
|
1538
|
+
*/
|
|
1539
|
+
status?: TestCaseResultStatus;
|
|
1540
|
+
/**
|
|
1541
|
+
*
|
|
1542
|
+
* @type {number}
|
|
1543
|
+
* @memberof ScenarioTestCaseResult
|
|
1544
|
+
*/
|
|
1545
|
+
duration?: number;
|
|
1546
|
+
/**
|
|
1547
|
+
*
|
|
1548
|
+
* @type {string}
|
|
1549
|
+
* @memberof ScenarioTestCaseResult
|
|
1550
|
+
*/
|
|
1551
|
+
started_at?: string;
|
|
1552
|
+
/**
|
|
1553
|
+
*
|
|
1554
|
+
* @type {string}
|
|
1555
|
+
* @memberof ScenarioTestCaseResult
|
|
1556
|
+
*/
|
|
1557
|
+
finished_at?: string;
|
|
1558
|
+
/**
|
|
1559
|
+
*
|
|
1560
|
+
* @type {string}
|
|
1561
|
+
* @memberof ScenarioTestCaseResult
|
|
1562
|
+
*/
|
|
1563
|
+
created_at?: string;
|
|
1564
|
+
/**
|
|
1565
|
+
*
|
|
1566
|
+
* @type {string}
|
|
1567
|
+
* @memberof ScenarioTestCaseResult
|
|
1568
|
+
*/
|
|
1569
|
+
updated_at?: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* ID of the scenario executed.
|
|
1572
|
+
* @type {number}
|
|
1573
|
+
* @memberof ScenarioTestCaseResult
|
|
1574
|
+
*/
|
|
1575
|
+
test_case_id?: number;
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @type {string}
|
|
1579
|
+
* @memberof ScenarioTestCaseResult
|
|
1580
|
+
*/
|
|
1581
|
+
project_url?: string;
|
|
1582
|
+
/**
|
|
1583
|
+
* Number of "Review needed" flags present in the test results.
|
|
1584
|
+
* @type {number}
|
|
1585
|
+
* @memberof ScenarioTestCaseResult
|
|
1586
|
+
*/
|
|
1587
|
+
review_needed?: number;
|
|
1588
|
+
/**
|
|
1589
|
+
* Number of credits consumed by this test result. (default 0 for test result created before credit based system)
|
|
1590
|
+
* @type {number}
|
|
1591
|
+
* @memberof ScenarioTestCaseResult
|
|
1592
|
+
*/
|
|
1593
|
+
number_of_credits_consumed?: number;
|
|
1594
|
+
/**
|
|
1595
|
+
* THIS FEATURE IS FOR LIMITED NUMBER OF CUSTOMERS. Variables imported from previously executed test results in a test plan.
|
|
1596
|
+
* @type {Array<TestCaseResultImportVariablesInner>}
|
|
1597
|
+
* @memberof ScenarioTestCaseResult
|
|
1598
|
+
*/
|
|
1599
|
+
import_variables?: Array<TestCaseResultImportVariablesInner>;
|
|
1600
|
+
/**
|
|
1601
|
+
* THIS FEATURE IS FOR LIMITED NUMBER OF CUSTOMERS. Variables exported from this test result.
|
|
1602
|
+
* @type {Array<TestCaseResultExportVariablesInner>}
|
|
1603
|
+
* @memberof ScenarioTestCaseResult
|
|
1604
|
+
*/
|
|
1605
|
+
export_variables?: Array<TestCaseResultExportVariablesInner>;
|
|
1606
|
+
/**
|
|
1607
|
+
*
|
|
1608
|
+
* @type {Capability}
|
|
1609
|
+
* @memberof ScenarioTestCaseResult
|
|
1610
|
+
*/
|
|
1611
|
+
capability?: Capability | null;
|
|
1612
|
+
}
|
|
1613
|
+
/**
|
|
1614
|
+
*
|
|
1615
|
+
* @export
|
|
1616
|
+
* @interface ScenarioTestCaseResultAllOf
|
|
1617
|
+
*/
|
|
1618
|
+
export interface ScenarioTestCaseResultAllOf {
|
|
1619
|
+
/**
|
|
1620
|
+
*
|
|
1621
|
+
* @type {Capability}
|
|
1622
|
+
* @memberof ScenarioTestCaseResultAllOf
|
|
1623
|
+
*/
|
|
1624
|
+
capability?: Capability | null;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
*
|
|
1628
|
+
* @export
|
|
1629
|
+
* @interface ScenarioVariables
|
|
1630
|
+
*/
|
|
1631
|
+
export interface ScenarioVariables {
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @type {Array<ScenarioVariablesImportInner>}
|
|
1635
|
+
* @memberof ScenarioVariables
|
|
1636
|
+
*/
|
|
1637
|
+
import?: Array<ScenarioVariablesImportInner>;
|
|
1638
|
+
/**
|
|
1639
|
+
*
|
|
1640
|
+
* @type {Array<ScenarioVariablesExportInner>}
|
|
1641
|
+
* @memberof ScenarioVariables
|
|
1642
|
+
*/
|
|
1643
|
+
export?: Array<ScenarioVariablesExportInner>;
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
*
|
|
1647
|
+
* @export
|
|
1648
|
+
* @interface ScenarioVariablesExportInner
|
|
1649
|
+
*/
|
|
1650
|
+
export interface ScenarioVariablesExportInner {
|
|
1651
|
+
/**
|
|
1652
|
+
*
|
|
1653
|
+
* @type {string}
|
|
1654
|
+
* @memberof ScenarioVariablesExportInner
|
|
1655
|
+
*/
|
|
1656
|
+
key?: string;
|
|
1657
|
+
/**
|
|
1658
|
+
*
|
|
1659
|
+
* @type {number}
|
|
1660
|
+
* @memberof ScenarioVariablesExportInner
|
|
1661
|
+
*/
|
|
1662
|
+
step_id?: number | null;
|
|
1663
|
+
}
|
|
1664
|
+
/**
|
|
1665
|
+
*
|
|
1666
|
+
* @export
|
|
1667
|
+
* @interface ScenarioVariablesImportInner
|
|
1668
|
+
*/
|
|
1669
|
+
export interface ScenarioVariablesImportInner {
|
|
1670
|
+
/**
|
|
1671
|
+
*
|
|
1672
|
+
* @type {string}
|
|
1673
|
+
* @memberof ScenarioVariablesImportInner
|
|
1674
|
+
*/
|
|
1675
|
+
key?: string;
|
|
1676
|
+
/**
|
|
1677
|
+
*
|
|
1678
|
+
* @type {string}
|
|
1679
|
+
* @memberof ScenarioVariablesImportInner
|
|
1680
|
+
*/
|
|
1681
|
+
default_value?: string;
|
|
1682
|
+
}
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @export
|
|
1686
|
+
* @interface SearchSteps400Response
|
|
1687
|
+
*/
|
|
1688
|
+
export interface SearchSteps400Response {
|
|
1689
|
+
/**
|
|
1690
|
+
*
|
|
1691
|
+
* @type {Array<SearchSteps400ResponseErrorsInner>}
|
|
1692
|
+
* @memberof SearchSteps400Response
|
|
1693
|
+
*/
|
|
1694
|
+
errors?: Array<SearchSteps400ResponseErrorsInner>;
|
|
1695
|
+
}
|
|
1696
|
+
/**
|
|
1697
|
+
*
|
|
1698
|
+
* @export
|
|
1699
|
+
* @interface SearchSteps400ResponseErrorsInner
|
|
1700
|
+
*/
|
|
1701
|
+
export interface SearchSteps400ResponseErrorsInner {
|
|
1702
|
+
/**
|
|
1703
|
+
*
|
|
1704
|
+
* @type {number}
|
|
1705
|
+
* @memberof SearchSteps400ResponseErrorsInner
|
|
1706
|
+
*/
|
|
1707
|
+
code?: number;
|
|
1708
|
+
/**
|
|
1709
|
+
*
|
|
1710
|
+
* @type {string}
|
|
1711
|
+
* @memberof SearchSteps400ResponseErrorsInner
|
|
1712
|
+
*/
|
|
1713
|
+
message?: string;
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
*
|
|
1717
|
+
* @export
|
|
1718
|
+
* @interface StepKeyword
|
|
1719
|
+
*/
|
|
1720
|
+
export interface StepKeyword {
|
|
1721
|
+
/**
|
|
1722
|
+
* Canonical English name of the keyword, for example `Input Text`. This is the name the rest of the API expects, in every workspace language.
|
|
1723
|
+
* @type {string}
|
|
1724
|
+
* @memberof StepKeyword
|
|
1725
|
+
*/
|
|
1726
|
+
keyword?: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* The same keyword in enum form, for example `INPUT_TEXT`.
|
|
1729
|
+
* @type {string}
|
|
1730
|
+
* @memberof StepKeyword
|
|
1731
|
+
*/
|
|
1732
|
+
action_type?: string;
|
|
1733
|
+
/**
|
|
1734
|
+
* Whether this workspace\'s plan includes the keyword. Writing a step whose keyword is not included is rejected with 402.
|
|
1735
|
+
* @type {boolean}
|
|
1736
|
+
* @memberof StepKeyword
|
|
1737
|
+
*/
|
|
1738
|
+
included_in_plan?: boolean;
|
|
1739
|
+
/**
|
|
1740
|
+
* The keyword\'s arguments, in the order they must be supplied. Empty for a keyword that takes none.
|
|
1741
|
+
* @type {Array<StepKeywordArgument>}
|
|
1742
|
+
* @memberof StepKeyword
|
|
1743
|
+
*/
|
|
1744
|
+
arguments?: Array<StepKeywordArgument>;
|
|
1745
|
+
}
|
|
1746
|
+
/**
|
|
1747
|
+
*
|
|
1748
|
+
* @export
|
|
1749
|
+
* @interface StepKeywordArgument
|
|
1750
|
+
*/
|
|
1751
|
+
export interface StepKeywordArgument {
|
|
1752
|
+
/**
|
|
1753
|
+
* Name of the argument as the scenario editor shows it.
|
|
1754
|
+
* @type {string}
|
|
1755
|
+
* @memberof StepKeywordArgument
|
|
1756
|
+
*/
|
|
1757
|
+
name?: string;
|
|
1758
|
+
/**
|
|
1759
|
+
* What the argument accepts. `text` is a plain string, `url` an address, `file` an uploaded file, and `element` an element on the page.
|
|
1760
|
+
* @type {string}
|
|
1761
|
+
* @memberof StepKeywordArgument
|
|
1762
|
+
*/
|
|
1763
|
+
type?: StepKeywordArgumentTypeEnum;
|
|
1764
|
+
/**
|
|
1765
|
+
* 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.
|
|
1766
|
+
* @type {string}
|
|
1767
|
+
* @memberof StepKeywordArgument
|
|
1768
|
+
*/
|
|
1769
|
+
element_type?: string;
|
|
1770
|
+
/**
|
|
1771
|
+
*
|
|
1772
|
+
* @type {boolean}
|
|
1773
|
+
* @memberof StepKeywordArgument
|
|
1774
|
+
*/
|
|
1775
|
+
required?: boolean;
|
|
1776
|
+
}
|
|
1777
|
+
export declare const StepKeywordArgumentTypeEnum: {
|
|
1778
|
+
readonly Text: "text";
|
|
1779
|
+
readonly Url: "url";
|
|
1780
|
+
readonly File: "file";
|
|
1781
|
+
readonly Element: "element";
|
|
1782
|
+
};
|
|
1783
|
+
export type StepKeywordArgumentTypeEnum = (typeof StepKeywordArgumentTypeEnum)[keyof typeof StepKeywordArgumentTypeEnum];
|
|
1784
|
+
/**
|
|
1785
|
+
* A step whose arguments contain the searched text. Exactly one of `scenario` and `step_group` is set, naming where the step is.
|
|
1786
|
+
* @export
|
|
1787
|
+
* @interface StepSearchHit
|
|
1788
|
+
*/
|
|
1789
|
+
export interface StepSearchHit {
|
|
1790
|
+
/**
|
|
1791
|
+
* The step\'s `id`, as `describeScenario` returns it.
|
|
1792
|
+
* @type {number}
|
|
1793
|
+
* @memberof StepSearchHit
|
|
1794
|
+
*/
|
|
1795
|
+
step_id?: number;
|
|
1796
|
+
/**
|
|
1797
|
+
* The step\'s position, counting from 0, in the `steps` that `describeScenario` returns for its scenario or step group.
|
|
1798
|
+
* @type {number}
|
|
1799
|
+
* @memberof StepSearchHit
|
|
1800
|
+
*/
|
|
1801
|
+
step_index?: number;
|
|
1802
|
+
/**
|
|
1803
|
+
*
|
|
1804
|
+
* @type {StepSearchHitScenario}
|
|
1805
|
+
* @memberof StepSearchHit
|
|
1806
|
+
*/
|
|
1807
|
+
scenario?: StepSearchHitScenario | null;
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @type {StepSearchHitStepGroup}
|
|
1811
|
+
* @memberof StepSearchHit
|
|
1812
|
+
*/
|
|
1813
|
+
step_group?: StepSearchHitStepGroup | null;
|
|
1814
|
+
/**
|
|
1815
|
+
* The step\'s keyword in enum form, as `describeScenario` reports it.
|
|
1816
|
+
* @type {string}
|
|
1817
|
+
* @memberof StepSearchHit
|
|
1818
|
+
*/
|
|
1819
|
+
action_type?: string | null;
|
|
1820
|
+
/**
|
|
1821
|
+
* 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.
|
|
1822
|
+
* @type {Array<ScenarioStepArgument>}
|
|
1823
|
+
* @memberof StepSearchHit
|
|
1824
|
+
*/
|
|
1825
|
+
matched_arguments?: Array<ScenarioStepArgument>;
|
|
1826
|
+
/**
|
|
1827
|
+
* 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.
|
|
1828
|
+
* @type {Array<StepSearchHitExecutedByInner>}
|
|
1829
|
+
* @memberof StepSearchHit
|
|
1830
|
+
*/
|
|
1831
|
+
executed_by?: Array<StepSearchHitExecutedByInner> | null;
|
|
1832
|
+
}
|
|
1833
|
+
/**
|
|
1834
|
+
*
|
|
1835
|
+
* @export
|
|
1836
|
+
* @interface StepSearchHitExecutedByInner
|
|
1837
|
+
*/
|
|
1838
|
+
export interface StepSearchHitExecutedByInner {
|
|
1839
|
+
/**
|
|
1840
|
+
*
|
|
1841
|
+
* @type {number}
|
|
1842
|
+
* @memberof StepSearchHitExecutedByInner
|
|
1843
|
+
*/
|
|
1844
|
+
id?: number;
|
|
1845
|
+
/**
|
|
1846
|
+
*
|
|
1847
|
+
* @type {string}
|
|
1848
|
+
* @memberof StepSearchHitExecutedByInner
|
|
1849
|
+
*/
|
|
1850
|
+
name?: string;
|
|
1851
|
+
}
|
|
1852
|
+
/**
|
|
1853
|
+
* The scenario the step is in, or null for a step group\'s step.
|
|
1854
|
+
* @export
|
|
1855
|
+
* @interface StepSearchHitScenario
|
|
1856
|
+
*/
|
|
1857
|
+
export interface StepSearchHitScenario {
|
|
1858
|
+
/**
|
|
1859
|
+
*
|
|
1860
|
+
* @type {number}
|
|
1861
|
+
* @memberof StepSearchHitScenario
|
|
1862
|
+
*/
|
|
1863
|
+
id?: number;
|
|
1864
|
+
/**
|
|
1865
|
+
*
|
|
1866
|
+
* @type {string}
|
|
1867
|
+
* @memberof StepSearchHitScenario
|
|
1868
|
+
*/
|
|
1869
|
+
name?: string;
|
|
1870
|
+
}
|
|
1871
|
+
/**
|
|
1872
|
+
* The step group the step is in, or null for a scenario\'s step. Read it with `describeScenario` using this id.
|
|
1873
|
+
* @export
|
|
1874
|
+
* @interface StepSearchHitStepGroup
|
|
1875
|
+
*/
|
|
1876
|
+
export interface StepSearchHitStepGroup {
|
|
1877
|
+
/**
|
|
1878
|
+
*
|
|
1879
|
+
* @type {number}
|
|
1880
|
+
* @memberof StepSearchHitStepGroup
|
|
1881
|
+
*/
|
|
1882
|
+
id?: number;
|
|
1883
|
+
/**
|
|
1884
|
+
*
|
|
1885
|
+
* @type {string}
|
|
1886
|
+
* @memberof StepSearchHitStepGroup
|
|
1887
|
+
*/
|
|
1888
|
+
name?: string;
|
|
1889
|
+
}
|
|
1890
|
+
/**
|
|
1891
|
+
*
|
|
1892
|
+
* @export
|
|
1893
|
+
* @interface TestCaseResult
|
|
1894
|
+
*/
|
|
1895
|
+
export interface TestCaseResult {
|
|
1896
|
+
/**
|
|
1897
|
+
*
|
|
1898
|
+
* @type {number}
|
|
1899
|
+
* @memberof TestCaseResult
|
|
1900
|
+
*/
|
|
1901
|
+
id?: number;
|
|
1902
|
+
/**
|
|
1903
|
+
*
|
|
1904
|
+
* @type {TestCaseResultStatus}
|
|
1905
|
+
* @memberof TestCaseResult
|
|
1906
|
+
*/
|
|
1907
|
+
status?: TestCaseResultStatus;
|
|
1908
|
+
/**
|
|
1909
|
+
*
|
|
1910
|
+
* @type {number}
|
|
1911
|
+
* @memberof TestCaseResult
|
|
1912
|
+
*/
|
|
1913
|
+
duration?: number;
|
|
1914
|
+
/**
|
|
1915
|
+
*
|
|
1916
|
+
* @type {string}
|
|
1917
|
+
* @memberof TestCaseResult
|
|
1918
|
+
*/
|
|
1919
|
+
started_at?: string;
|
|
1920
|
+
/**
|
|
1921
|
+
*
|
|
1922
|
+
* @type {string}
|
|
1923
|
+
* @memberof TestCaseResult
|
|
1924
|
+
*/
|
|
1925
|
+
finished_at?: string;
|
|
1926
|
+
/**
|
|
1927
|
+
*
|
|
1928
|
+
* @type {string}
|
|
1929
|
+
* @memberof TestCaseResult
|
|
1930
|
+
*/
|
|
1931
|
+
created_at?: string;
|
|
1932
|
+
/**
|
|
1933
|
+
*
|
|
1934
|
+
* @type {string}
|
|
1935
|
+
* @memberof TestCaseResult
|
|
1936
|
+
*/
|
|
1937
|
+
updated_at?: string;
|
|
1938
|
+
/**
|
|
1939
|
+
* ID of the scenario executed.
|
|
1940
|
+
* @type {number}
|
|
1941
|
+
* @memberof TestCaseResult
|
|
1942
|
+
*/
|
|
1943
|
+
test_case_id?: number;
|
|
1944
|
+
/**
|
|
1945
|
+
*
|
|
1946
|
+
* @type {string}
|
|
1947
|
+
* @memberof TestCaseResult
|
|
1948
|
+
*/
|
|
1949
|
+
project_url?: string;
|
|
1950
|
+
/**
|
|
1951
|
+
* Number of "Review needed" flags present in the test results.
|
|
1952
|
+
* @type {number}
|
|
1953
|
+
* @memberof TestCaseResult
|
|
1954
|
+
*/
|
|
1955
|
+
review_needed?: number;
|
|
1956
|
+
/**
|
|
1957
|
+
* Number of credits consumed by this test result. (default 0 for test result created before credit based system)
|
|
1958
|
+
* @type {number}
|
|
1959
|
+
* @memberof TestCaseResult
|
|
1960
|
+
*/
|
|
1961
|
+
number_of_credits_consumed?: number;
|
|
1962
|
+
/**
|
|
1963
|
+
* THIS FEATURE IS FOR LIMITED NUMBER OF CUSTOMERS. Variables imported from previously executed test results in a test plan.
|
|
1964
|
+
* @type {Array<TestCaseResultImportVariablesInner>}
|
|
1965
|
+
* @memberof TestCaseResult
|
|
1966
|
+
*/
|
|
1967
|
+
import_variables?: Array<TestCaseResultImportVariablesInner>;
|
|
1968
|
+
/**
|
|
1969
|
+
* THIS FEATURE IS FOR LIMITED NUMBER OF CUSTOMERS. Variables exported from this test result.
|
|
1970
|
+
* @type {Array<TestCaseResultExportVariablesInner>}
|
|
1971
|
+
* @memberof TestCaseResult
|
|
1972
|
+
*/
|
|
1973
|
+
export_variables?: Array<TestCaseResultExportVariablesInner>;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
*
|
|
1977
|
+
* @export
|
|
1978
|
+
* @interface TestCaseResultDetail
|
|
1979
|
+
*/
|
|
1980
|
+
export interface TestCaseResultDetail {
|
|
1981
|
+
/**
|
|
1982
|
+
*
|
|
1983
|
+
* @type {number}
|
|
1984
|
+
* @memberof TestCaseResultDetail
|
|
1985
|
+
*/
|
|
1986
|
+
id?: number;
|
|
1987
|
+
/**
|
|
1988
|
+
* ID of the scenario (test case) that was executed.
|
|
1989
|
+
* @type {number}
|
|
1990
|
+
* @memberof TestCaseResultDetail
|
|
1991
|
+
*/
|
|
1992
|
+
scenario_id?: number;
|
|
1993
|
+
/**
|
|
1994
|
+
*
|
|
1995
|
+
* @type {TestCaseResultStatus}
|
|
1996
|
+
* @memberof TestCaseResultDetail
|
|
1997
|
+
*/
|
|
1998
|
+
status?: TestCaseResultStatus;
|
|
1999
|
+
/**
|
|
2000
|
+
*
|
|
2001
|
+
* @type {string}
|
|
2002
|
+
* @memberof TestCaseResultDetail
|
|
2003
|
+
*/
|
|
2004
|
+
started_at?: string;
|
|
2005
|
+
/**
|
|
2006
|
+
*
|
|
2007
|
+
* @type {string}
|
|
2008
|
+
* @memberof TestCaseResultDetail
|
|
2009
|
+
*/
|
|
2010
|
+
finished_at?: string;
|
|
2011
|
+
/**
|
|
2012
|
+
*
|
|
2013
|
+
* @type {number}
|
|
2014
|
+
* @memberof TestCaseResultDetail
|
|
2015
|
+
*/
|
|
2016
|
+
duration?: number;
|
|
2017
|
+
/**
|
|
2018
|
+
*
|
|
2019
|
+
* @type {string}
|
|
2020
|
+
* @memberof TestCaseResultDetail
|
|
2021
|
+
*/
|
|
2022
|
+
project_url?: string;
|
|
2023
|
+
/**
|
|
2024
|
+
*
|
|
2025
|
+
* @type {Capability}
|
|
2026
|
+
* @memberof TestCaseResultDetail
|
|
2027
|
+
*/
|
|
2028
|
+
capability?: Capability;
|
|
2029
|
+
/**
|
|
2030
|
+
*
|
|
2031
|
+
* @type {Array<TestCaseResultStep>}
|
|
2032
|
+
* @memberof TestCaseResultDetail
|
|
2033
|
+
*/
|
|
2034
|
+
steps?: Array<TestCaseResultStep>;
|
|
2035
|
+
}
|
|
2036
|
+
/**
|
|
2037
|
+
*
|
|
2038
|
+
* @export
|
|
2039
|
+
* @interface TestCaseResultExportVariablesInner
|
|
2040
|
+
*/
|
|
2041
|
+
export interface TestCaseResultExportVariablesInner {
|
|
2042
|
+
/**
|
|
2043
|
+
*
|
|
2044
|
+
* @type {string}
|
|
2045
|
+
* @memberof TestCaseResultExportVariablesInner
|
|
2046
|
+
*/
|
|
2047
|
+
key?: string;
|
|
2048
|
+
/**
|
|
2049
|
+
*
|
|
2050
|
+
* @type {string}
|
|
2051
|
+
* @memberof TestCaseResultExportVariablesInner
|
|
2052
|
+
*/
|
|
2053
|
+
value?: string;
|
|
2054
|
+
}
|
|
2055
|
+
/**
|
|
2056
|
+
*
|
|
2057
|
+
* @export
|
|
2058
|
+
* @interface TestCaseResultImportVariablesInner
|
|
2059
|
+
*/
|
|
2060
|
+
export interface TestCaseResultImportVariablesInner {
|
|
2061
|
+
/**
|
|
2062
|
+
*
|
|
2063
|
+
* @type {string}
|
|
2064
|
+
* @memberof TestCaseResultImportVariablesInner
|
|
2065
|
+
*/
|
|
2066
|
+
key?: string;
|
|
2067
|
+
/**
|
|
2068
|
+
*
|
|
1218
2069
|
* @type {string}
|
|
1219
2070
|
* @memberof TestCaseResultImportVariablesInner
|
|
1220
2071
|
*/
|
|
@@ -1260,6 +2111,168 @@ export declare const TestCaseResultStatus: {
|
|
|
1260
2111
|
readonly Canceled: "canceled";
|
|
1261
2112
|
};
|
|
1262
2113
|
export type TestCaseResultStatus = (typeof TestCaseResultStatus)[keyof typeof TestCaseResultStatus];
|
|
2114
|
+
/**
|
|
2115
|
+
*
|
|
2116
|
+
* @export
|
|
2117
|
+
* @interface TestCaseResultStep
|
|
2118
|
+
*/
|
|
2119
|
+
export interface TestCaseResultStep {
|
|
2120
|
+
/**
|
|
2121
|
+
* Step number within the executed test case, matching the numbering shown in the result UI and returned by `describeResult` (`get_details`). Steps inside a step group collapse onto one first-level number and get a sub-number, e.g. "1", "2", "3-1", "3-2".
|
|
2122
|
+
* @type {string}
|
|
2123
|
+
* @memberof TestCaseResultStep
|
|
2124
|
+
*/
|
|
2125
|
+
index?: string;
|
|
2126
|
+
/**
|
|
2127
|
+
* ID of the scenario step this ran, the same identifier `describeScenario` returns as a step\'s `id`.
|
|
2128
|
+
* @type {number}
|
|
2129
|
+
* @memberof TestCaseResultStep
|
|
2130
|
+
*/
|
|
2131
|
+
id?: number;
|
|
2132
|
+
/**
|
|
2133
|
+
* Identifier that is unique even when the step runs inside a step group.
|
|
2134
|
+
* @type {string}
|
|
2135
|
+
* @memberof TestCaseResultStep
|
|
2136
|
+
*/
|
|
2137
|
+
composite_id?: string;
|
|
2138
|
+
/**
|
|
2139
|
+
* Human-readable name of the step.
|
|
2140
|
+
* @type {string}
|
|
2141
|
+
* @memberof TestCaseResultStep
|
|
2142
|
+
*/
|
|
2143
|
+
name?: string;
|
|
2144
|
+
/**
|
|
2145
|
+
* What the run does when this step fails.
|
|
2146
|
+
* @type {string}
|
|
2147
|
+
* @memberof TestCaseResultStep
|
|
2148
|
+
*/
|
|
2149
|
+
on_failure?: TestCaseResultStepOnFailureEnum;
|
|
2150
|
+
/**
|
|
2151
|
+
* Whether the step runs as part of the scenario or as a cleanup step afterwards.
|
|
2152
|
+
* @type {string}
|
|
2153
|
+
* @memberof TestCaseResultStep
|
|
2154
|
+
*/
|
|
2155
|
+
step_execution_type?: TestCaseResultStepStepExecutionTypeEnum;
|
|
2156
|
+
/**
|
|
2157
|
+
* 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.
|
|
2158
|
+
* @type {string}
|
|
2159
|
+
* @memberof TestCaseResultStep
|
|
2160
|
+
*/
|
|
2161
|
+
action_type?: string;
|
|
2162
|
+
/**
|
|
2163
|
+
* 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 `******`.
|
|
2164
|
+
* @type {Array<ResultStepArgument>}
|
|
2165
|
+
* @memberof TestCaseResultStep
|
|
2166
|
+
*/
|
|
2167
|
+
arguments?: Array<ResultStepArgument>;
|
|
2168
|
+
/**
|
|
2169
|
+
* Result of the step.
|
|
2170
|
+
* @type {string}
|
|
2171
|
+
* @memberof TestCaseResultStep
|
|
2172
|
+
*/
|
|
2173
|
+
status?: TestCaseResultStepStatusEnum;
|
|
2174
|
+
/**
|
|
2175
|
+
* Error message when the step failed.
|
|
2176
|
+
* @type {string}
|
|
2177
|
+
* @memberof TestCaseResultStep
|
|
2178
|
+
*/
|
|
2179
|
+
error_message?: string | null;
|
|
2180
|
+
/**
|
|
2181
|
+
*
|
|
2182
|
+
* @type {TestCaseResultStepMatch}
|
|
2183
|
+
* @memberof TestCaseResultStep
|
|
2184
|
+
*/
|
|
2185
|
+
match?: TestCaseResultStepMatch | null;
|
|
2186
|
+
/**
|
|
2187
|
+
* 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.
|
|
2188
|
+
* @type {Array<TestCaseResultStepUrlEventsInner>}
|
|
2189
|
+
* @memberof TestCaseResultStep
|
|
2190
|
+
*/
|
|
2191
|
+
url_events?: Array<TestCaseResultStepUrlEventsInner>;
|
|
2192
|
+
/**
|
|
2193
|
+
* 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.
|
|
2194
|
+
* @type {string}
|
|
2195
|
+
* @memberof TestCaseResultStep
|
|
2196
|
+
*/
|
|
2197
|
+
screenshot_url?: string | null;
|
|
2198
|
+
}
|
|
2199
|
+
export declare const TestCaseResultStepOnFailureEnum: {
|
|
2200
|
+
readonly Abort: "abort";
|
|
2201
|
+
readonly Continue: "continue";
|
|
2202
|
+
readonly Ignore: "ignore";
|
|
2203
|
+
};
|
|
2204
|
+
export type TestCaseResultStepOnFailureEnum = (typeof TestCaseResultStepOnFailureEnum)[keyof typeof TestCaseResultStepOnFailureEnum];
|
|
2205
|
+
export declare const TestCaseResultStepStepExecutionTypeEnum: {
|
|
2206
|
+
readonly ScenarioStep: "scenario_step";
|
|
2207
|
+
readonly CleanupStep: "cleanup_step";
|
|
2208
|
+
};
|
|
2209
|
+
export type TestCaseResultStepStepExecutionTypeEnum = (typeof TestCaseResultStepStepExecutionTypeEnum)[keyof typeof TestCaseResultStepStepExecutionTypeEnum];
|
|
2210
|
+
export declare const TestCaseResultStepStatusEnum: {
|
|
2211
|
+
readonly Passed: "passed";
|
|
2212
|
+
readonly Failed: "failed";
|
|
2213
|
+
readonly Skipped: "skipped";
|
|
2214
|
+
};
|
|
2215
|
+
export type TestCaseResultStepStatusEnum = (typeof TestCaseResultStepStatusEnum)[keyof typeof TestCaseResultStepStatusEnum];
|
|
2216
|
+
/**
|
|
2217
|
+
* 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.
|
|
2218
|
+
* @export
|
|
2219
|
+
* @interface TestCaseResultStepMatch
|
|
2220
|
+
*/
|
|
2221
|
+
export interface TestCaseResultStepMatch {
|
|
2222
|
+
/**
|
|
2223
|
+
* How Autify found the element: `user_locator` when it matched the locator you specified on the step, `automatic` when Autify matched it for you.
|
|
2224
|
+
* @type {string}
|
|
2225
|
+
* @memberof TestCaseResultStepMatch
|
|
2226
|
+
*/
|
|
2227
|
+
located_by?: TestCaseResultStepMatchLocatedByEnum;
|
|
2228
|
+
/**
|
|
2229
|
+
* How confident Autify was in the element it matched. Around 1 is an exact match; lower means a looser one.
|
|
2230
|
+
* @type {number}
|
|
2231
|
+
* @memberof TestCaseResultStepMatch
|
|
2232
|
+
*/
|
|
2233
|
+
confidence?: number | null;
|
|
2234
|
+
/**
|
|
2235
|
+
* 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.
|
|
2236
|
+
* @type {Array<string>}
|
|
2237
|
+
* @memberof TestCaseResultStepMatch
|
|
2238
|
+
*/
|
|
2239
|
+
candidate_locators?: Array<string> | null;
|
|
2240
|
+
}
|
|
2241
|
+
export declare const TestCaseResultStepMatchLocatedByEnum: {
|
|
2242
|
+
readonly UserLocator: "user_locator";
|
|
2243
|
+
readonly Automatic: "automatic";
|
|
2244
|
+
};
|
|
2245
|
+
export type TestCaseResultStepMatchLocatedByEnum = (typeof TestCaseResultStepMatchLocatedByEnum)[keyof typeof TestCaseResultStepMatchLocatedByEnum];
|
|
2246
|
+
/**
|
|
2247
|
+
*
|
|
2248
|
+
* @export
|
|
2249
|
+
* @interface TestCaseResultStepUrlEventsInner
|
|
2250
|
+
*/
|
|
2251
|
+
export interface TestCaseResultStepUrlEventsInner {
|
|
2252
|
+
/**
|
|
2253
|
+
*
|
|
2254
|
+
* @type {string}
|
|
2255
|
+
* @memberof TestCaseResultStepUrlEventsInner
|
|
2256
|
+
*/
|
|
2257
|
+
timing?: TestCaseResultStepUrlEventsInnerTimingEnum;
|
|
2258
|
+
/**
|
|
2259
|
+
*
|
|
2260
|
+
* @type {string}
|
|
2261
|
+
* @memberof TestCaseResultStepUrlEventsInner
|
|
2262
|
+
*/
|
|
2263
|
+
url?: string;
|
|
2264
|
+
/**
|
|
2265
|
+
* Unix timestamp in milliseconds.
|
|
2266
|
+
* @type {number}
|
|
2267
|
+
* @memberof TestCaseResultStepUrlEventsInner
|
|
2268
|
+
*/
|
|
2269
|
+
at?: number;
|
|
2270
|
+
}
|
|
2271
|
+
export declare const TestCaseResultStepUrlEventsInnerTimingEnum: {
|
|
2272
|
+
readonly StepStart: "stepStart";
|
|
2273
|
+
readonly StepEnd: "stepEnd";
|
|
2274
|
+
};
|
|
2275
|
+
export type TestCaseResultStepUrlEventsInnerTimingEnum = (typeof TestCaseResultStepUrlEventsInnerTimingEnum)[keyof typeof TestCaseResultStepUrlEventsInnerTimingEnum];
|
|
1263
2276
|
/**
|
|
1264
2277
|
*
|
|
1265
2278
|
* @export
|
|
@@ -1448,12 +2461,50 @@ export declare const TimezoneEnum: {
|
|
|
1448
2461
|
readonly EtcUtc: "Etc/UTC";
|
|
1449
2462
|
};
|
|
1450
2463
|
export type TimezoneEnum = (typeof TimezoneEnum)[keyof typeof TimezoneEnum];
|
|
2464
|
+
/**
|
|
2465
|
+
*
|
|
2466
|
+
* @export
|
|
2467
|
+
* @interface UpdateScenario412Response
|
|
2468
|
+
*/
|
|
2469
|
+
export interface UpdateScenario412Response {
|
|
2470
|
+
/**
|
|
2471
|
+
*
|
|
2472
|
+
* @type {Array<UpdateScenario412ResponseErrorsInner>}
|
|
2473
|
+
* @memberof UpdateScenario412Response
|
|
2474
|
+
*/
|
|
2475
|
+
errors?: Array<UpdateScenario412ResponseErrorsInner>;
|
|
2476
|
+
}
|
|
2477
|
+
/**
|
|
2478
|
+
*
|
|
2479
|
+
* @export
|
|
2480
|
+
* @interface UpdateScenario412ResponseErrorsInner
|
|
2481
|
+
*/
|
|
2482
|
+
export interface UpdateScenario412ResponseErrorsInner {
|
|
2483
|
+
/**
|
|
2484
|
+
*
|
|
2485
|
+
* @type {number}
|
|
2486
|
+
* @memberof UpdateScenario412ResponseErrorsInner
|
|
2487
|
+
*/
|
|
2488
|
+
code?: number;
|
|
2489
|
+
/**
|
|
2490
|
+
*
|
|
2491
|
+
* @type {string}
|
|
2492
|
+
* @memberof UpdateScenario412ResponseErrorsInner
|
|
2493
|
+
*/
|
|
2494
|
+
message?: string;
|
|
2495
|
+
}
|
|
1451
2496
|
/**
|
|
1452
2497
|
*
|
|
1453
2498
|
* @export
|
|
1454
2499
|
* @interface UpdateScenarioRequest
|
|
1455
2500
|
*/
|
|
1456
2501
|
export interface UpdateScenarioRequest {
|
|
2502
|
+
/**
|
|
2503
|
+
* 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.
|
|
2504
|
+
* @type {string}
|
|
2505
|
+
* @memberof UpdateScenarioRequest
|
|
2506
|
+
*/
|
|
2507
|
+
version_token?: string;
|
|
1457
2508
|
/**
|
|
1458
2509
|
*
|
|
1459
2510
|
* @type {string}
|
|
@@ -1467,11 +2518,17 @@ export interface UpdateScenarioRequest {
|
|
|
1467
2518
|
*/
|
|
1468
2519
|
description?: string;
|
|
1469
2520
|
/**
|
|
1470
|
-
*
|
|
2521
|
+
* 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
2522
|
* @type {Array<string>}
|
|
1472
2523
|
* @memberof UpdateScenarioRequest
|
|
1473
2524
|
*/
|
|
1474
2525
|
labels?: Array<string>;
|
|
2526
|
+
/**
|
|
2527
|
+
* 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.
|
|
2528
|
+
* @type {boolean}
|
|
2529
|
+
* @memberof UpdateScenarioRequest
|
|
2530
|
+
*/
|
|
2531
|
+
on_create?: boolean;
|
|
1475
2532
|
}
|
|
1476
2533
|
/**
|
|
1477
2534
|
*
|
|
@@ -1891,6 +2948,12 @@ export declare const ProjectApiAxiosParamCreator: (configuration?: Configuration
|
|
|
1891
2948
|
* @throws {RequiredError}
|
|
1892
2949
|
*/
|
|
1893
2950
|
getProjectInfo: (projectId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2951
|
+
/**
|
|
2952
|
+
* 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.
|
|
2953
|
+
* @param {*} [options] Override http request option.
|
|
2954
|
+
* @throws {RequiredError}
|
|
2955
|
+
*/
|
|
2956
|
+
listProjects: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1894
2957
|
};
|
|
1895
2958
|
/**
|
|
1896
2959
|
* ProjectApi - functional programming interface
|
|
@@ -1904,6 +2967,12 @@ export declare const ProjectApiFp: (configuration?: Configuration) => {
|
|
|
1904
2967
|
* @throws {RequiredError}
|
|
1905
2968
|
*/
|
|
1906
2969
|
getProjectInfo(projectId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProjectInfo>>;
|
|
2970
|
+
/**
|
|
2971
|
+
* 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.
|
|
2972
|
+
* @param {*} [options] Override http request option.
|
|
2973
|
+
* @throws {RequiredError}
|
|
2974
|
+
*/
|
|
2975
|
+
listProjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Project>>>;
|
|
1907
2976
|
};
|
|
1908
2977
|
/**
|
|
1909
2978
|
* ProjectApi - factory interface
|
|
@@ -1917,6 +2986,12 @@ export declare const ProjectApiFactory: (configuration?: Configuration, basePath
|
|
|
1917
2986
|
* @throws {RequiredError}
|
|
1918
2987
|
*/
|
|
1919
2988
|
getProjectInfo(projectId: number, options?: any): AxiosPromise<ProjectInfo>;
|
|
2989
|
+
/**
|
|
2990
|
+
* 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.
|
|
2991
|
+
* @param {*} [options] Override http request option.
|
|
2992
|
+
* @throws {RequiredError}
|
|
2993
|
+
*/
|
|
2994
|
+
listProjects(options?: any): AxiosPromise<Array<Project>>;
|
|
1920
2995
|
};
|
|
1921
2996
|
/**
|
|
1922
2997
|
* ProjectApi - object-oriented interface
|
|
@@ -1933,6 +3008,13 @@ export declare class ProjectApi extends BaseAPI {
|
|
|
1933
3008
|
* @memberof ProjectApi
|
|
1934
3009
|
*/
|
|
1935
3010
|
getProjectInfo(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProjectInfo, any, {}>>;
|
|
3011
|
+
/**
|
|
3012
|
+
* 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.
|
|
3013
|
+
* @param {*} [options] Override http request option.
|
|
3014
|
+
* @throws {RequiredError}
|
|
3015
|
+
* @memberof ProjectApi
|
|
3016
|
+
*/
|
|
3017
|
+
listProjects(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Project[], any, {}>>;
|
|
1936
3018
|
}
|
|
1937
3019
|
/**
|
|
1938
3020
|
* ResultApi - axios parameter creator
|
|
@@ -1945,10 +3027,20 @@ export declare const ResultApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1945
3027
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1946
3028
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1947
3029
|
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
3030
|
+
* @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.
|
|
3031
|
+
* @param {*} [options] Override http request option.
|
|
3032
|
+
* @throws {RequiredError}
|
|
3033
|
+
*/
|
|
3034
|
+
describeResult: (projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3035
|
+
/**
|
|
3036
|
+
* 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. The localized label the UI shows appears only in `describeResult` (`get_details`). Values typed into a password field are returned as `******`.
|
|
3037
|
+
* @summary Get the steps and element locators of a test case result.
|
|
3038
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3039
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
1948
3040
|
* @param {*} [options] Override http request option.
|
|
1949
3041
|
* @throws {RequiredError}
|
|
1950
3042
|
*/
|
|
1951
|
-
|
|
3043
|
+
describeTestCaseResult: (projectId: number, testCaseResultId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1952
3044
|
/**
|
|
1953
3045
|
* List test results.
|
|
1954
3046
|
* @summary List test results.
|
|
@@ -1960,6 +3052,26 @@ export declare const ResultApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
1960
3052
|
* @throws {RequiredError}
|
|
1961
3053
|
*/
|
|
1962
3054
|
listResults: (projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3055
|
+
/**
|
|
3056
|
+
* 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.
|
|
3057
|
+
* @summary List the test results of one scenario.
|
|
3058
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3059
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3060
|
+
* @param {number} [page] The number of page returns.
|
|
3061
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3062
|
+
* @param {*} [options] Override http request option.
|
|
3063
|
+
* @throws {RequiredError}
|
|
3064
|
+
*/
|
|
3065
|
+
listScenarioResults: (projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3066
|
+
/**
|
|
3067
|
+
* 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.
|
|
3068
|
+
* @summary Rerun the failed test cases of a test result.
|
|
3069
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3070
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
*/
|
|
3074
|
+
rerunFailedTestCases: (projectId: number, resultId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
1963
3075
|
};
|
|
1964
3076
|
/**
|
|
1965
3077
|
* ResultApi - functional programming interface
|
|
@@ -1972,21 +3084,51 @@ export declare const ResultApiFp: (configuration?: Configuration) => {
|
|
|
1972
3084
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1973
3085
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1974
3086
|
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
3087
|
+
* @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.
|
|
3088
|
+
* @param {*} [options] Override http request option.
|
|
3089
|
+
* @throws {RequiredError}
|
|
3090
|
+
*/
|
|
3091
|
+
describeResult(projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DescribeResult200Response>>;
|
|
3092
|
+
/**
|
|
3093
|
+
* 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. The localized label the UI shows appears only in `describeResult` (`get_details`). Values typed into a password field are returned as `******`.
|
|
3094
|
+
* @summary Get the steps and element locators of a test case result.
|
|
3095
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3096
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
3097
|
+
* @param {*} [options] Override http request option.
|
|
3098
|
+
* @throws {RequiredError}
|
|
3099
|
+
*/
|
|
3100
|
+
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TestCaseResultDetail>>;
|
|
3101
|
+
/**
|
|
3102
|
+
* List test results.
|
|
3103
|
+
* @summary List test results.
|
|
3104
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results
|
|
3105
|
+
* @param {number} [page] The number of page returns.
|
|
3106
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3107
|
+
* @param {number} [testPlanId] Test plan ID used to filter results.
|
|
3108
|
+
* @param {*} [options] Override http request option.
|
|
3109
|
+
* @throws {RequiredError}
|
|
3110
|
+
*/
|
|
3111
|
+
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<TestPlanResult>>>;
|
|
3112
|
+
/**
|
|
3113
|
+
* 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.
|
|
3114
|
+
* @summary List the test results of one scenario.
|
|
3115
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3116
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3117
|
+
* @param {number} [page] The number of page returns.
|
|
3118
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
1975
3119
|
* @param {*} [options] Override http request option.
|
|
1976
3120
|
* @throws {RequiredError}
|
|
1977
3121
|
*/
|
|
1978
|
-
|
|
3122
|
+
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioTestCaseResult>>>;
|
|
1979
3123
|
/**
|
|
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.
|
|
3124
|
+
* 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.
|
|
3125
|
+
* @summary Rerun the failed test cases of a test result.
|
|
3126
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3127
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
1986
3128
|
* @param {*} [options] Override http request option.
|
|
1987
3129
|
* @throws {RequiredError}
|
|
1988
3130
|
*/
|
|
1989
|
-
|
|
3131
|
+
rerunFailedTestCases(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteScenariosResult>>;
|
|
1990
3132
|
};
|
|
1991
3133
|
/**
|
|
1992
3134
|
* ResultApi - factory interface
|
|
@@ -1999,10 +3141,20 @@ export declare const ResultApiFactory: (configuration?: Configuration, basePath?
|
|
|
1999
3141
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
2000
3142
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
2001
3143
|
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
3144
|
+
* @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.
|
|
3145
|
+
* @param {*} [options] Override http request option.
|
|
3146
|
+
* @throws {RequiredError}
|
|
3147
|
+
*/
|
|
3148
|
+
describeResult(projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: any): AxiosPromise<DescribeResult200Response>;
|
|
3149
|
+
/**
|
|
3150
|
+
* 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. The localized label the UI shows appears only in `describeResult` (`get_details`). Values typed into a password field are returned as `******`.
|
|
3151
|
+
* @summary Get the steps and element locators of a test case result.
|
|
3152
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3153
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
2002
3154
|
* @param {*} [options] Override http request option.
|
|
2003
3155
|
* @throws {RequiredError}
|
|
2004
3156
|
*/
|
|
2005
|
-
|
|
3157
|
+
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: any): AxiosPromise<TestCaseResultDetail>;
|
|
2006
3158
|
/**
|
|
2007
3159
|
* List test results.
|
|
2008
3160
|
* @summary List test results.
|
|
@@ -2014,6 +3166,26 @@ export declare const ResultApiFactory: (configuration?: Configuration, basePath?
|
|
|
2014
3166
|
* @throws {RequiredError}
|
|
2015
3167
|
*/
|
|
2016
3168
|
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: any): AxiosPromise<Array<TestPlanResult>>;
|
|
3169
|
+
/**
|
|
3170
|
+
* 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.
|
|
3171
|
+
* @summary List the test results of one scenario.
|
|
3172
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3173
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3174
|
+
* @param {number} [page] The number of page returns.
|
|
3175
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3176
|
+
* @param {*} [options] Override http request option.
|
|
3177
|
+
* @throws {RequiredError}
|
|
3178
|
+
*/
|
|
3179
|
+
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: any): AxiosPromise<Array<ScenarioTestCaseResult>>;
|
|
3180
|
+
/**
|
|
3181
|
+
* 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.
|
|
3182
|
+
* @summary Rerun the failed test cases of a test result.
|
|
3183
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3184
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3185
|
+
* @param {*} [options] Override http request option.
|
|
3186
|
+
* @throws {RequiredError}
|
|
3187
|
+
*/
|
|
3188
|
+
rerunFailedTestCases(projectId: number, resultId: number, options?: any): AxiosPromise<ExecuteScenariosResult>;
|
|
2017
3189
|
};
|
|
2018
3190
|
/**
|
|
2019
3191
|
* ResultApi - object-oriented interface
|
|
@@ -2028,11 +3200,22 @@ export declare class ResultApi extends BaseAPI {
|
|
|
2028
3200
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
2029
3201
|
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
2030
3202
|
* @param {boolean} [getDetails] The flag to get details of the test case result.
|
|
3203
|
+
* @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.
|
|
3204
|
+
* @param {*} [options] Override http request option.
|
|
3205
|
+
* @throws {RequiredError}
|
|
3206
|
+
* @memberof ResultApi
|
|
3207
|
+
*/
|
|
3208
|
+
describeResult(projectId: number, resultId: number, getDetails?: boolean, statuses?: Array<"failed" | "internal_error" | "review_needed">, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DescribeResult200Response, any, {}>>;
|
|
3209
|
+
/**
|
|
3210
|
+
* 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. The localized label the UI shows appears only in `describeResult` (`get_details`). Values typed into a password field are returned as `******`.
|
|
3211
|
+
* @summary Get the steps and element locators of a test case result.
|
|
3212
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3213
|
+
* @param {number} testCaseResultId The ID of the test case result. Obtainable from the `test_case_results[].id` field of `describeResult`.
|
|
2031
3214
|
* @param {*} [options] Override http request option.
|
|
2032
3215
|
* @throws {RequiredError}
|
|
2033
3216
|
* @memberof ResultApi
|
|
2034
3217
|
*/
|
|
2035
|
-
|
|
3218
|
+
describeTestCaseResult(projectId: number, testCaseResultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestCaseResultDetail, any, {}>>;
|
|
2036
3219
|
/**
|
|
2037
3220
|
* List test results.
|
|
2038
3221
|
* @summary List test results.
|
|
@@ -2045,6 +3228,28 @@ export declare class ResultApi extends BaseAPI {
|
|
|
2045
3228
|
* @memberof ResultApi
|
|
2046
3229
|
*/
|
|
2047
3230
|
listResults(projectId: number, page?: number, perPage?: number, testPlanId?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TestPlanResult[], any, {}>>;
|
|
3231
|
+
/**
|
|
3232
|
+
* 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.
|
|
3233
|
+
* @summary List the test results of one scenario.
|
|
3234
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3235
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3236
|
+
* @param {number} [page] The number of page returns.
|
|
3237
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3238
|
+
* @param {*} [options] Override http request option.
|
|
3239
|
+
* @throws {RequiredError}
|
|
3240
|
+
* @memberof ResultApi
|
|
3241
|
+
*/
|
|
3242
|
+
listScenarioResults(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioTestCaseResult[], any, {}>>;
|
|
3243
|
+
/**
|
|
3244
|
+
* 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.
|
|
3245
|
+
* @summary Rerun the failed test cases of a test result.
|
|
3246
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3247
|
+
* @param {number} resultId For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
3248
|
+
* @param {*} [options] Override http request option.
|
|
3249
|
+
* @throws {RequiredError}
|
|
3250
|
+
* @memberof ResultApi
|
|
3251
|
+
*/
|
|
3252
|
+
rerunFailedTestCases(projectId: number, resultId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}>>;
|
|
2048
3253
|
}
|
|
2049
3254
|
/**
|
|
2050
3255
|
* ScenarioApi - axios parameter creator
|
|
@@ -2052,13 +3257,39 @@ export declare class ResultApi extends BaseAPI {
|
|
|
2052
3257
|
*/
|
|
2053
3258
|
export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2054
3259
|
/**
|
|
2055
|
-
*
|
|
3260
|
+
* 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.
|
|
3261
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3262
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
3263
|
+
* @param {*} [options] Override http request option.
|
|
3264
|
+
* @throws {RequiredError}
|
|
3265
|
+
*/
|
|
3266
|
+
createScenario: (projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3267
|
+
/**
|
|
3268
|
+
* 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.
|
|
3269
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3270
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3271
|
+
* @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.
|
|
3272
|
+
* @param {*} [options] Override http request option.
|
|
3273
|
+
* @throws {RequiredError}
|
|
3274
|
+
*/
|
|
3275
|
+
deleteScenario: (projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3276
|
+
/**
|
|
3277
|
+
* 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
3278
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2057
3279
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2058
3280
|
* @param {*} [options] Override http request option.
|
|
2059
3281
|
* @throws {RequiredError}
|
|
2060
3282
|
*/
|
|
2061
3283
|
describeScenario: (projectId: number, scenarioId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3284
|
+
/**
|
|
3285
|
+
* 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.
|
|
3286
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3287
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3288
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3289
|
+
* @param {*} [options] Override http request option.
|
|
3290
|
+
* @throws {RequiredError}
|
|
3291
|
+
*/
|
|
3292
|
+
describeScenarioHistory: (projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2062
3293
|
/**
|
|
2063
3294
|
* Duplicate a scenario.
|
|
2064
3295
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2075,6 +3306,16 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2075
3306
|
* @throws {RequiredError}
|
|
2076
3307
|
*/
|
|
2077
3308
|
executeScenarios: (projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3309
|
+
/**
|
|
3310
|
+
* 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.
|
|
3311
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3312
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3313
|
+
* @param {number} [page] The number of page returns.
|
|
3314
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3315
|
+
* @param {*} [options] Override http request option.
|
|
3316
|
+
* @throws {RequiredError}
|
|
3317
|
+
*/
|
|
3318
|
+
listScenarioHistories: (projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2078
3319
|
/**
|
|
2079
3320
|
* List scenarios.
|
|
2080
3321
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2083,6 +3324,43 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2083
3324
|
* @throws {RequiredError}
|
|
2084
3325
|
*/
|
|
2085
3326
|
listScenarios: (projectId: number, page?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3327
|
+
/**
|
|
3328
|
+
* 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.
|
|
3329
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3330
|
+
* @param {*} [options] Override http request option.
|
|
3331
|
+
* @throws {RequiredError}
|
|
3332
|
+
*/
|
|
3333
|
+
listStepKeywords: (projectId: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3334
|
+
/**
|
|
3335
|
+
* 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.
|
|
3336
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3337
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3338
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
3339
|
+
* @param {*} [options] Override http request option.
|
|
3340
|
+
* @throws {RequiredError}
|
|
3341
|
+
*/
|
|
3342
|
+
replaceScenarioSteps: (projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3343
|
+
/**
|
|
3344
|
+
* 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.
|
|
3345
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3346
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3347
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3348
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
3349
|
+
* @param {*} [options] Override http request option.
|
|
3350
|
+
* @throws {RequiredError}
|
|
3351
|
+
*/
|
|
3352
|
+
restoreScenarioHistory: (projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
3353
|
+
/**
|
|
3354
|
+
* 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`.
|
|
3355
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3356
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
3357
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
3358
|
+
* @param {number} [page] The number of page returns.
|
|
3359
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3360
|
+
* @param {*} [options] Override http request option.
|
|
3361
|
+
* @throws {RequiredError}
|
|
3362
|
+
*/
|
|
3363
|
+
searchSteps: (projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
2086
3364
|
/**
|
|
2087
3365
|
* Update a scenario.
|
|
2088
3366
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2099,13 +3377,39 @@ export declare const ScenarioApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2099
3377
|
*/
|
|
2100
3378
|
export declare const ScenarioApiFp: (configuration?: Configuration) => {
|
|
2101
3379
|
/**
|
|
2102
|
-
*
|
|
3380
|
+
* 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.
|
|
3381
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3382
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
3383
|
+
* @param {*} [options] Override http request option.
|
|
3384
|
+
* @throws {RequiredError}
|
|
3385
|
+
*/
|
|
3386
|
+
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
|
|
3387
|
+
/**
|
|
3388
|
+
* 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.
|
|
3389
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3390
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3391
|
+
* @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.
|
|
3392
|
+
* @param {*} [options] Override http request option.
|
|
3393
|
+
* @throws {RequiredError}
|
|
3394
|
+
*/
|
|
3395
|
+
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>>;
|
|
3396
|
+
/**
|
|
3397
|
+
* 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
3398
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2104
3399
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2105
3400
|
* @param {*} [options] Override http request option.
|
|
2106
3401
|
* @throws {RequiredError}
|
|
2107
3402
|
*/
|
|
2108
3403
|
describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
|
|
3404
|
+
/**
|
|
3405
|
+
* 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.
|
|
3406
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3407
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3408
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3409
|
+
* @param {*} [options] Override http request option.
|
|
3410
|
+
* @throws {RequiredError}
|
|
3411
|
+
*/
|
|
3412
|
+
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioHistoryDetail>>;
|
|
2109
3413
|
/**
|
|
2110
3414
|
* Duplicate a scenario.
|
|
2111
3415
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2122,6 +3426,16 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
|
|
|
2122
3426
|
* @throws {RequiredError}
|
|
2123
3427
|
*/
|
|
2124
3428
|
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteScenariosResult>>;
|
|
3429
|
+
/**
|
|
3430
|
+
* 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.
|
|
3431
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3432
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3433
|
+
* @param {number} [page] The number of page returns.
|
|
3434
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3435
|
+
* @param {*} [options] Override http request option.
|
|
3436
|
+
* @throws {RequiredError}
|
|
3437
|
+
*/
|
|
3438
|
+
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ScenarioHistory>>>;
|
|
2125
3439
|
/**
|
|
2126
3440
|
* List scenarios.
|
|
2127
3441
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2130,6 +3444,43 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
|
|
|
2130
3444
|
* @throws {RequiredError}
|
|
2131
3445
|
*/
|
|
2132
3446
|
listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Scenario>>>;
|
|
3447
|
+
/**
|
|
3448
|
+
* 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.
|
|
3449
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3450
|
+
* @param {*} [options] Override http request option.
|
|
3451
|
+
* @throws {RequiredError}
|
|
3452
|
+
*/
|
|
3453
|
+
listStepKeywords(projectId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<StepKeyword>>>;
|
|
3454
|
+
/**
|
|
3455
|
+
* 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.
|
|
3456
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3457
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3458
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
3459
|
+
* @param {*} [options] Override http request option.
|
|
3460
|
+
* @throws {RequiredError}
|
|
3461
|
+
*/
|
|
3462
|
+
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
|
|
3463
|
+
/**
|
|
3464
|
+
* 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.
|
|
3465
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3466
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3467
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3468
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
3469
|
+
* @param {*} [options] Override http request option.
|
|
3470
|
+
* @throws {RequiredError}
|
|
3471
|
+
*/
|
|
3472
|
+
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScenarioDetail>>;
|
|
3473
|
+
/**
|
|
3474
|
+
* 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`.
|
|
3475
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3476
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
3477
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
3478
|
+
* @param {number} [page] The number of page returns.
|
|
3479
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3480
|
+
* @param {*} [options] Override http request option.
|
|
3481
|
+
* @throws {RequiredError}
|
|
3482
|
+
*/
|
|
3483
|
+
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<StepSearchHit>>>;
|
|
2133
3484
|
/**
|
|
2134
3485
|
* Update a scenario.
|
|
2135
3486
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2146,13 +3497,39 @@ export declare const ScenarioApiFp: (configuration?: Configuration) => {
|
|
|
2146
3497
|
*/
|
|
2147
3498
|
export declare const ScenarioApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2148
3499
|
/**
|
|
2149
|
-
*
|
|
3500
|
+
* 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.
|
|
3501
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3502
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
3503
|
+
* @param {*} [options] Override http request option.
|
|
3504
|
+
* @throws {RequiredError}
|
|
3505
|
+
*/
|
|
3506
|
+
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: any): AxiosPromise<ScenarioDetail>;
|
|
3507
|
+
/**
|
|
3508
|
+
* 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.
|
|
3509
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3510
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3511
|
+
* @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.
|
|
3512
|
+
* @param {*} [options] Override http request option.
|
|
3513
|
+
* @throws {RequiredError}
|
|
3514
|
+
*/
|
|
3515
|
+
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: any): AxiosPromise<string>;
|
|
3516
|
+
/**
|
|
3517
|
+
* 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
3518
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2151
3519
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2152
3520
|
* @param {*} [options] Override http request option.
|
|
2153
3521
|
* @throws {RequiredError}
|
|
2154
3522
|
*/
|
|
2155
3523
|
describeScenario(projectId: number, scenarioId: number, options?: any): AxiosPromise<ScenarioDetail>;
|
|
3524
|
+
/**
|
|
3525
|
+
* 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.
|
|
3526
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3527
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3528
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3529
|
+
* @param {*} [options] Override http request option.
|
|
3530
|
+
* @throws {RequiredError}
|
|
3531
|
+
*/
|
|
3532
|
+
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: any): AxiosPromise<ScenarioHistoryDetail>;
|
|
2156
3533
|
/**
|
|
2157
3534
|
* Duplicate a scenario.
|
|
2158
3535
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2169,6 +3546,16 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
|
|
|
2169
3546
|
* @throws {RequiredError}
|
|
2170
3547
|
*/
|
|
2171
3548
|
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: any): AxiosPromise<ExecuteScenariosResult>;
|
|
3549
|
+
/**
|
|
3550
|
+
* 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.
|
|
3551
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3552
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3553
|
+
* @param {number} [page] The number of page returns.
|
|
3554
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3555
|
+
* @param {*} [options] Override http request option.
|
|
3556
|
+
* @throws {RequiredError}
|
|
3557
|
+
*/
|
|
3558
|
+
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: any): AxiosPromise<Array<ScenarioHistory>>;
|
|
2172
3559
|
/**
|
|
2173
3560
|
* List scenarios.
|
|
2174
3561
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2177,6 +3564,43 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
|
|
|
2177
3564
|
* @throws {RequiredError}
|
|
2178
3565
|
*/
|
|
2179
3566
|
listScenarios(projectId: number, page?: number, options?: any): AxiosPromise<Array<Scenario>>;
|
|
3567
|
+
/**
|
|
3568
|
+
* 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.
|
|
3569
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3570
|
+
* @param {*} [options] Override http request option.
|
|
3571
|
+
* @throws {RequiredError}
|
|
3572
|
+
*/
|
|
3573
|
+
listStepKeywords(projectId: number, options?: any): AxiosPromise<Array<StepKeyword>>;
|
|
3574
|
+
/**
|
|
3575
|
+
* 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.
|
|
3576
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3577
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3578
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
3579
|
+
* @param {*} [options] Override http request option.
|
|
3580
|
+
* @throws {RequiredError}
|
|
3581
|
+
*/
|
|
3582
|
+
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: any): AxiosPromise<ScenarioDetail>;
|
|
3583
|
+
/**
|
|
3584
|
+
* 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.
|
|
3585
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3586
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3587
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3588
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
3589
|
+
* @param {*} [options] Override http request option.
|
|
3590
|
+
* @throws {RequiredError}
|
|
3591
|
+
*/
|
|
3592
|
+
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: any): AxiosPromise<ScenarioDetail>;
|
|
3593
|
+
/**
|
|
3594
|
+
* 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`.
|
|
3595
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3596
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
3597
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
3598
|
+
* @param {number} [page] The number of page returns.
|
|
3599
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3600
|
+
* @param {*} [options] Override http request option.
|
|
3601
|
+
* @throws {RequiredError}
|
|
3602
|
+
*/
|
|
3603
|
+
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: any): AxiosPromise<Array<StepSearchHit>>;
|
|
2180
3604
|
/**
|
|
2181
3605
|
* Update a scenario.
|
|
2182
3606
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2195,7 +3619,26 @@ export declare const ScenarioApiFactory: (configuration?: Configuration, basePat
|
|
|
2195
3619
|
*/
|
|
2196
3620
|
export declare class ScenarioApi extends BaseAPI {
|
|
2197
3621
|
/**
|
|
2198
|
-
*
|
|
3622
|
+
* 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.
|
|
3623
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3624
|
+
* @param {CreateScenarioRequest} [createScenarioRequest] The scenario to create
|
|
3625
|
+
* @param {*} [options] Override http request option.
|
|
3626
|
+
* @throws {RequiredError}
|
|
3627
|
+
* @memberof ScenarioApi
|
|
3628
|
+
*/
|
|
3629
|
+
createScenario(projectId: number, createScenarioRequest?: CreateScenarioRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
3630
|
+
/**
|
|
3631
|
+
* 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.
|
|
3632
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3633
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3634
|
+
* @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.
|
|
3635
|
+
* @param {*} [options] Override http request option.
|
|
3636
|
+
* @throws {RequiredError}
|
|
3637
|
+
* @memberof ScenarioApi
|
|
3638
|
+
*/
|
|
3639
|
+
deleteScenario(projectId: number, scenarioId: number, versionToken?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
|
|
3640
|
+
/**
|
|
3641
|
+
* 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`.
|
|
2199
3642
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2200
3643
|
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
2201
3644
|
* @param {*} [options] Override http request option.
|
|
@@ -2203,6 +3646,16 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2203
3646
|
* @memberof ScenarioApi
|
|
2204
3647
|
*/
|
|
2205
3648
|
describeScenario(projectId: number, scenarioId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
3649
|
+
/**
|
|
3650
|
+
* 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.
|
|
3651
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3652
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3653
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3654
|
+
* @param {*} [options] Override http request option.
|
|
3655
|
+
* @throws {RequiredError}
|
|
3656
|
+
* @memberof ScenarioApi
|
|
3657
|
+
*/
|
|
3658
|
+
describeScenarioHistory(projectId: number, scenarioId: number, historyId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistoryDetail, any, {}>>;
|
|
2206
3659
|
/**
|
|
2207
3660
|
* Duplicate a scenario.
|
|
2208
3661
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2221,6 +3674,17 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2221
3674
|
* @memberof ScenarioApi
|
|
2222
3675
|
*/
|
|
2223
3676
|
executeScenarios(projectId: number, executeScenariosRequest: ExecuteScenariosRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExecuteScenariosResult, any, {}>>;
|
|
3677
|
+
/**
|
|
3678
|
+
* 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.
|
|
3679
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3680
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3681
|
+
* @param {number} [page] The number of page returns.
|
|
3682
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3683
|
+
* @param {*} [options] Override http request option.
|
|
3684
|
+
* @throws {RequiredError}
|
|
3685
|
+
* @memberof ScenarioApi
|
|
3686
|
+
*/
|
|
3687
|
+
listScenarioHistories(projectId: number, scenarioId: number, page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioHistory[], any, {}>>;
|
|
2224
3688
|
/**
|
|
2225
3689
|
* List scenarios.
|
|
2226
3690
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
@@ -2230,6 +3694,47 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2230
3694
|
* @memberof ScenarioApi
|
|
2231
3695
|
*/
|
|
2232
3696
|
listScenarios(projectId: number, page?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Scenario[], any, {}>>;
|
|
3697
|
+
/**
|
|
3698
|
+
* 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.
|
|
3699
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3700
|
+
* @param {*} [options] Override http request option.
|
|
3701
|
+
* @throws {RequiredError}
|
|
3702
|
+
* @memberof ScenarioApi
|
|
3703
|
+
*/
|
|
3704
|
+
listStepKeywords(projectId: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepKeyword[], any, {}>>;
|
|
3705
|
+
/**
|
|
3706
|
+
* 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.
|
|
3707
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3708
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3709
|
+
* @param {ReplaceScenarioStepsRequest} replaceScenarioStepsRequest The scenario's steps, in the order they should run
|
|
3710
|
+
* @param {*} [options] Override http request option.
|
|
3711
|
+
* @throws {RequiredError}
|
|
3712
|
+
* @memberof ScenarioApi
|
|
3713
|
+
*/
|
|
3714
|
+
replaceScenarioSteps(projectId: number, scenarioId: number, replaceScenarioStepsRequest: ReplaceScenarioStepsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
3715
|
+
/**
|
|
3716
|
+
* 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.
|
|
3717
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3718
|
+
* @param {number} scenarioId For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
3719
|
+
* @param {number} historyId The `id` of an entry `listScenarioHistories` returned for this scenario.
|
|
3720
|
+
* @param {RestoreScenarioHistoryRequest} [restoreScenarioHistoryRequest]
|
|
3721
|
+
* @param {*} [options] Override http request option.
|
|
3722
|
+
* @throws {RequiredError}
|
|
3723
|
+
* @memberof ScenarioApi
|
|
3724
|
+
*/
|
|
3725
|
+
restoreScenarioHistory(projectId: number, scenarioId: number, historyId: number, restoreScenarioHistoryRequest?: RestoreScenarioHistoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ScenarioDetail, any, {}>>;
|
|
3726
|
+
/**
|
|
3727
|
+
* 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`.
|
|
3728
|
+
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
|
|
3729
|
+
* @param {string} q The text to find. It matches anywhere in a value, ignoring case; `%` and `_` are matched literally.
|
|
3730
|
+
* @param {'values' | 'locators'} [matchOn] `values` matches argument values only and `locators` matches `user_locator` only. Leave it out to match both.
|
|
3731
|
+
* @param {number} [page] The number of page returns.
|
|
3732
|
+
* @param {number} [perPage] The number of items returns. Default number is 30 and up to a maximum of 100
|
|
3733
|
+
* @param {*} [options] Override http request option.
|
|
3734
|
+
* @throws {RequiredError}
|
|
3735
|
+
* @memberof ScenarioApi
|
|
3736
|
+
*/
|
|
3737
|
+
searchSteps(projectId: number, q: string, matchOn?: "values" | "locators", page?: number, perPage?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<StepSearchHit[], any, {}>>;
|
|
2233
3738
|
/**
|
|
2234
3739
|
* Update a scenario.
|
|
2235
3740
|
* @param {number} projectId For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2
|
|
@@ -2247,7 +3752,7 @@ export declare class ScenarioApi extends BaseAPI {
|
|
|
2247
3752
|
*/
|
|
2248
3753
|
export declare const ScheduleApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
2249
3754
|
/**
|
|
2250
|
-
* "Schedule" is
|
|
3755
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
2251
3756
|
* @summary Run a test plan.
|
|
2252
3757
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
2253
3758
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -2262,7 +3767,7 @@ export declare const ScheduleApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
2262
3767
|
*/
|
|
2263
3768
|
export declare const ScheduleApiFp: (configuration?: Configuration) => {
|
|
2264
3769
|
/**
|
|
2265
|
-
* "Schedule" is
|
|
3770
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
2266
3771
|
* @summary Run a test plan.
|
|
2267
3772
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
2268
3773
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -2277,7 +3782,7 @@ export declare const ScheduleApiFp: (configuration?: Configuration) => {
|
|
|
2277
3782
|
*/
|
|
2278
3783
|
export declare const ScheduleApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
2279
3784
|
/**
|
|
2280
|
-
* "Schedule" is
|
|
3785
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
2281
3786
|
* @summary Run a test plan.
|
|
2282
3787
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
2283
3788
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|
|
@@ -2294,7 +3799,7 @@ export declare const ScheduleApiFactory: (configuration?: Configuration, basePat
|
|
|
2294
3799
|
*/
|
|
2295
3800
|
export declare class ScheduleApi extends BaseAPI {
|
|
2296
3801
|
/**
|
|
2297
|
-
* "Schedule" is
|
|
3802
|
+
* "Schedule" is the old name for "Test Plan", so `schedule_id` is the test plan\'s ID.
|
|
2298
3803
|
* @summary Run a test plan.
|
|
2299
3804
|
* @param {number} scheduleId For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
|
|
2300
3805
|
* @param {ExecuteScheduleRequest} [executeScheduleRequest] The options to execute a test plan.
|