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