@autifyhq/autify-cli 0.51.0 → 0.53.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.
Files changed (44) hide show
  1. package/README.md +143 -39
  2. package/dist/autify/connect/accessPointConfig.js +2 -2
  3. package/dist/autify/connect/client-manager/ClientManager.d.ts +2 -2
  4. package/dist/autify/connect/client-manager/ClientManager.js +4 -4
  5. package/dist/autify/connect/client-manager/DebugServerClient.js +3 -3
  6. package/dist/autify/connect/installClient.d.ts +2 -2
  7. package/dist/autify/connect/installClient.js +10 -10
  8. package/dist/autify/mobile/createZip.js +3 -3
  9. package/dist/autify/mobile/inspectBuildFile.js +3 -3
  10. package/dist/autify/mobile/mobilelink/installBinary.d.ts +8 -0
  11. package/dist/autify/mobile/mobilelink/installBinary.js +133 -0
  12. package/dist/autify/mobile/mobilelink/mobile-link-manager/Logger.d.ts +11 -0
  13. package/dist/autify/mobile/mobilelink/mobile-link-manager/Logger.js +47 -0
  14. package/dist/autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager.d.ts +53 -0
  15. package/dist/autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager.js +215 -0
  16. package/dist/autify/mobile/mobilelink/mobile-link-manager/StateMachine.d.ts +51 -0
  17. package/dist/autify/mobile/mobilelink/mobile-link-manager/StateMachine.js +120 -0
  18. package/dist/autify/mobile/parseTestPlanUrl.js +2 -2
  19. package/dist/autify/mobile/parseTestResultUrl.js +2 -2
  20. package/dist/autify/mobile/uploadBuild.js +2 -2
  21. package/dist/autify/mobile/waitTestResult.js +2 -2
  22. package/dist/autify/web/parseAutifyTestUrl.js +2 -2
  23. package/dist/autify/web/parseTestResultUrl.js +2 -2
  24. package/dist/autify/web/runTest.js +6 -6
  25. package/dist/autify/web/waitTestResult.js +3 -3
  26. package/dist/commands/connect/access-point/set.js +2 -2
  27. package/dist/commands/mobile/auth/login.js +2 -2
  28. package/dist/commands/mobile/link/doctor.d.ts +6 -0
  29. package/dist/commands/mobile/link/doctor.js +19 -0
  30. package/dist/commands/mobile/link/exec.d.ts +10 -0
  31. package/dist/commands/mobile/link/exec.js +23 -0
  32. package/dist/commands/mobile/link/install.d.ts +7 -0
  33. package/dist/commands/mobile/link/install.js +22 -0
  34. package/dist/commands/mobile/link/setup.d.ts +6 -0
  35. package/dist/commands/mobile/link/setup.js +45 -0
  36. package/dist/commands/mobile/link/start.d.ts +11 -0
  37. package/dist/commands/mobile/link/start.js +37 -0
  38. package/dist/commands/mobile/test/run.d.ts +1 -0
  39. package/dist/commands/mobile/test/run.js +10 -3
  40. package/dist/commands/web/auth/login.js +2 -2
  41. package/dist/commands/web/test/run.js +2 -3
  42. package/dist/config.d.ts +1 -1
  43. package/oclif.manifest.json +782 -641
  44. package/package.json +20 -22
@@ -169,25 +169,25 @@
169
169
  "start.js"
170
170
  ]
171
171
  },
172
- "web:api:create-access-point": {
172
+ "mobile:api:describe-test-result": {
173
173
  "aliases": [],
174
174
  "args": {},
175
- "description": "You can generate a new access point by passing in its name.",
175
+ "description": "Get a test result.",
176
176
  "examples": [
177
177
  "<%= config.bin %> <%= command.id %>"
178
178
  ],
179
179
  "flags": {
180
180
  "project-id": {
181
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
181
+ "description": "ID of the project from which the test results will be obtained.",
182
182
  "name": "project-id",
183
183
  "required": true,
184
184
  "hasDynamicHelp": false,
185
185
  "multiple": false,
186
186
  "type": "option"
187
187
  },
188
- "create-access-point-request": {
189
- "description": "A JSON object with the name of the access point to be created e.g. {\"name\":\"string\"}",
190
- "name": "create-access-point-request",
188
+ "id": {
189
+ "description": "Test Result ID.",
190
+ "name": "id",
191
191
  "required": true,
192
192
  "hasDynamicHelp": false,
193
193
  "multiple": false,
@@ -196,7 +196,7 @@
196
196
  },
197
197
  "hasDynamicHelp": false,
198
198
  "hiddenAliases": [],
199
- "id": "web:api:create-access-point",
199
+ "id": "mobile:api:describe-test-result",
200
200
  "pluginAlias": "@autifyhq/autify-cli",
201
201
  "pluginName": "@autifyhq/autify-cli",
202
202
  "pluginType": "core",
@@ -206,31 +206,47 @@
206
206
  "relativePath": [
207
207
  "dist",
208
208
  "commands",
209
- "web",
209
+ "mobile",
210
210
  "api",
211
- "create-access-point.js"
211
+ "describe-test-result.js"
212
212
  ]
213
213
  },
214
- "web:api:create-test-plan-variable": {
214
+ "mobile:api:list-test-results": {
215
215
  "aliases": [],
216
216
  "args": {},
217
- "description": "Create a new variable for the test plan",
217
+ "description": "List test results.",
218
218
  "examples": [
219
219
  "<%= config.bin %> <%= command.id %>"
220
220
  ],
221
221
  "flags": {
222
- "test-plan-id": {
223
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
224
- "name": "test-plan-id",
222
+ "project-id": {
223
+ "description": "ID of the project from which the list of test results will be retrieved.",
224
+ "name": "project-id",
225
225
  "required": true,
226
226
  "hasDynamicHelp": false,
227
227
  "multiple": false,
228
228
  "type": "option"
229
229
  },
230
- "create-test-plan-variable-request": {
231
- "description": "A JSON object with the new variable key and default value to use in the test plan e.g. {\"key\":\"string\",\"default_value\":\"string\"}",
232
- "name": "create-test-plan-variable-request",
233
- "required": true,
230
+ "page": {
231
+ "description": "Page number to be retrieved.",
232
+ "name": "page",
233
+ "required": false,
234
+ "hasDynamicHelp": false,
235
+ "multiple": false,
236
+ "type": "option"
237
+ },
238
+ "per-page": {
239
+ "description": "Number of test results per page.",
240
+ "name": "per-page",
241
+ "required": false,
242
+ "hasDynamicHelp": false,
243
+ "multiple": false,
244
+ "type": "option"
245
+ },
246
+ "test-plan-id": {
247
+ "description": "ID of the test plan.",
248
+ "name": "test-plan-id",
249
+ "required": false,
234
250
  "hasDynamicHelp": false,
235
251
  "multiple": false,
236
252
  "type": "option"
@@ -238,7 +254,7 @@
238
254
  },
239
255
  "hasDynamicHelp": false,
240
256
  "hiddenAliases": [],
241
- "id": "web:api:create-test-plan-variable",
257
+ "id": "mobile:api:list-test-results",
242
258
  "pluginAlias": "@autifyhq/autify-cli",
243
259
  "pluginName": "@autifyhq/autify-cli",
244
260
  "pluginType": "core",
@@ -248,30 +264,30 @@
248
264
  "relativePath": [
249
265
  "dist",
250
266
  "commands",
251
- "web",
267
+ "mobile",
252
268
  "api",
253
- "create-test-plan-variable.js"
269
+ "list-test-results.js"
254
270
  ]
255
271
  },
256
- "web:api:create-url-replacement": {
272
+ "mobile:api:run-test-plan": {
257
273
  "aliases": [],
258
274
  "args": {},
259
- "description": "Create a new url replacement for the test plan",
275
+ "description": "Run a test plan",
260
276
  "examples": [
261
277
  "<%= config.bin %> <%= command.id %>"
262
278
  ],
263
279
  "flags": {
264
280
  "test-plan-id": {
265
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
281
+ "description": "The ID of the test plan to run.",
266
282
  "name": "test-plan-id",
267
283
  "required": true,
268
284
  "hasDynamicHelp": false,
269
285
  "multiple": false,
270
286
  "type": "option"
271
287
  },
272
- "create-url-replacement-request": {
273
- "description": "A JSON object with the url to replace e.g. {\"pattern_url\":\"string\",\"replacement_url\":\"string\"}",
274
- "name": "create-url-replacement-request",
288
+ "run-test-plan-request": {
289
+ "description": "A JSON object with the build_id to execute the test plan. e.g. {\"build_id\":\"string\"}",
290
+ "name": "run-test-plan-request",
275
291
  "required": true,
276
292
  "hasDynamicHelp": false,
277
293
  "multiple": false,
@@ -280,7 +296,7 @@
280
296
  },
281
297
  "hasDynamicHelp": false,
282
298
  "hiddenAliases": [],
283
- "id": "web:api:create-url-replacement",
299
+ "id": "mobile:api:run-test-plan",
284
300
  "pluginAlias": "@autifyhq/autify-cli",
285
301
  "pluginName": "@autifyhq/autify-cli",
286
302
  "pluginType": "core",
@@ -290,30 +306,30 @@
290
306
  "relativePath": [
291
307
  "dist",
292
308
  "commands",
293
- "web",
309
+ "mobile",
294
310
  "api",
295
- "create-url-replacement.js"
311
+ "run-test-plan.js"
296
312
  ]
297
313
  },
298
- "web:api:delete-access-point": {
314
+ "mobile:api:upload-build": {
299
315
  "aliases": [],
300
316
  "args": {},
301
- "description": "You can delete an access point by passing in its name.",
317
+ "description": "Upload the build file.",
302
318
  "examples": [
303
319
  "<%= config.bin %> <%= command.id %>"
304
320
  ],
305
321
  "flags": {
306
322
  "project-id": {
307
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
323
+ "description": "The ID of the project to upload the build file to.",
308
324
  "name": "project-id",
309
325
  "required": true,
310
326
  "hasDynamicHelp": false,
311
327
  "multiple": false,
312
328
  "type": "option"
313
329
  },
314
- "delete-access-point-request": {
315
- "description": "A JSON object with the name of the access point to be deleted e.g. {\"name\":\"string\"}",
316
- "name": "delete-access-point-request",
330
+ "file": {
331
+ "description": "Build file.",
332
+ "name": "file",
317
333
  "required": true,
318
334
  "hasDynamicHelp": false,
319
335
  "multiple": false,
@@ -322,7 +338,7 @@
322
338
  },
323
339
  "hasDynamicHelp": false,
324
340
  "hiddenAliases": [],
325
- "id": "web:api:delete-access-point",
341
+ "id": "mobile:api:upload-build",
326
342
  "pluginAlias": "@autifyhq/autify-cli",
327
343
  "pluginName": "@autifyhq/autify-cli",
328
344
  "pluginType": "core",
@@ -332,39 +348,23 @@
332
348
  "relativePath": [
333
349
  "dist",
334
350
  "commands",
335
- "web",
351
+ "mobile",
336
352
  "api",
337
- "delete-access-point.js"
353
+ "upload-build.js"
338
354
  ]
339
355
  },
340
- "web:api:delete-test-plan-variable": {
356
+ "mobile:auth:login": {
341
357
  "aliases": [],
342
358
  "args": {},
343
- "description": "Delete an existing test plan variable for the test plan",
359
+ "description": "Login to Autify for Mobile",
344
360
  "examples": [
345
- "<%= config.bin %> <%= command.id %>"
361
+ "Start interactive setup:\n<%= config.bin %> <%= command.id %>",
362
+ "Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
346
363
  ],
347
- "flags": {
348
- "test-plan-id": {
349
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/",
350
- "name": "test-plan-id",
351
- "required": true,
352
- "hasDynamicHelp": false,
353
- "multiple": false,
354
- "type": "option"
355
- },
356
- "test-plan-variable-id": {
357
- "description": "test_plan_variable id",
358
- "name": "test-plan-variable-id",
359
- "required": true,
360
- "hasDynamicHelp": false,
361
- "multiple": false,
362
- "type": "option"
363
- }
364
- },
364
+ "flags": {},
365
365
  "hasDynamicHelp": false,
366
366
  "hiddenAliases": [],
367
- "id": "web:api:delete-test-plan-variable",
367
+ "id": "mobile:auth:login",
368
368
  "pluginAlias": "@autifyhq/autify-cli",
369
369
  "pluginName": "@autifyhq/autify-cli",
370
370
  "pluginType": "core",
@@ -374,30 +374,38 @@
374
374
  "relativePath": [
375
375
  "dist",
376
376
  "commands",
377
- "web",
378
- "api",
379
- "delete-test-plan-variable.js"
377
+ "mobile",
378
+ "auth",
379
+ "login.js"
380
380
  ]
381
381
  },
382
- "web:api:delete-url-replacement": {
382
+ "mobile:build:upload": {
383
383
  "aliases": [],
384
- "args": {},
385
- "description": "Delete a url replacement for the test plan",
384
+ "args": {
385
+ "build-path": {
386
+ "description": "File path to the iOS app (*.app, *.ipa) or Android app (*.apk).",
387
+ "name": "build-path",
388
+ "required": true
389
+ }
390
+ },
391
+ "description": "Upload a build file",
386
392
  "examples": [
387
- "<%= config.bin %> <%= command.id %>"
393
+ "<%= config.bin %> <%= command.id %>",
394
+ "Upload build file\n<%= config.bin %> <%= command.id %> --workspace-id AAA ./my.app",
395
+ "Upload build file (JSON output)\n<%= config.bin %> <%= command.id %> --workspace-id AAA ./my.app --json"
388
396
  ],
389
397
  "flags": {
390
- "test-plan-id": {
391
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
392
- "name": "test-plan-id",
393
- "required": true,
394
- "hasDynamicHelp": false,
395
- "multiple": false,
396
- "type": "option"
398
+ "json": {
399
+ "description": "Format output as json.",
400
+ "helpGroup": "GLOBAL",
401
+ "name": "json",
402
+ "allowNo": false,
403
+ "type": "boolean"
397
404
  },
398
- "url-replacement-id": {
399
- "description": "url_replacement id",
400
- "name": "url-replacement-id",
405
+ "workspace-id": {
406
+ "char": "w",
407
+ "description": "Workspace ID to upload the build file",
408
+ "name": "workspace-id",
401
409
  "required": true,
402
410
  "hasDynamicHelp": false,
403
411
  "multiple": false,
@@ -406,99 +414,86 @@
406
414
  },
407
415
  "hasDynamicHelp": false,
408
416
  "hiddenAliases": [],
409
- "id": "web:api:delete-url-replacement",
417
+ "id": "mobile:build:upload",
410
418
  "pluginAlias": "@autifyhq/autify-cli",
411
419
  "pluginName": "@autifyhq/autify-cli",
412
420
  "pluginType": "core",
413
421
  "strict": true,
414
- "enableJsonFlag": false,
422
+ "enableJsonFlag": true,
415
423
  "isESM": false,
416
424
  "relativePath": [
417
425
  "dist",
418
426
  "commands",
419
- "web",
420
- "api",
421
- "delete-url-replacement.js"
427
+ "mobile",
428
+ "build",
429
+ "upload.js"
422
430
  ]
423
431
  },
424
- "web:api:describe-result": {
432
+ "mobile:link:doctor": {
425
433
  "aliases": [],
426
434
  "args": {},
427
- "description": "Get a test result.",
435
+ "description": "Check MobileLink configuration",
428
436
  "examples": [
429
- "<%= config.bin %> <%= command.id %>"
437
+ "Check MobileLink configuration:\n<%= config.bin %> <%= command.id %>"
430
438
  ],
431
- "flags": {
432
- "project-id": {
433
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/results/4",
434
- "name": "project-id",
435
- "required": true,
436
- "hasDynamicHelp": false,
437
- "multiple": false,
438
- "type": "option"
439
- },
440
- "result-id": {
441
- "description": "For example, 4 for the following URL: https://app.autify.com/projects/1/results/4",
442
- "name": "result-id",
443
- "required": true,
444
- "hasDynamicHelp": false,
445
- "multiple": false,
446
- "type": "option"
447
- },
448
- "get-details": {
449
- "description": "The flag to get details of the test case result.",
450
- "name": "get-details",
451
- "required": false,
452
- "hasDynamicHelp": false,
453
- "multiple": false,
454
- "type": "option"
439
+ "flags": {},
440
+ "hasDynamicHelp": false,
441
+ "hiddenAliases": [],
442
+ "id": "mobile:link:doctor",
443
+ "pluginAlias": "@autifyhq/autify-cli",
444
+ "pluginName": "@autifyhq/autify-cli",
445
+ "pluginType": "core",
446
+ "strict": true,
447
+ "enableJsonFlag": false,
448
+ "isESM": false,
449
+ "relativePath": [
450
+ "dist",
451
+ "commands",
452
+ "mobile",
453
+ "link",
454
+ "doctor.js"
455
+ ]
456
+ },
457
+ "mobile:link:exec": {
458
+ "aliases": [],
459
+ "args": {
460
+ "things": {
461
+ "name": "things"
455
462
  }
456
463
  },
464
+ "description": "Execute arbitrary MobileLink subcommand",
465
+ "examples": [
466
+ "Pass subcommand arguments to mobilelink:\n<%= config.bin %> <%= command.id %> ABC XYZ"
467
+ ],
468
+ "flags": {},
457
469
  "hasDynamicHelp": false,
458
470
  "hiddenAliases": [],
459
- "id": "web:api:describe-result",
471
+ "id": "mobile:link:exec",
460
472
  "pluginAlias": "@autifyhq/autify-cli",
461
473
  "pluginName": "@autifyhq/autify-cli",
462
474
  "pluginType": "core",
463
- "strict": true,
475
+ "strict": false,
464
476
  "enableJsonFlag": false,
465
477
  "isESM": false,
466
478
  "relativePath": [
467
479
  "dist",
468
480
  "commands",
469
- "web",
470
- "api",
471
- "describe-result.js"
481
+ "mobile",
482
+ "link",
483
+ "exec.js"
472
484
  ]
473
485
  },
474
- "web:api:describe-scenario": {
486
+ "mobile:link:install": {
475
487
  "aliases": [],
476
488
  "args": {},
477
- "description": "Get a scenario.",
489
+ "description": "Install MobileLink",
478
490
  "examples": [
479
- "<%= config.bin %> <%= command.id %>"
491
+ "Install the stable version:\n<%= config.bin %> <%= command.id %>"
480
492
  ],
481
- "flags": {
482
- "project-id": {
483
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2",
484
- "name": "project-id",
485
- "required": true,
486
- "hasDynamicHelp": false,
487
- "multiple": false,
488
- "type": "option"
489
- },
490
- "scenario-id": {
491
- "description": "For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2",
492
- "name": "scenario-id",
493
- "required": true,
494
- "hasDynamicHelp": false,
495
- "multiple": false,
496
- "type": "option"
497
- }
498
- },
493
+ "flags": {},
499
494
  "hasDynamicHelp": false,
500
495
  "hiddenAliases": [],
501
- "id": "web:api:describe-scenario",
496
+ "id": "mobile:link:install",
502
497
  "pluginAlias": "@autifyhq/autify-cli",
503
498
  "pluginName": "@autifyhq/autify-cli",
504
499
  "pluginType": "core",
@@ -508,39 +503,22 @@
508
503
  "relativePath": [
509
504
  "dist",
510
505
  "commands",
511
- "web",
512
- "api",
513
- "describe-scenario.js"
506
+ "mobile",
507
+ "link",
508
+ "install.js"
514
509
  ]
515
510
  },
516
- "web:api:execute-scenarios": {
511
+ "mobile:link:setup": {
517
512
  "aliases": [],
518
513
  "args": {},
519
- "description": "You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).",
514
+ "description": "Set up MobileLink",
520
515
  "examples": [
521
- "<%= config.bin %> <%= command.id %>"
516
+ "Set up MobileLink configuration:\n<%= config.bin %> <%= command.id %>"
522
517
  ],
523
- "flags": {
524
- "project-id": {
525
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
526
- "name": "project-id",
527
- "required": true,
528
- "hasDynamicHelp": false,
529
- "multiple": false,
530
- "type": "option"
531
- },
532
- "execute-scenarios-request": {
533
- "description": "A JSON object with the scenarios and settings to execute e.g. {\"name\":\"string\",\"execution_type\":\"parallel\",\"capabilities\":[{\"os\":\"string\",\"os_type\":\"macos\",\"os_version\":\"string\",\"device\":\"string\",\"browser\":\"string\",\"browser_type\":\"chrome\",\"browser_version\":\"string\"}],\"url_replacements\":[{\"pattern_url\":\"string\",\"replacement_url\":\"string\"}],\"scenarios\":[{\"id\":0}],\"autify_connect\":{\"name\":\"string\"}}",
534
- "name": "execute-scenarios-request",
535
- "required": true,
536
- "hasDynamicHelp": false,
537
- "multiple": false,
538
- "type": "option"
539
- }
540
- },
518
+ "flags": {},
541
519
  "hasDynamicHelp": false,
542
520
  "hiddenAliases": [],
543
- "id": "web:api:execute-scenarios",
521
+ "id": "mobile:link:setup",
544
522
  "pluginAlias": "@autifyhq/autify-cli",
545
523
  "pluginName": "@autifyhq/autify-cli",
546
524
  "pluginType": "core",
@@ -550,105 +528,111 @@
550
528
  "relativePath": [
551
529
  "dist",
552
530
  "commands",
553
- "web",
554
- "api",
555
- "execute-scenarios.js"
531
+ "mobile",
532
+ "link",
533
+ "setup.js"
556
534
  ]
557
535
  },
558
- "web:api:execute-schedule": {
536
+ "mobile:link:start": {
559
537
  "aliases": [],
560
- "args": {},
561
- "description": "\"Schedule\" is called as \"Test Plan\" now. If you want to run a test plan, use this endpoint.",
562
- "examples": [
563
- "<%= config.bin %> <%= command.id %>"
564
- ],
565
- "flags": {
566
- "schedule-id": {
567
- "description": "For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3",
568
- "name": "schedule-id",
569
- "required": true,
570
- "hasDynamicHelp": false,
571
- "multiple": false,
572
- "type": "option"
573
- },
574
- "execute-schedule-request": {
575
- "description": "A JSON object with the options to execute a test plan. e.g. {\"autify_connect\":{\"name\":\"string\"}}",
576
- "name": "execute-schedule-request",
577
- "required": false,
578
- "hasDynamicHelp": false,
579
- "multiple": false,
580
- "type": "option"
538
+ "args": {
539
+ "workspaceId": {
540
+ "description": "Specify the target version of Autify Connect Client.",
541
+ "name": "workspaceId"
581
542
  }
582
543
  },
544
+ "description": "Start MobileLink session",
545
+ "examples": [
546
+ "Pass subcommand arguments to mobilelink:\n<%= config.bin %> <%= command.id %> ABC XYZ"
547
+ ],
548
+ "flags": {},
583
549
  "hasDynamicHelp": false,
584
550
  "hiddenAliases": [],
585
- "id": "web:api:execute-schedule",
551
+ "id": "mobile:link:start",
586
552
  "pluginAlias": "@autifyhq/autify-cli",
587
553
  "pluginName": "@autifyhq/autify-cli",
588
554
  "pluginType": "core",
589
- "strict": true,
555
+ "strict": false,
590
556
  "enableJsonFlag": false,
591
557
  "isESM": false,
592
558
  "relativePath": [
593
559
  "dist",
594
560
  "commands",
595
- "web",
596
- "api",
597
- "execute-schedule.js"
561
+ "mobile",
562
+ "link",
563
+ "start.js"
598
564
  ]
599
565
  },
600
- "web:api:get-credit-usage": {
566
+ "mobile:test:run": {
601
567
  "aliases": [],
602
- "args": {},
603
- "description": "Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.",
568
+ "args": {
569
+ "test-plan-url": {
570
+ "description": "Test plan URL e.g. https://mobile-app.autify.com/projects/<ID>/test_plans/<ID>",
571
+ "name": "test-plan-url",
572
+ "required": true
573
+ }
574
+ },
575
+ "description": "Run a test plan.",
604
576
  "examples": [
605
- "<%= config.bin %> <%= command.id %>"
577
+ "Run a test plan with a build ID:\n<%= config.bin %> <%= command.id %> --build-id CCC https://mobile-app.autify.com/projects/AAA/test_plans/BBB",
578
+ "Run a test plan with a new build file:\n<%= config.bin %> <%= command.id %> --build-path ./my.[app|apk] https://mobile-app.autify.com/projects/AAA/test_plans/BBB",
579
+ "Run and wait a test plan:\n<%= config.bin %> <%= command.id %> --build-id CCC https://mobile-app.autify.com/projects/AAA/test_plans/BBB --wait --timeout 600"
606
580
  ],
607
581
  "flags": {
608
- "project-id": {
609
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/credits",
610
- "name": "project-id",
611
- "required": true,
582
+ "build-id": {
583
+ "description": "ID of the already uploaded build.",
584
+ "exclusive": [
585
+ "build-path"
586
+ ],
587
+ "name": "build-id",
612
588
  "hasDynamicHelp": false,
613
589
  "multiple": false,
614
590
  "type": "option"
615
591
  },
616
- "date-from": {
617
- "description": "The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: \"2023-09-21\").",
618
- "name": "date-from",
619
- "required": false,
592
+ "build-path": {
593
+ "description": "File path to the iOS app (*.app, *.ipa) or Android app (*.apk).",
594
+ "exclusive": [
595
+ "build-id"
596
+ ],
597
+ "name": "build-path",
620
598
  "hasDynamicHelp": false,
621
599
  "multiple": false,
622
600
  "type": "option"
623
601
  },
624
- "date-to": {
625
- "description": "The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: \"2023-09-28\").",
626
- "name": "date-to",
627
- "required": false,
602
+ "device-ids": {
603
+ "description": "Comma-separated device IDs to run the test plan.",
604
+ "name": "device-ids",
628
605
  "hasDynamicHelp": false,
629
606
  "multiple": false,
630
607
  "type": "option"
631
608
  },
632
- "scenario-id": {
633
- "description": "The scenario ID to filter used credits by.",
634
- "name": "scenario-id",
635
- "required": false,
636
- "hasDynamicHelp": false,
637
- "multiple": false,
638
- "type": "option"
609
+ "wait": {
610
+ "char": "w",
611
+ "description": "Wait until the test finishes.",
612
+ "name": "wait",
613
+ "allowNo": false,
614
+ "type": "boolean"
639
615
  },
640
- "test-plan-id": {
641
- "description": "The test plan ID to filter used credits by.",
642
- "name": "test-plan-id",
643
- "required": false,
616
+ "timeout": {
617
+ "char": "t",
618
+ "description": "Timeout seconds when waiting for the finish of the test execution.",
619
+ "name": "timeout",
620
+ "default": 300,
644
621
  "hasDynamicHelp": false,
645
622
  "multiple": false,
646
623
  "type": "option"
647
624
  },
648
- "user-id": {
649
- "description": "The user ID that executed tests to filter used credits by.",
650
- "name": "user-id",
651
- "required": false,
625
+ "verbose": {
626
+ "char": "v",
627
+ "description": "Verbose output",
628
+ "name": "verbose",
629
+ "allowNo": false,
630
+ "type": "boolean"
631
+ },
632
+ "max-retry-count": {
633
+ "description": "Maximum retry count. The command can take up to timeout * (max-retry-count + 1).",
634
+ "name": "max-retry-count",
635
+ "default": 0,
652
636
  "hasDynamicHelp": false,
653
637
  "multiple": false,
654
638
  "type": "option"
@@ -656,7 +640,7 @@
656
640
  },
657
641
  "hasDynamicHelp": false,
658
642
  "hiddenAliases": [],
659
- "id": "web:api:get-credit-usage",
643
+ "id": "mobile:test:run",
660
644
  "pluginAlias": "@autifyhq/autify-cli",
661
645
  "pluginName": "@autifyhq/autify-cli",
662
646
  "pluginType": "core",
@@ -666,31 +650,45 @@
666
650
  "relativePath": [
667
651
  "dist",
668
652
  "commands",
669
- "web",
670
- "api",
671
- "get-credit-usage.js"
653
+ "mobile",
654
+ "test",
655
+ "run.js"
672
656
  ]
673
657
  },
674
- "web:api:get-project-info": {
658
+ "mobile:test:wait": {
675
659
  "aliases": [],
676
- "args": {},
677
- "description": "Get project information.",
660
+ "args": {
661
+ "test-result-url": {
662
+ "description": "Test result URL e.g. https://mobile-app.autify.com/projects/<ID>/results/<ID>",
663
+ "name": "test-result-url",
664
+ "required": true
665
+ }
666
+ },
667
+ "description": "Wait a test result until it finishes.",
678
668
  "examples": [
679
- "<%= config.bin %> <%= command.id %>"
669
+ "<%= config.bin %> <%= command.id %> https://mobile-app.autify.com/projects/AAA/results/BBB"
680
670
  ],
681
671
  "flags": {
682
- "project-id": {
683
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/project_info",
684
- "name": "project-id",
685
- "required": true,
672
+ "timeout": {
673
+ "char": "t",
674
+ "description": "Timeout seconds when waiting for the finish of the test execution.",
675
+ "name": "timeout",
676
+ "default": 300,
686
677
  "hasDynamicHelp": false,
687
678
  "multiple": false,
688
679
  "type": "option"
680
+ },
681
+ "verbose": {
682
+ "char": "v",
683
+ "description": "Verbose output",
684
+ "name": "verbose",
685
+ "allowNo": false,
686
+ "type": "boolean"
689
687
  }
690
688
  },
691
689
  "hasDynamicHelp": false,
692
690
  "hiddenAliases": [],
693
- "id": "web:api:get-project-info",
691
+ "id": "mobile:test:wait",
694
692
  "pluginAlias": "@autifyhq/autify-cli",
695
693
  "pluginName": "@autifyhq/autify-cli",
696
694
  "pluginType": "core",
@@ -700,15 +698,15 @@
700
698
  "relativePath": [
701
699
  "dist",
702
700
  "commands",
703
- "web",
704
- "api",
705
- "get-project-info.js"
701
+ "mobile",
702
+ "test",
703
+ "wait.js"
706
704
  ]
707
705
  },
708
- "web:api:list-access-points": {
706
+ "web:api:create-access-point": {
709
707
  "aliases": [],
710
708
  "args": {},
711
- "description": "List access points for the project.",
709
+ "description": "You can generate a new access point by passing in its name.",
712
710
  "examples": [
713
711
  "<%= config.bin %> <%= command.id %>"
714
712
  ],
@@ -721,10 +719,10 @@
721
719
  "multiple": false,
722
720
  "type": "option"
723
721
  },
724
- "page": {
725
- "description": "The number of page returns.",
726
- "name": "page",
727
- "required": false,
722
+ "create-access-point-request": {
723
+ "description": "A JSON object with the name of the access point to be created e.g. {\"name\":\"string\"}",
724
+ "name": "create-access-point-request",
725
+ "required": true,
728
726
  "hasDynamicHelp": false,
729
727
  "multiple": false,
730
728
  "type": "option"
@@ -732,7 +730,7 @@
732
730
  },
733
731
  "hasDynamicHelp": false,
734
732
  "hiddenAliases": [],
735
- "id": "web:api:list-access-points",
733
+ "id": "web:api:create-access-point",
736
734
  "pluginAlias": "@autifyhq/autify-cli",
737
735
  "pluginName": "@autifyhq/autify-cli",
738
736
  "pluginType": "core",
@@ -744,61 +742,29 @@
744
742
  "commands",
745
743
  "web",
746
744
  "api",
747
- "list-access-points.js"
745
+ "create-access-point.js"
748
746
  ]
749
747
  },
750
- "web:api:list-capabilities": {
748
+ "web:api:create-test-plan-variable": {
751
749
  "aliases": [],
752
750
  "args": {},
753
- "description": "List available Capabilities.",
751
+ "description": "Create a new variable for the test plan",
754
752
  "examples": [
755
753
  "<%= config.bin %> <%= command.id %>"
756
754
  ],
757
755
  "flags": {
758
- "project-id": {
759
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities",
760
- "name": "project-id",
756
+ "test-plan-id": {
757
+ "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
758
+ "name": "test-plan-id",
761
759
  "required": true,
762
760
  "hasDynamicHelp": false,
763
761
  "multiple": false,
764
762
  "type": "option"
765
763
  },
766
- "os": {
767
- "description": "os name to filter (deprecated)",
768
- "name": "os",
769
- "required": false,
770
- "hasDynamicHelp": false,
771
- "multiple": false,
772
- "type": "option"
773
- },
774
- "os-type": {
775
- "description": "Type of the os to filter",
776
- "name": "os-type",
777
- "required": false,
778
- "hasDynamicHelp": false,
779
- "multiple": false,
780
- "type": "option"
781
- },
782
- "browser": {
783
- "description": "browser name to filter (deprecated)",
784
- "name": "browser",
785
- "required": false,
786
- "hasDynamicHelp": false,
787
- "multiple": false,
788
- "type": "option"
789
- },
790
- "browser-type": {
791
- "description": "Type of the browser to filter",
792
- "name": "browser-type",
793
- "required": false,
794
- "hasDynamicHelp": false,
795
- "multiple": false,
796
- "type": "option"
797
- },
798
- "device-type": {
799
- "description": "device_type name to filter (mobile is deprecated)",
800
- "name": "device-type",
801
- "required": false,
764
+ "create-test-plan-variable-request": {
765
+ "description": "A JSON object with the new variable key and default value to use in the test plan e.g. {\"key\":\"string\",\"default_value\":\"string\"}",
766
+ "name": "create-test-plan-variable-request",
767
+ "required": true,
802
768
  "hasDynamicHelp": false,
803
769
  "multiple": false,
804
770
  "type": "option"
@@ -806,7 +772,7 @@
806
772
  },
807
773
  "hasDynamicHelp": false,
808
774
  "hiddenAliases": [],
809
- "id": "web:api:list-capabilities",
775
+ "id": "web:api:create-test-plan-variable",
810
776
  "pluginAlias": "@autifyhq/autify-cli",
811
777
  "pluginName": "@autifyhq/autify-cli",
812
778
  "pluginType": "core",
@@ -818,45 +784,29 @@
818
784
  "commands",
819
785
  "web",
820
786
  "api",
821
- "list-capabilities.js"
787
+ "create-test-plan-variable.js"
822
788
  ]
823
789
  },
824
- "web:api:list-results": {
790
+ "web:api:create-url-replacement": {
825
791
  "aliases": [],
826
792
  "args": {},
827
- "description": "List test results.",
793
+ "description": "Create a new url replacement for the test plan",
828
794
  "examples": [
829
795
  "<%= config.bin %> <%= command.id %>"
830
796
  ],
831
797
  "flags": {
832
- "project-id": {
833
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/results",
834
- "name": "project-id",
798
+ "test-plan-id": {
799
+ "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
800
+ "name": "test-plan-id",
835
801
  "required": true,
836
802
  "hasDynamicHelp": false,
837
803
  "multiple": false,
838
804
  "type": "option"
839
805
  },
840
- "page": {
841
- "description": "The number of page returns.",
842
- "name": "page",
843
- "required": false,
844
- "hasDynamicHelp": false,
845
- "multiple": false,
846
- "type": "option"
847
- },
848
- "per-page": {
849
- "description": "The number of items returns. Default number is 30 and up to a maximum of 100",
850
- "name": "per-page",
851
- "required": false,
852
- "hasDynamicHelp": false,
853
- "multiple": false,
854
- "type": "option"
855
- },
856
- "test-plan-id": {
857
- "description": "Test plan ID used to filter results.",
858
- "name": "test-plan-id",
859
- "required": false,
806
+ "create-url-replacement-request": {
807
+ "description": "A JSON object with the url to replace e.g. {\"pattern_url\":\"string\",\"replacement_url\":\"string\"}",
808
+ "name": "create-url-replacement-request",
809
+ "required": true,
860
810
  "hasDynamicHelp": false,
861
811
  "multiple": false,
862
812
  "type": "option"
@@ -864,7 +814,7 @@
864
814
  },
865
815
  "hasDynamicHelp": false,
866
816
  "hiddenAliases": [],
867
- "id": "web:api:list-results",
817
+ "id": "web:api:create-url-replacement",
868
818
  "pluginAlias": "@autifyhq/autify-cli",
869
819
  "pluginName": "@autifyhq/autify-cli",
870
820
  "pluginType": "core",
@@ -876,13 +826,13 @@
876
826
  "commands",
877
827
  "web",
878
828
  "api",
879
- "list-results.js"
829
+ "create-url-replacement.js"
880
830
  ]
881
831
  },
882
- "web:api:list-scenarios": {
832
+ "web:api:delete-access-point": {
883
833
  "aliases": [],
884
834
  "args": {},
885
- "description": "List scenarios.",
835
+ "description": "You can delete an access point by passing in its name.",
886
836
  "examples": [
887
837
  "<%= config.bin %> <%= command.id %>"
888
838
  ],
@@ -895,10 +845,10 @@
895
845
  "multiple": false,
896
846
  "type": "option"
897
847
  },
898
- "page": {
899
- "description": "The number of page returns.",
900
- "name": "page",
901
- "required": false,
848
+ "delete-access-point-request": {
849
+ "description": "A JSON object with the name of the access point to be deleted e.g. {\"name\":\"string\"}",
850
+ "name": "delete-access-point-request",
851
+ "required": true,
902
852
  "hasDynamicHelp": false,
903
853
  "multiple": false,
904
854
  "type": "option"
@@ -906,7 +856,7 @@
906
856
  },
907
857
  "hasDynamicHelp": false,
908
858
  "hiddenAliases": [],
909
- "id": "web:api:list-scenarios",
859
+ "id": "web:api:delete-access-point",
910
860
  "pluginAlias": "@autifyhq/autify-cli",
911
861
  "pluginName": "@autifyhq/autify-cli",
912
862
  "pluginType": "core",
@@ -918,29 +868,37 @@
918
868
  "commands",
919
869
  "web",
920
870
  "api",
921
- "list-scenarios.js"
871
+ "delete-access-point.js"
922
872
  ]
923
873
  },
924
- "web:api:list-test-plan-variable": {
874
+ "web:api:delete-test-plan-variable": {
925
875
  "aliases": [],
926
876
  "args": {},
927
- "description": "List the test plan's variables",
877
+ "description": "Delete an existing test plan variable for the test plan",
928
878
  "examples": [
929
879
  "<%= config.bin %> <%= command.id %>"
930
880
  ],
931
881
  "flags": {
932
882
  "test-plan-id": {
933
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
883
+ "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/",
934
884
  "name": "test-plan-id",
935
885
  "required": true,
936
886
  "hasDynamicHelp": false,
937
887
  "multiple": false,
938
888
  "type": "option"
889
+ },
890
+ "test-plan-variable-id": {
891
+ "description": "test_plan_variable id",
892
+ "name": "test-plan-variable-id",
893
+ "required": true,
894
+ "hasDynamicHelp": false,
895
+ "multiple": false,
896
+ "type": "option"
939
897
  }
940
898
  },
941
899
  "hasDynamicHelp": false,
942
900
  "hiddenAliases": [],
943
- "id": "web:api:list-test-plan-variable",
901
+ "id": "web:api:delete-test-plan-variable",
944
902
  "pluginAlias": "@autifyhq/autify-cli",
945
903
  "pluginName": "@autifyhq/autify-cli",
946
904
  "pluginType": "core",
@@ -952,13 +910,13 @@
952
910
  "commands",
953
911
  "web",
954
912
  "api",
955
- "list-test-plan-variable.js"
913
+ "delete-test-plan-variable.js"
956
914
  ]
957
915
  },
958
- "web:api:list-url-replacements": {
916
+ "web:api:delete-url-replacement": {
959
917
  "aliases": [],
960
918
  "args": {},
961
- "description": "List url replacements for the test plan",
919
+ "description": "Delete a url replacement for the test plan",
962
920
  "examples": [
963
921
  "<%= config.bin %> <%= command.id %>"
964
922
  ],
@@ -970,11 +928,19 @@
970
928
  "hasDynamicHelp": false,
971
929
  "multiple": false,
972
930
  "type": "option"
931
+ },
932
+ "url-replacement-id": {
933
+ "description": "url_replacement id",
934
+ "name": "url-replacement-id",
935
+ "required": true,
936
+ "hasDynamicHelp": false,
937
+ "multiple": false,
938
+ "type": "option"
973
939
  }
974
940
  },
975
941
  "hasDynamicHelp": false,
976
942
  "hiddenAliases": [],
977
- "id": "web:api:list-url-replacements",
943
+ "id": "web:api:delete-url-replacement",
978
944
  "pluginAlias": "@autifyhq/autify-cli",
979
945
  "pluginName": "@autifyhq/autify-cli",
980
946
  "pluginType": "core",
@@ -986,37 +952,37 @@
986
952
  "commands",
987
953
  "web",
988
954
  "api",
989
- "list-url-replacements.js"
955
+ "delete-url-replacement.js"
990
956
  ]
991
957
  },
992
- "web:api:update-test-plan-variable": {
958
+ "web:api:describe-result": {
993
959
  "aliases": [],
994
960
  "args": {},
995
- "description": "Update a url replacement for the test plan",
961
+ "description": "Get a test result.",
996
962
  "examples": [
997
963
  "<%= config.bin %> <%= command.id %>"
998
964
  ],
999
965
  "flags": {
1000
- "test-plan-id": {
1001
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
1002
- "name": "test-plan-id",
966
+ "project-id": {
967
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/results/4",
968
+ "name": "project-id",
1003
969
  "required": true,
1004
970
  "hasDynamicHelp": false,
1005
971
  "multiple": false,
1006
972
  "type": "option"
1007
973
  },
1008
- "test-plan-variable-id": {
1009
- "description": "test_plan_variable id",
1010
- "name": "test-plan-variable-id",
974
+ "result-id": {
975
+ "description": "For example, 4 for the following URL: https://app.autify.com/projects/1/results/4",
976
+ "name": "result-id",
1011
977
  "required": true,
1012
978
  "hasDynamicHelp": false,
1013
979
  "multiple": false,
1014
980
  "type": "option"
1015
981
  },
1016
- "update-test-plan-variable-request": {
1017
- "description": "A JSON object with the variable's new key and/or default_value's value to register e.g. {\"key\":\"string\",\"default_value\":\"string\"}",
1018
- "name": "update-test-plan-variable-request",
1019
- "required": true,
982
+ "get-details": {
983
+ "description": "The flag to get details of the test case result.",
984
+ "name": "get-details",
985
+ "required": false,
1020
986
  "hasDynamicHelp": false,
1021
987
  "multiple": false,
1022
988
  "type": "option"
@@ -1024,7 +990,7 @@
1024
990
  },
1025
991
  "hasDynamicHelp": false,
1026
992
  "hiddenAliases": [],
1027
- "id": "web:api:update-test-plan-variable",
993
+ "id": "web:api:describe-result",
1028
994
  "pluginAlias": "@autifyhq/autify-cli",
1029
995
  "pluginName": "@autifyhq/autify-cli",
1030
996
  "pluginType": "core",
@@ -1036,36 +1002,70 @@
1036
1002
  "commands",
1037
1003
  "web",
1038
1004
  "api",
1039
- "update-test-plan-variable.js"
1005
+ "describe-result.js"
1040
1006
  ]
1041
1007
  },
1042
- "web:api:update-url-replacement": {
1008
+ "web:api:describe-scenario": {
1043
1009
  "aliases": [],
1044
1010
  "args": {},
1045
- "description": "Update a url replacement for the test plan",
1011
+ "description": "Get a scenario.",
1046
1012
  "examples": [
1047
1013
  "<%= config.bin %> <%= command.id %>"
1048
1014
  ],
1049
1015
  "flags": {
1050
- "test-plan-id": {
1051
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
1052
- "name": "test-plan-id",
1016
+ "project-id": {
1017
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2",
1018
+ "name": "project-id",
1053
1019
  "required": true,
1054
1020
  "hasDynamicHelp": false,
1055
1021
  "multiple": false,
1056
1022
  "type": "option"
1057
1023
  },
1058
- "url-replacement-id": {
1059
- "description": "url_replacement id",
1060
- "name": "url-replacement-id",
1024
+ "scenario-id": {
1025
+ "description": "For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2",
1026
+ "name": "scenario-id",
1027
+ "required": true,
1028
+ "hasDynamicHelp": false,
1029
+ "multiple": false,
1030
+ "type": "option"
1031
+ }
1032
+ },
1033
+ "hasDynamicHelp": false,
1034
+ "hiddenAliases": [],
1035
+ "id": "web:api:describe-scenario",
1036
+ "pluginAlias": "@autifyhq/autify-cli",
1037
+ "pluginName": "@autifyhq/autify-cli",
1038
+ "pluginType": "core",
1039
+ "strict": true,
1040
+ "enableJsonFlag": false,
1041
+ "isESM": false,
1042
+ "relativePath": [
1043
+ "dist",
1044
+ "commands",
1045
+ "web",
1046
+ "api",
1047
+ "describe-scenario.js"
1048
+ ]
1049
+ },
1050
+ "web:api:execute-scenarios": {
1051
+ "aliases": [],
1052
+ "args": {},
1053
+ "description": "You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).",
1054
+ "examples": [
1055
+ "<%= config.bin %> <%= command.id %>"
1056
+ ],
1057
+ "flags": {
1058
+ "project-id": {
1059
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
1060
+ "name": "project-id",
1061
1061
  "required": true,
1062
1062
  "hasDynamicHelp": false,
1063
1063
  "multiple": false,
1064
1064
  "type": "option"
1065
1065
  },
1066
- "update-url-replacement-request": {
1067
- "description": "A JSON object with the url to replace. Either pattern_url or replacement_url is required. e.g. {\"pattern_url\":\"string\",\"replacement_url\":\"string\"}",
1068
- "name": "update-url-replacement-request",
1066
+ "execute-scenarios-request": {
1067
+ "description": "A JSON object with the scenarios and settings to execute e.g. {\"name\":\"string\",\"execution_type\":\"parallel\",\"capabilities\":[{\"os\":\"string\",\"os_type\":\"macos\",\"os_version\":\"string\",\"device\":\"string\",\"browser\":\"string\",\"browser_type\":\"chrome\",\"browser_version\":\"string\"}],\"url_replacements\":[{\"pattern_url\":\"string\",\"replacement_url\":\"string\"}],\"scenarios\":[{\"id\":0}],\"autify_connect\":{\"name\":\"string\"}}",
1068
+ "name": "execute-scenarios-request",
1069
1069
  "required": true,
1070
1070
  "hasDynamicHelp": false,
1071
1071
  "multiple": false,
@@ -1074,7 +1074,7 @@
1074
1074
  },
1075
1075
  "hasDynamicHelp": false,
1076
1076
  "hiddenAliases": [],
1077
- "id": "web:api:update-url-replacement",
1077
+ "id": "web:api:execute-scenarios",
1078
1078
  "pluginAlias": "@autifyhq/autify-cli",
1079
1079
  "pluginName": "@autifyhq/autify-cli",
1080
1080
  "pluginType": "core",
@@ -1086,21 +1086,37 @@
1086
1086
  "commands",
1087
1087
  "web",
1088
1088
  "api",
1089
- "update-url-replacement.js"
1089
+ "execute-scenarios.js"
1090
1090
  ]
1091
1091
  },
1092
- "web:auth:login": {
1092
+ "web:api:execute-schedule": {
1093
1093
  "aliases": [],
1094
1094
  "args": {},
1095
- "description": "Login to Autify for Web",
1095
+ "description": "\"Schedule\" is called as \"Test Plan\" now. If you want to run a test plan, use this endpoint.",
1096
1096
  "examples": [
1097
- "Start interactive setup:\n<%= config.bin %> <%= command.id %>",
1098
- "Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
1097
+ "<%= config.bin %> <%= command.id %>"
1099
1098
  ],
1100
- "flags": {},
1099
+ "flags": {
1100
+ "schedule-id": {
1101
+ "description": "For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3",
1102
+ "name": "schedule-id",
1103
+ "required": true,
1104
+ "hasDynamicHelp": false,
1105
+ "multiple": false,
1106
+ "type": "option"
1107
+ },
1108
+ "execute-schedule-request": {
1109
+ "description": "A JSON object with the options to execute a test plan. e.g. {\"autify_connect\":{\"name\":\"string\"}}",
1110
+ "name": "execute-schedule-request",
1111
+ "required": false,
1112
+ "hasDynamicHelp": false,
1113
+ "multiple": false,
1114
+ "type": "option"
1115
+ }
1116
+ },
1101
1117
  "hasDynamicHelp": false,
1102
1118
  "hiddenAliases": [],
1103
- "id": "web:auth:login",
1119
+ "id": "web:api:execute-schedule",
1104
1120
  "pluginAlias": "@autifyhq/autify-cli",
1105
1121
  "pluginName": "@autifyhq/autify-cli",
1106
1122
  "pluginType": "core",
@@ -1111,169 +1127,212 @@
1111
1127
  "dist",
1112
1128
  "commands",
1113
1129
  "web",
1114
- "auth",
1115
- "login.js"
1130
+ "api",
1131
+ "execute-schedule.js"
1116
1132
  ]
1117
1133
  },
1118
- "web:test:run": {
1134
+ "web:api:get-credit-usage": {
1119
1135
  "aliases": [],
1120
- "args": {
1121
- "scenario-or-test-plan-url": {
1122
- "description": "Scenario URL or Test plan URL e.g. https://app.autify.com/projects/<ID>/(scenarios|test_plans)/<ID>",
1123
- "name": "scenario-or-test-plan-url",
1124
- "required": true
1125
- }
1126
- },
1127
- "description": "Run a scenario or test plan.",
1136
+ "args": {},
1137
+ "description": "Get the number of credits used in the project Notes: This endpoint works only for organizations on credit-based plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a run-based plan.",
1128
1138
  "examples": [
1129
- "Run a test scenario (Default capability):\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000",
1130
- "Run a test plan:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/test_plans/0000",
1131
- "Run and wait a test scenario:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --wait --timeout 600",
1132
- "Run a test scenario with a specific capability:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --os \"Windows Server\" --browser Edge",
1133
- "With URL replacements:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 -r \"http://example.com http://example.net\" -r \"http://example.org http://example.net\"",
1134
- "Run a test with specifying the execution name:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --name \"Sample execution\"",
1135
- "Run a test scenario with Autify Connect:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --autify-connect NAME",
1136
- "Run a test scenario with Autify Connect Client:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client"
1139
+ "<%= config.bin %> <%= command.id %>"
1137
1140
  ],
1138
1141
  "flags": {
1139
- "name": {
1140
- "char": "n",
1141
- "description": "[Only for test scenario] Name of the test execution.",
1142
- "name": "name",
1142
+ "project-id": {
1143
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/credits",
1144
+ "name": "project-id",
1145
+ "required": true,
1143
1146
  "hasDynamicHelp": false,
1144
1147
  "multiple": false,
1145
1148
  "type": "option"
1146
1149
  },
1147
- "url-replacements": {
1148
- "char": "r",
1149
- "description": "URL replacements. Example: \"http://example.com http://example.net\"",
1150
- "name": "url-replacements",
1150
+ "date-from": {
1151
+ "description": "The date to start counting used credits from. If not specified, the date will be set to 1 week ago. Up to 90 days in advance can be specified. If the specified date is more than 90 days in the past, the date will be set to 90 days ago. Date must follow the format YYYY-MM-DD (example: \"2023-09-21\").",
1152
+ "name": "date-from",
1153
+ "required": false,
1151
1154
  "hasDynamicHelp": false,
1152
- "multiple": true,
1155
+ "multiple": false,
1153
1156
  "type": "option"
1154
1157
  },
1155
- "autify-connect": {
1156
- "description": "Name of the Autify Connect Access Point.",
1157
- "exclusive": [
1158
- "autify-connect-client"
1159
- ],
1160
- "name": "autify-connect",
1158
+ "date-to": {
1159
+ "description": "The date to end counting used credits from. If not specified, the date will be set to today. Date must follow the format YYYY-MM-DD (example: \"2023-09-28\").",
1160
+ "name": "date-to",
1161
+ "required": false,
1161
1162
  "hasDynamicHelp": false,
1162
1163
  "multiple": false,
1163
1164
  "type": "option"
1164
1165
  },
1165
- "autify-connect-client": {
1166
- "dependsOn": [
1167
- "wait"
1168
- ],
1169
- "description": "Start Autify Connect Client",
1170
- "exclusive": [
1171
- "autify-connect"
1172
- ],
1173
- "name": "autify-connect-client",
1174
- "allowNo": false,
1175
- "type": "boolean"
1176
- },
1177
- "autify-connect-client-verbose": {
1178
- "dependsOn": [
1179
- "autify-connect-client"
1180
- ],
1181
- "description": "Verbose output for Autify Connect Client.",
1182
- "name": "autify-connect-client-verbose",
1183
- "allowNo": false,
1184
- "type": "boolean"
1185
- },
1186
- "autify-connect-client-file-logging": {
1187
- "dependsOn": [
1188
- "autify-connect-client"
1189
- ],
1190
- "description": "Logging Autify Connect Client log to a file instead of console.",
1191
- "name": "autify-connect-client-file-logging",
1192
- "allowNo": false,
1193
- "type": "boolean"
1194
- },
1195
- "autify-connect-client-debug-server-port": {
1196
- "dependsOn": [
1197
- "autify-connect-client"
1198
- ],
1199
- "description": "Port for Autify Connect Client debug server. A random port will be used if not specified.",
1200
- "name": "autify-connect-client-debug-server-port",
1166
+ "scenario-id": {
1167
+ "description": "The scenario ID to filter used credits by.",
1168
+ "name": "scenario-id",
1169
+ "required": false,
1201
1170
  "hasDynamicHelp": false,
1202
1171
  "multiple": false,
1203
1172
  "type": "option"
1204
1173
  },
1205
- "autify-connect-client-extra-arguments": {
1206
- "dependsOn": [
1207
- "autify-connect-client"
1208
- ],
1209
- "description": "Extra command line arguments you want to pass to Autify Connect Client e.g. \"--tunnel-proxy http://proxy\".",
1210
- "name": "autify-connect-client-extra-arguments",
1174
+ "test-plan-id": {
1175
+ "description": "The test plan ID to filter used credits by.",
1176
+ "name": "test-plan-id",
1177
+ "required": false,
1211
1178
  "hasDynamicHelp": false,
1212
1179
  "multiple": false,
1213
1180
  "type": "option"
1214
1181
  },
1215
- "os": {
1216
- "description": "[Only for test scenario] OS to run the test",
1217
- "name": "os",
1182
+ "user-id": {
1183
+ "description": "The user ID that executed tests to filter used credits by.",
1184
+ "name": "user-id",
1185
+ "required": false,
1218
1186
  "hasDynamicHelp": false,
1219
1187
  "multiple": false,
1220
1188
  "type": "option"
1221
- },
1222
- "os-version": {
1223
- "description": "[Only for test scenario] OS version to run the test",
1224
- "name": "os-version",
1189
+ }
1190
+ },
1191
+ "hasDynamicHelp": false,
1192
+ "hiddenAliases": [],
1193
+ "id": "web:api:get-credit-usage",
1194
+ "pluginAlias": "@autifyhq/autify-cli",
1195
+ "pluginName": "@autifyhq/autify-cli",
1196
+ "pluginType": "core",
1197
+ "strict": true,
1198
+ "enableJsonFlag": false,
1199
+ "isESM": false,
1200
+ "relativePath": [
1201
+ "dist",
1202
+ "commands",
1203
+ "web",
1204
+ "api",
1205
+ "get-credit-usage.js"
1206
+ ]
1207
+ },
1208
+ "web:api:get-project-info": {
1209
+ "aliases": [],
1210
+ "args": {},
1211
+ "description": "Get project information.",
1212
+ "examples": [
1213
+ "<%= config.bin %> <%= command.id %>"
1214
+ ],
1215
+ "flags": {
1216
+ "project-id": {
1217
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/project_info",
1218
+ "name": "project-id",
1219
+ "required": true,
1225
1220
  "hasDynamicHelp": false,
1226
1221
  "multiple": false,
1227
1222
  "type": "option"
1228
- },
1229
- "browser": {
1230
- "description": "[Only for test scenario] Browser to run the test",
1231
- "name": "browser",
1223
+ }
1224
+ },
1225
+ "hasDynamicHelp": false,
1226
+ "hiddenAliases": [],
1227
+ "id": "web:api:get-project-info",
1228
+ "pluginAlias": "@autifyhq/autify-cli",
1229
+ "pluginName": "@autifyhq/autify-cli",
1230
+ "pluginType": "core",
1231
+ "strict": true,
1232
+ "enableJsonFlag": false,
1233
+ "isESM": false,
1234
+ "relativePath": [
1235
+ "dist",
1236
+ "commands",
1237
+ "web",
1238
+ "api",
1239
+ "get-project-info.js"
1240
+ ]
1241
+ },
1242
+ "web:api:list-access-points": {
1243
+ "aliases": [],
1244
+ "args": {},
1245
+ "description": "List access points for the project.",
1246
+ "examples": [
1247
+ "<%= config.bin %> <%= command.id %>"
1248
+ ],
1249
+ "flags": {
1250
+ "project-id": {
1251
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
1252
+ "name": "project-id",
1253
+ "required": true,
1232
1254
  "hasDynamicHelp": false,
1233
1255
  "multiple": false,
1234
1256
  "type": "option"
1235
1257
  },
1236
- "device": {
1237
- "description": "[Only for test scenario] Device to run the test",
1238
- "name": "device",
1258
+ "page": {
1259
+ "description": "The number of page returns.",
1260
+ "name": "page",
1261
+ "required": false,
1262
+ "hasDynamicHelp": false,
1263
+ "multiple": false,
1264
+ "type": "option"
1265
+ }
1266
+ },
1267
+ "hasDynamicHelp": false,
1268
+ "hiddenAliases": [],
1269
+ "id": "web:api:list-access-points",
1270
+ "pluginAlias": "@autifyhq/autify-cli",
1271
+ "pluginName": "@autifyhq/autify-cli",
1272
+ "pluginType": "core",
1273
+ "strict": true,
1274
+ "enableJsonFlag": false,
1275
+ "isESM": false,
1276
+ "relativePath": [
1277
+ "dist",
1278
+ "commands",
1279
+ "web",
1280
+ "api",
1281
+ "list-access-points.js"
1282
+ ]
1283
+ },
1284
+ "web:api:list-capabilities": {
1285
+ "aliases": [],
1286
+ "args": {},
1287
+ "description": "List available Capabilities.",
1288
+ "examples": [
1289
+ "<%= config.bin %> <%= command.id %>"
1290
+ ],
1291
+ "flags": {
1292
+ "project-id": {
1293
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities",
1294
+ "name": "project-id",
1295
+ "required": true,
1239
1296
  "hasDynamicHelp": false,
1240
1297
  "multiple": false,
1241
1298
  "type": "option"
1242
1299
  },
1243
- "device-type": {
1244
- "description": "[Only for test scenario] Device type to run the test",
1245
- "name": "device-type",
1300
+ "os": {
1301
+ "description": "os name to filter (deprecated)",
1302
+ "name": "os",
1303
+ "required": false,
1246
1304
  "hasDynamicHelp": false,
1247
1305
  "multiple": false,
1248
1306
  "type": "option"
1249
1307
  },
1250
- "wait": {
1251
- "char": "w",
1252
- "description": "Wait until the test finishes.",
1253
- "name": "wait",
1254
- "allowNo": false,
1255
- "type": "boolean"
1308
+ "os-type": {
1309
+ "description": "Type of the os to filter",
1310
+ "name": "os-type",
1311
+ "required": false,
1312
+ "hasDynamicHelp": false,
1313
+ "multiple": false,
1314
+ "type": "option"
1256
1315
  },
1257
- "timeout": {
1258
- "char": "t",
1259
- "description": "Timeout seconds when waiting for the finish of the test execution.",
1260
- "name": "timeout",
1261
- "default": 300,
1316
+ "browser": {
1317
+ "description": "browser name to filter (deprecated)",
1318
+ "name": "browser",
1319
+ "required": false,
1262
1320
  "hasDynamicHelp": false,
1263
1321
  "multiple": false,
1264
1322
  "type": "option"
1265
1323
  },
1266
- "verbose": {
1267
- "char": "v",
1268
- "description": "Verbose output",
1269
- "name": "verbose",
1270
- "allowNo": false,
1271
- "type": "boolean"
1324
+ "browser-type": {
1325
+ "description": "Type of the browser to filter",
1326
+ "name": "browser-type",
1327
+ "required": false,
1328
+ "hasDynamicHelp": false,
1329
+ "multiple": false,
1330
+ "type": "option"
1272
1331
  },
1273
- "max-retry-count": {
1274
- "description": "Maximum retry count while waiting. The command can take up to `timeout * (max-retry-count + 1)`. Only effective with `--wait`.",
1275
- "name": "max-retry-count",
1276
- "default": 0,
1332
+ "device-type": {
1333
+ "description": "device_type name to filter (mobile is deprecated)",
1334
+ "name": "device-type",
1335
+ "required": false,
1277
1336
  "hasDynamicHelp": false,
1278
1337
  "multiple": false,
1279
1338
  "type": "option"
@@ -1281,7 +1340,7 @@
1281
1340
  },
1282
1341
  "hasDynamicHelp": false,
1283
1342
  "hiddenAliases": [],
1284
- "id": "web:test:run",
1343
+ "id": "web:api:list-capabilities",
1285
1344
  "pluginAlias": "@autifyhq/autify-cli",
1286
1345
  "pluginName": "@autifyhq/autify-cli",
1287
1346
  "pluginType": "core",
@@ -1292,44 +1351,54 @@
1292
1351
  "dist",
1293
1352
  "commands",
1294
1353
  "web",
1295
- "test",
1296
- "run.js"
1354
+ "api",
1355
+ "list-capabilities.js"
1297
1356
  ]
1298
1357
  },
1299
- "web:test:wait": {
1358
+ "web:api:list-results": {
1300
1359
  "aliases": [],
1301
- "args": {
1302
- "test-result-url": {
1303
- "description": "Test result URL e.g. https://app.autify.com/projects/<ID>/results/<ID>",
1304
- "name": "test-result-url",
1305
- "required": true
1306
- }
1307
- },
1308
- "description": "Wait a test result until it finishes.",
1360
+ "args": {},
1361
+ "description": "List test results.",
1309
1362
  "examples": [
1310
- "<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/results/0000"
1363
+ "<%= config.bin %> <%= command.id %>"
1311
1364
  ],
1312
1365
  "flags": {
1313
- "timeout": {
1314
- "char": "t",
1315
- "description": "Timeout seconds when waiting for the finish of the test execution.",
1316
- "name": "timeout",
1317
- "default": 300,
1366
+ "project-id": {
1367
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/results",
1368
+ "name": "project-id",
1369
+ "required": true,
1318
1370
  "hasDynamicHelp": false,
1319
1371
  "multiple": false,
1320
1372
  "type": "option"
1321
1373
  },
1322
- "verbose": {
1323
- "char": "v",
1324
- "description": "Verbose output",
1325
- "name": "verbose",
1326
- "allowNo": false,
1327
- "type": "boolean"
1374
+ "page": {
1375
+ "description": "The number of page returns.",
1376
+ "name": "page",
1377
+ "required": false,
1378
+ "hasDynamicHelp": false,
1379
+ "multiple": false,
1380
+ "type": "option"
1381
+ },
1382
+ "per-page": {
1383
+ "description": "The number of items returns. Default number is 30 and up to a maximum of 100",
1384
+ "name": "per-page",
1385
+ "required": false,
1386
+ "hasDynamicHelp": false,
1387
+ "multiple": false,
1388
+ "type": "option"
1389
+ },
1390
+ "test-plan-id": {
1391
+ "description": "Test plan ID used to filter results.",
1392
+ "name": "test-plan-id",
1393
+ "required": false,
1394
+ "hasDynamicHelp": false,
1395
+ "multiple": false,
1396
+ "type": "option"
1328
1397
  }
1329
1398
  },
1330
1399
  "hasDynamicHelp": false,
1331
1400
  "hiddenAliases": [],
1332
- "id": "web:test:wait",
1401
+ "id": "web:api:list-results",
1333
1402
  "pluginAlias": "@autifyhq/autify-cli",
1334
1403
  "pluginName": "@autifyhq/autify-cli",
1335
1404
  "pluginType": "core",
@@ -1340,30 +1409,30 @@
1340
1409
  "dist",
1341
1410
  "commands",
1342
1411
  "web",
1343
- "test",
1344
- "wait.js"
1412
+ "api",
1413
+ "list-results.js"
1345
1414
  ]
1346
1415
  },
1347
- "mobile:api:describe-test-result": {
1416
+ "web:api:list-scenarios": {
1348
1417
  "aliases": [],
1349
1418
  "args": {},
1350
- "description": "Get a test result.",
1419
+ "description": "List scenarios.",
1351
1420
  "examples": [
1352
1421
  "<%= config.bin %> <%= command.id %>"
1353
1422
  ],
1354
1423
  "flags": {
1355
1424
  "project-id": {
1356
- "description": "ID of the project from which the test results will be obtained.",
1425
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
1357
1426
  "name": "project-id",
1358
1427
  "required": true,
1359
1428
  "hasDynamicHelp": false,
1360
1429
  "multiple": false,
1361
1430
  "type": "option"
1362
1431
  },
1363
- "id": {
1364
- "description": "Test Result ID.",
1365
- "name": "id",
1366
- "required": true,
1432
+ "page": {
1433
+ "description": "The number of page returns.",
1434
+ "name": "page",
1435
+ "required": false,
1367
1436
  "hasDynamicHelp": false,
1368
1437
  "multiple": false,
1369
1438
  "type": "option"
@@ -1371,7 +1440,7 @@
1371
1440
  },
1372
1441
  "hasDynamicHelp": false,
1373
1442
  "hiddenAliases": [],
1374
- "id": "mobile:api:describe-test-result",
1443
+ "id": "web:api:list-scenarios",
1375
1444
  "pluginAlias": "@autifyhq/autify-cli",
1376
1445
  "pluginName": "@autifyhq/autify-cli",
1377
1446
  "pluginType": "core",
@@ -1381,47 +1450,57 @@
1381
1450
  "relativePath": [
1382
1451
  "dist",
1383
1452
  "commands",
1384
- "mobile",
1453
+ "web",
1385
1454
  "api",
1386
- "describe-test-result.js"
1455
+ "list-scenarios.js"
1387
1456
  ]
1388
1457
  },
1389
- "mobile:api:list-test-results": {
1458
+ "web:api:list-test-plan-variable": {
1390
1459
  "aliases": [],
1391
1460
  "args": {},
1392
- "description": "List test results.",
1461
+ "description": "List the test plan's variables",
1393
1462
  "examples": [
1394
1463
  "<%= config.bin %> <%= command.id %>"
1395
1464
  ],
1396
1465
  "flags": {
1397
- "project-id": {
1398
- "description": "ID of the project from which the list of test results will be retrieved.",
1399
- "name": "project-id",
1466
+ "test-plan-id": {
1467
+ "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
1468
+ "name": "test-plan-id",
1400
1469
  "required": true,
1401
1470
  "hasDynamicHelp": false,
1402
1471
  "multiple": false,
1403
1472
  "type": "option"
1404
- },
1405
- "page": {
1406
- "description": "Page number to be retrieved.",
1407
- "name": "page",
1408
- "required": false,
1409
- "hasDynamicHelp": false,
1410
- "multiple": false,
1411
- "type": "option"
1412
- },
1413
- "per-page": {
1414
- "description": "Number of test results per page.",
1415
- "name": "per-page",
1416
- "required": false,
1417
- "hasDynamicHelp": false,
1418
- "multiple": false,
1419
- "type": "option"
1420
- },
1473
+ }
1474
+ },
1475
+ "hasDynamicHelp": false,
1476
+ "hiddenAliases": [],
1477
+ "id": "web:api:list-test-plan-variable",
1478
+ "pluginAlias": "@autifyhq/autify-cli",
1479
+ "pluginName": "@autifyhq/autify-cli",
1480
+ "pluginType": "core",
1481
+ "strict": true,
1482
+ "enableJsonFlag": false,
1483
+ "isESM": false,
1484
+ "relativePath": [
1485
+ "dist",
1486
+ "commands",
1487
+ "web",
1488
+ "api",
1489
+ "list-test-plan-variable.js"
1490
+ ]
1491
+ },
1492
+ "web:api:list-url-replacements": {
1493
+ "aliases": [],
1494
+ "args": {},
1495
+ "description": "List url replacements for the test plan",
1496
+ "examples": [
1497
+ "<%= config.bin %> <%= command.id %>"
1498
+ ],
1499
+ "flags": {
1421
1500
  "test-plan-id": {
1422
- "description": "ID of the test plan.",
1501
+ "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
1423
1502
  "name": "test-plan-id",
1424
- "required": false,
1503
+ "required": true,
1425
1504
  "hasDynamicHelp": false,
1426
1505
  "multiple": false,
1427
1506
  "type": "option"
@@ -1429,7 +1508,7 @@
1429
1508
  },
1430
1509
  "hasDynamicHelp": false,
1431
1510
  "hiddenAliases": [],
1432
- "id": "mobile:api:list-test-results",
1511
+ "id": "web:api:list-url-replacements",
1433
1512
  "pluginAlias": "@autifyhq/autify-cli",
1434
1513
  "pluginName": "@autifyhq/autify-cli",
1435
1514
  "pluginType": "core",
@@ -1439,30 +1518,38 @@
1439
1518
  "relativePath": [
1440
1519
  "dist",
1441
1520
  "commands",
1442
- "mobile",
1521
+ "web",
1443
1522
  "api",
1444
- "list-test-results.js"
1523
+ "list-url-replacements.js"
1445
1524
  ]
1446
1525
  },
1447
- "mobile:api:run-test-plan": {
1526
+ "web:api:update-test-plan-variable": {
1448
1527
  "aliases": [],
1449
1528
  "args": {},
1450
- "description": "Run a test plan",
1529
+ "description": "Update a url replacement for the test plan",
1451
1530
  "examples": [
1452
1531
  "<%= config.bin %> <%= command.id %>"
1453
1532
  ],
1454
1533
  "flags": {
1455
1534
  "test-plan-id": {
1456
- "description": "The ID of the test plan to run.",
1535
+ "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
1457
1536
  "name": "test-plan-id",
1458
1537
  "required": true,
1459
1538
  "hasDynamicHelp": false,
1460
1539
  "multiple": false,
1461
1540
  "type": "option"
1462
1541
  },
1463
- "run-test-plan-request": {
1464
- "description": "A JSON object with the build_id to execute the test plan. e.g. {\"build_id\":\"string\"}",
1465
- "name": "run-test-plan-request",
1542
+ "test-plan-variable-id": {
1543
+ "description": "test_plan_variable id",
1544
+ "name": "test-plan-variable-id",
1545
+ "required": true,
1546
+ "hasDynamicHelp": false,
1547
+ "multiple": false,
1548
+ "type": "option"
1549
+ },
1550
+ "update-test-plan-variable-request": {
1551
+ "description": "A JSON object with the variable's new key and/or default_value's value to register e.g. {\"key\":\"string\",\"default_value\":\"string\"}",
1552
+ "name": "update-test-plan-variable-request",
1466
1553
  "required": true,
1467
1554
  "hasDynamicHelp": false,
1468
1555
  "multiple": false,
@@ -1471,7 +1558,7 @@
1471
1558
  },
1472
1559
  "hasDynamicHelp": false,
1473
1560
  "hiddenAliases": [],
1474
- "id": "mobile:api:run-test-plan",
1561
+ "id": "web:api:update-test-plan-variable",
1475
1562
  "pluginAlias": "@autifyhq/autify-cli",
1476
1563
  "pluginName": "@autifyhq/autify-cli",
1477
1564
  "pluginType": "core",
@@ -1481,30 +1568,38 @@
1481
1568
  "relativePath": [
1482
1569
  "dist",
1483
1570
  "commands",
1484
- "mobile",
1571
+ "web",
1485
1572
  "api",
1486
- "run-test-plan.js"
1573
+ "update-test-plan-variable.js"
1487
1574
  ]
1488
1575
  },
1489
- "mobile:api:upload-build": {
1576
+ "web:api:update-url-replacement": {
1490
1577
  "aliases": [],
1491
1578
  "args": {},
1492
- "description": "Upload the build file.",
1579
+ "description": "Update a url replacement for the test plan",
1493
1580
  "examples": [
1494
1581
  "<%= config.bin %> <%= command.id %>"
1495
1582
  ],
1496
1583
  "flags": {
1497
- "project-id": {
1498
- "description": "The ID of the project to upload the build file to.",
1499
- "name": "project-id",
1584
+ "test-plan-id": {
1585
+ "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
1586
+ "name": "test-plan-id",
1500
1587
  "required": true,
1501
1588
  "hasDynamicHelp": false,
1502
1589
  "multiple": false,
1503
1590
  "type": "option"
1504
1591
  },
1505
- "file": {
1506
- "description": "Build file.",
1507
- "name": "file",
1592
+ "url-replacement-id": {
1593
+ "description": "url_replacement id",
1594
+ "name": "url-replacement-id",
1595
+ "required": true,
1596
+ "hasDynamicHelp": false,
1597
+ "multiple": false,
1598
+ "type": "option"
1599
+ },
1600
+ "update-url-replacement-request": {
1601
+ "description": "A JSON object with the url to replace. Either pattern_url or replacement_url is required. e.g. {\"pattern_url\":\"string\",\"replacement_url\":\"string\"}",
1602
+ "name": "update-url-replacement-request",
1508
1603
  "required": true,
1509
1604
  "hasDynamicHelp": false,
1510
1605
  "multiple": false,
@@ -1513,7 +1608,7 @@
1513
1608
  },
1514
1609
  "hasDynamicHelp": false,
1515
1610
  "hiddenAliases": [],
1516
- "id": "mobile:api:upload-build",
1611
+ "id": "web:api:update-url-replacement",
1517
1612
  "pluginAlias": "@autifyhq/autify-cli",
1518
1613
  "pluginName": "@autifyhq/autify-cli",
1519
1614
  "pluginType": "core",
@@ -1523,15 +1618,15 @@
1523
1618
  "relativePath": [
1524
1619
  "dist",
1525
1620
  "commands",
1526
- "mobile",
1621
+ "web",
1527
1622
  "api",
1528
- "upload-build.js"
1623
+ "update-url-replacement.js"
1529
1624
  ]
1530
1625
  },
1531
- "mobile:auth:login": {
1626
+ "web:auth:login": {
1532
1627
  "aliases": [],
1533
1628
  "args": {},
1534
- "description": "Login to Autify for Mobile",
1629
+ "description": "Login to Autify for Web",
1535
1630
  "examples": [
1536
1631
  "Start interactive setup:\n<%= config.bin %> <%= command.id %>",
1537
1632
  "Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
@@ -1539,7 +1634,7 @@
1539
1634
  "flags": {},
1540
1635
  "hasDynamicHelp": false,
1541
1636
  "hiddenAliases": [],
1542
- "id": "mobile:auth:login",
1637
+ "id": "web:auth:login",
1543
1638
  "pluginAlias": "@autifyhq/autify-cli",
1544
1639
  "pluginName": "@autifyhq/autify-cli",
1545
1640
  "pluginType": "core",
@@ -1549,93 +1644,139 @@
1549
1644
  "relativePath": [
1550
1645
  "dist",
1551
1646
  "commands",
1552
- "mobile",
1647
+ "web",
1553
1648
  "auth",
1554
1649
  "login.js"
1555
1650
  ]
1556
1651
  },
1557
- "mobile:build:upload": {
1652
+ "web:test:run": {
1558
1653
  "aliases": [],
1559
1654
  "args": {
1560
- "build-path": {
1561
- "description": "File path to the iOS app (*.app, *.ipa) or Android app (*.apk).",
1562
- "name": "build-path",
1655
+ "scenario-or-test-plan-url": {
1656
+ "description": "Scenario URL or Test plan URL e.g. https://app.autify.com/projects/<ID>/(scenarios|test_plans)/<ID>",
1657
+ "name": "scenario-or-test-plan-url",
1563
1658
  "required": true
1564
1659
  }
1565
1660
  },
1566
- "description": "Upload a build file",
1661
+ "description": "Run a scenario or test plan.",
1567
1662
  "examples": [
1568
- "<%= config.bin %> <%= command.id %>",
1569
- "Upload build file\n<%= config.bin %> <%= command.id %> --workspace-id AAA ./my.app",
1570
- "Upload build file (JSON output)\n<%= config.bin %> <%= command.id %> --workspace-id AAA ./my.app --json"
1663
+ "Run a test scenario (Default capability):\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000",
1664
+ "Run a test plan:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/test_plans/0000",
1665
+ "Run and wait a test scenario:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --wait --timeout 600",
1666
+ "Run a test scenario with a specific capability:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --os \"Windows Server\" --browser Edge",
1667
+ "With URL replacements:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 -r \"http://example.com http://example.net\" -r \"http://example.org http://example.net\"",
1668
+ "Run a test with specifying the execution name:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --name \"Sample execution\"",
1669
+ "Run a test scenario with Autify Connect:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --autify-connect NAME",
1670
+ "Run a test scenario with Autify Connect Client:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client"
1571
1671
  ],
1572
1672
  "flags": {
1573
- "json": {
1574
- "description": "Format output as json.",
1575
- "helpGroup": "GLOBAL",
1576
- "name": "json",
1577
- "allowNo": false,
1578
- "type": "boolean"
1579
- },
1580
- "workspace-id": {
1581
- "char": "w",
1582
- "description": "Workspace ID to upload the build file",
1583
- "name": "workspace-id",
1584
- "required": true,
1673
+ "name": {
1674
+ "char": "n",
1675
+ "description": "[Only for test scenario] Name of the test execution.",
1676
+ "name": "name",
1585
1677
  "hasDynamicHelp": false,
1586
1678
  "multiple": false,
1587
1679
  "type": "option"
1588
- }
1589
- },
1590
- "hasDynamicHelp": false,
1591
- "hiddenAliases": [],
1592
- "id": "mobile:build:upload",
1593
- "pluginAlias": "@autifyhq/autify-cli",
1594
- "pluginName": "@autifyhq/autify-cli",
1595
- "pluginType": "core",
1596
- "strict": true,
1597
- "enableJsonFlag": true,
1598
- "isESM": false,
1599
- "relativePath": [
1600
- "dist",
1601
- "commands",
1602
- "mobile",
1603
- "build",
1604
- "upload.js"
1605
- ]
1606
- },
1607
- "mobile:test:run": {
1608
- "aliases": [],
1609
- "args": {
1610
- "test-plan-url": {
1611
- "description": "Test plan URL e.g. https://mobile-app.autify.com/projects/<ID>/test_plans/<ID>",
1612
- "name": "test-plan-url",
1613
- "required": true
1614
- }
1615
- },
1616
- "description": "Run a test plan.",
1617
- "examples": [
1618
- "Run a test plan with a build ID:\n<%= config.bin %> <%= command.id %> --build-id CCC https://mobile-app.autify.com/projects/AAA/test_plans/BBB",
1619
- "Run a test plan with a new build file:\n<%= config.bin %> <%= command.id %> --build-path ./my.[app|apk] https://mobile-app.autify.com/projects/AAA/test_plans/BBB",
1620
- "Run and wait a test plan:\n<%= config.bin %> <%= command.id %> --build-id CCC https://mobile-app.autify.com/projects/AAA/test_plans/BBB --wait --timeout 600"
1621
- ],
1622
- "flags": {
1623
- "build-id": {
1624
- "description": "ID of the already uploaded build.",
1680
+ },
1681
+ "url-replacements": {
1682
+ "char": "r",
1683
+ "description": "URL replacements. Example: \"http://example.com http://example.net\"",
1684
+ "name": "url-replacements",
1685
+ "hasDynamicHelp": false,
1686
+ "multiple": true,
1687
+ "type": "option"
1688
+ },
1689
+ "autify-connect": {
1690
+ "description": "Name of the Autify Connect Access Point.",
1625
1691
  "exclusive": [
1626
- "build-path"
1692
+ "autify-connect-client"
1627
1693
  ],
1628
- "name": "build-id",
1694
+ "name": "autify-connect",
1629
1695
  "hasDynamicHelp": false,
1630
1696
  "multiple": false,
1631
1697
  "type": "option"
1632
1698
  },
1633
- "build-path": {
1634
- "description": "File path to the iOS app (*.app, *.ipa) or Android app (*.apk).",
1699
+ "autify-connect-client": {
1700
+ "dependsOn": [
1701
+ "wait"
1702
+ ],
1703
+ "description": "Start Autify Connect Client",
1635
1704
  "exclusive": [
1636
- "build-id"
1705
+ "autify-connect"
1637
1706
  ],
1638
- "name": "build-path",
1707
+ "name": "autify-connect-client",
1708
+ "allowNo": false,
1709
+ "type": "boolean"
1710
+ },
1711
+ "autify-connect-client-verbose": {
1712
+ "dependsOn": [
1713
+ "autify-connect-client"
1714
+ ],
1715
+ "description": "Verbose output for Autify Connect Client.",
1716
+ "name": "autify-connect-client-verbose",
1717
+ "allowNo": false,
1718
+ "type": "boolean"
1719
+ },
1720
+ "autify-connect-client-file-logging": {
1721
+ "dependsOn": [
1722
+ "autify-connect-client"
1723
+ ],
1724
+ "description": "Logging Autify Connect Client log to a file instead of console.",
1725
+ "name": "autify-connect-client-file-logging",
1726
+ "allowNo": false,
1727
+ "type": "boolean"
1728
+ },
1729
+ "autify-connect-client-debug-server-port": {
1730
+ "dependsOn": [
1731
+ "autify-connect-client"
1732
+ ],
1733
+ "description": "Port for Autify Connect Client debug server. A random port will be used if not specified.",
1734
+ "name": "autify-connect-client-debug-server-port",
1735
+ "hasDynamicHelp": false,
1736
+ "multiple": false,
1737
+ "type": "option"
1738
+ },
1739
+ "autify-connect-client-extra-arguments": {
1740
+ "dependsOn": [
1741
+ "autify-connect-client"
1742
+ ],
1743
+ "description": "Extra command line arguments you want to pass to Autify Connect Client e.g. \"--tunnel-proxy http://proxy\".",
1744
+ "name": "autify-connect-client-extra-arguments",
1745
+ "hasDynamicHelp": false,
1746
+ "multiple": false,
1747
+ "type": "option"
1748
+ },
1749
+ "os": {
1750
+ "description": "[Only for test scenario] OS to run the test",
1751
+ "name": "os",
1752
+ "hasDynamicHelp": false,
1753
+ "multiple": false,
1754
+ "type": "option"
1755
+ },
1756
+ "os-version": {
1757
+ "description": "[Only for test scenario] OS version to run the test",
1758
+ "name": "os-version",
1759
+ "hasDynamicHelp": false,
1760
+ "multiple": false,
1761
+ "type": "option"
1762
+ },
1763
+ "browser": {
1764
+ "description": "[Only for test scenario] Browser to run the test",
1765
+ "name": "browser",
1766
+ "hasDynamicHelp": false,
1767
+ "multiple": false,
1768
+ "type": "option"
1769
+ },
1770
+ "device": {
1771
+ "description": "[Only for test scenario] Device to run the test",
1772
+ "name": "device",
1773
+ "hasDynamicHelp": false,
1774
+ "multiple": false,
1775
+ "type": "option"
1776
+ },
1777
+ "device-type": {
1778
+ "description": "[Only for test scenario] Device type to run the test",
1779
+ "name": "device-type",
1639
1780
  "hasDynamicHelp": false,
1640
1781
  "multiple": false,
1641
1782
  "type": "option"
@@ -1664,7 +1805,7 @@
1664
1805
  "type": "boolean"
1665
1806
  },
1666
1807
  "max-retry-count": {
1667
- "description": "Maximum retry count. The command can take up to timeout * (max-retry-count + 1).",
1808
+ "description": "Maximum retry count while waiting. The command can take up to `timeout * (max-retry-count + 1)`. Only effective with `--wait`.",
1668
1809
  "name": "max-retry-count",
1669
1810
  "default": 0,
1670
1811
  "hasDynamicHelp": false,
@@ -1674,7 +1815,7 @@
1674
1815
  },
1675
1816
  "hasDynamicHelp": false,
1676
1817
  "hiddenAliases": [],
1677
- "id": "mobile:test:run",
1818
+ "id": "web:test:run",
1678
1819
  "pluginAlias": "@autifyhq/autify-cli",
1679
1820
  "pluginName": "@autifyhq/autify-cli",
1680
1821
  "pluginType": "core",
@@ -1684,23 +1825,23 @@
1684
1825
  "relativePath": [
1685
1826
  "dist",
1686
1827
  "commands",
1687
- "mobile",
1828
+ "web",
1688
1829
  "test",
1689
1830
  "run.js"
1690
1831
  ]
1691
1832
  },
1692
- "mobile:test:wait": {
1833
+ "web:test:wait": {
1693
1834
  "aliases": [],
1694
1835
  "args": {
1695
1836
  "test-result-url": {
1696
- "description": "Test result URL e.g. https://mobile-app.autify.com/projects/<ID>/results/<ID>",
1837
+ "description": "Test result URL e.g. https://app.autify.com/projects/<ID>/results/<ID>",
1697
1838
  "name": "test-result-url",
1698
1839
  "required": true
1699
1840
  }
1700
1841
  },
1701
1842
  "description": "Wait a test result until it finishes.",
1702
1843
  "examples": [
1703
- "<%= config.bin %> <%= command.id %> https://mobile-app.autify.com/projects/AAA/results/BBB"
1844
+ "<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/results/0000"
1704
1845
  ],
1705
1846
  "flags": {
1706
1847
  "timeout": {
@@ -1722,7 +1863,7 @@
1722
1863
  },
1723
1864
  "hasDynamicHelp": false,
1724
1865
  "hiddenAliases": [],
1725
- "id": "mobile:test:wait",
1866
+ "id": "web:test:wait",
1726
1867
  "pluginAlias": "@autifyhq/autify-cli",
1727
1868
  "pluginName": "@autifyhq/autify-cli",
1728
1869
  "pluginType": "core",
@@ -1732,11 +1873,11 @@
1732
1873
  "relativePath": [
1733
1874
  "dist",
1734
1875
  "commands",
1735
- "mobile",
1876
+ "web",
1736
1877
  "test",
1737
1878
  "wait.js"
1738
1879
  ]
1739
1880
  }
1740
1881
  },
1741
- "version": "0.51.0"
1882
+ "version": "0.53.0"
1742
1883
  }