@autifyhq/autify-cli 0.53.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,15 +700,15 @@
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:api:create-access-point": {
708
+ "web:api:list-access-points": {
707
709
  "aliases": [],
708
710
  "args": {},
709
- "description": "You can generate a new access point by passing in its name.",
711
+ "description": "List access points for the project.",
710
712
  "examples": [
711
713
  "<%= config.bin %> <%= command.id %>"
712
714
  ],
@@ -719,10 +721,10 @@
719
721
  "multiple": false,
720
722
  "type": "option"
721
723
  },
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,
724
+ "page": {
725
+ "description": "The number of page returns.",
726
+ "name": "page",
727
+ "required": false,
726
728
  "hasDynamicHelp": false,
727
729
  "multiple": false,
728
730
  "type": "option"
@@ -730,7 +732,7 @@
730
732
  },
731
733
  "hasDynamicHelp": false,
732
734
  "hiddenAliases": [],
733
- "id": "web:api:create-access-point",
735
+ "id": "web:api:list-access-points",
734
736
  "pluginAlias": "@autifyhq/autify-cli",
735
737
  "pluginName": "@autifyhq/autify-cli",
736
738
  "pluginType": "core",
@@ -742,37 +744,69 @@
742
744
  "commands",
743
745
  "web",
744
746
  "api",
745
- "create-access-point.js"
747
+ "list-access-points.js"
746
748
  ]
747
749
  },
748
- "web:api:create-test-plan-variable": {
750
+ "web:api:list-capabilities": {
749
751
  "aliases": [],
750
752
  "args": {},
751
- "description": "Create a new variable for the test plan",
753
+ "description": "List available Capabilities.",
752
754
  "examples": [
753
755
  "<%= config.bin %> <%= command.id %>"
754
756
  ],
755
757
  "flags": {
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",
758
+ "project-id": {
759
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities",
760
+ "name": "project-id",
759
761
  "required": true,
760
762
  "hasDynamicHelp": false,
761
763
  "multiple": false,
762
764
  "type": "option"
763
765
  },
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,
766
+ "os": {
767
+ "description": "os name to filter (deprecated)",
768
+ "name": "os",
769
+ "required": false,
768
770
  "hasDynamicHelp": false,
769
771
  "multiple": false,
770
772
  "type": "option"
771
- }
772
- },
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,
802
+ "hasDynamicHelp": false,
803
+ "multiple": false,
804
+ "type": "option"
805
+ }
806
+ },
773
807
  "hasDynamicHelp": false,
774
808
  "hiddenAliases": [],
775
- "id": "web:api:create-test-plan-variable",
809
+ "id": "web:api:list-capabilities",
776
810
  "pluginAlias": "@autifyhq/autify-cli",
777
811
  "pluginName": "@autifyhq/autify-cli",
778
812
  "pluginType": "core",
@@ -784,29 +818,45 @@
784
818
  "commands",
785
819
  "web",
786
820
  "api",
787
- "create-test-plan-variable.js"
821
+ "list-capabilities.js"
788
822
  ]
789
823
  },
790
- "web:api:create-url-replacement": {
824
+ "web:api:list-results": {
791
825
  "aliases": [],
792
826
  "args": {},
793
- "description": "Create a new url replacement for the test plan",
827
+ "description": "List test results.",
794
828
  "examples": [
795
829
  "<%= config.bin %> <%= command.id %>"
796
830
  ],
797
831
  "flags": {
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",
832
+ "project-id": {
833
+ "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/results",
834
+ "name": "project-id",
801
835
  "required": true,
802
836
  "hasDynamicHelp": false,
803
837
  "multiple": false,
804
838
  "type": "option"
805
839
  },
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,
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,
810
860
  "hasDynamicHelp": false,
811
861
  "multiple": false,
812
862
  "type": "option"
@@ -814,7 +864,7 @@
814
864
  },
815
865
  "hasDynamicHelp": false,
816
866
  "hiddenAliases": [],
817
- "id": "web:api:create-url-replacement",
867
+ "id": "web:api:list-results",
818
868
  "pluginAlias": "@autifyhq/autify-cli",
819
869
  "pluginName": "@autifyhq/autify-cli",
820
870
  "pluginType": "core",
@@ -826,13 +876,13 @@
826
876
  "commands",
827
877
  "web",
828
878
  "api",
829
- "create-url-replacement.js"
879
+ "list-results.js"
830
880
  ]
831
881
  },
832
- "web:api:delete-access-point": {
882
+ "web:api:list-scenarios": {
833
883
  "aliases": [],
834
884
  "args": {},
835
- "description": "You can delete an access point by passing in its name.",
885
+ "description": "List scenarios.",
836
886
  "examples": [
837
887
  "<%= config.bin %> <%= command.id %>"
838
888
  ],
@@ -845,10 +895,10 @@
845
895
  "multiple": false,
846
896
  "type": "option"
847
897
  },
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,
898
+ "page": {
899
+ "description": "The number of page returns.",
900
+ "name": "page",
901
+ "required": false,
852
902
  "hasDynamicHelp": false,
853
903
  "multiple": false,
854
904
  "type": "option"
@@ -856,7 +906,7 @@
856
906
  },
857
907
  "hasDynamicHelp": false,
858
908
  "hiddenAliases": [],
859
- "id": "web:api:delete-access-point",
909
+ "id": "web:api:list-scenarios",
860
910
  "pluginAlias": "@autifyhq/autify-cli",
861
911
  "pluginName": "@autifyhq/autify-cli",
862
912
  "pluginType": "core",
@@ -868,37 +918,29 @@
868
918
  "commands",
869
919
  "web",
870
920
  "api",
871
- "delete-access-point.js"
921
+ "list-scenarios.js"
872
922
  ]
873
923
  },
874
- "web:api:delete-test-plan-variable": {
924
+ "web:api:list-test-plan-variable": {
875
925
  "aliases": [],
876
926
  "args": {},
877
- "description": "Delete an existing test plan variable for the test plan",
927
+ "description": "List the test plan's variables",
878
928
  "examples": [
879
929
  "<%= config.bin %> <%= command.id %>"
880
930
  ],
881
931
  "flags": {
882
932
  "test-plan-id": {
883
- "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",
884
934
  "name": "test-plan-id",
885
935
  "required": true,
886
936
  "hasDynamicHelp": false,
887
937
  "multiple": false,
888
938
  "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"
897
939
  }
898
940
  },
899
941
  "hasDynamicHelp": false,
900
942
  "hiddenAliases": [],
901
- "id": "web:api:delete-test-plan-variable",
943
+ "id": "web:api:list-test-plan-variable",
902
944
  "pluginAlias": "@autifyhq/autify-cli",
903
945
  "pluginName": "@autifyhq/autify-cli",
904
946
  "pluginType": "core",
@@ -910,13 +952,13 @@
910
952
  "commands",
911
953
  "web",
912
954
  "api",
913
- "delete-test-plan-variable.js"
955
+ "list-test-plan-variable.js"
914
956
  ]
915
957
  },
916
- "web:api:delete-url-replacement": {
958
+ "web:api:list-url-replacements": {
917
959
  "aliases": [],
918
960
  "args": {},
919
- "description": "Delete a url replacement for the test plan",
961
+ "description": "List url replacements for the test plan",
920
962
  "examples": [
921
963
  "<%= config.bin %> <%= command.id %>"
922
964
  ],
@@ -928,19 +970,11 @@
928
970
  "hasDynamicHelp": false,
929
971
  "multiple": false,
930
972
  "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"
939
973
  }
940
974
  },
941
975
  "hasDynamicHelp": false,
942
976
  "hiddenAliases": [],
943
- "id": "web:api:delete-url-replacement",
977
+ "id": "web:api:list-url-replacements",
944
978
  "pluginAlias": "@autifyhq/autify-cli",
945
979
  "pluginName": "@autifyhq/autify-cli",
946
980
  "pluginType": "core",
@@ -952,37 +986,37 @@
952
986
  "commands",
953
987
  "web",
954
988
  "api",
955
- "delete-url-replacement.js"
989
+ "list-url-replacements.js"
956
990
  ]
957
991
  },
958
- "web:api:describe-result": {
992
+ "web:api:update-test-plan-variable": {
959
993
  "aliases": [],
960
994
  "args": {},
961
- "description": "Get a test result.",
995
+ "description": "Update a url replacement for the test plan",
962
996
  "examples": [
963
997
  "<%= config.bin %> <%= command.id %>"
964
998
  ],
965
999
  "flags": {
966
- "project-id": {
967
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/results/4",
968
- "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",
969
1003
  "required": true,
970
1004
  "hasDynamicHelp": false,
971
1005
  "multiple": false,
972
1006
  "type": "option"
973
1007
  },
974
- "result-id": {
975
- "description": "For example, 4 for the following URL: https://app.autify.com/projects/1/results/4",
976
- "name": "result-id",
1008
+ "test-plan-variable-id": {
1009
+ "description": "test_plan_variable id",
1010
+ "name": "test-plan-variable-id",
977
1011
  "required": true,
978
1012
  "hasDynamicHelp": false,
979
1013
  "multiple": false,
980
1014
  "type": "option"
981
1015
  },
982
- "get-details": {
983
- "description": "The flag to get details of the test case result.",
984
- "name": "get-details",
985
- "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,
986
1020
  "hasDynamicHelp": false,
987
1021
  "multiple": false,
988
1022
  "type": "option"
@@ -990,7 +1024,7 @@
990
1024
  },
991
1025
  "hasDynamicHelp": false,
992
1026
  "hiddenAliases": [],
993
- "id": "web:api:describe-result",
1027
+ "id": "web:api:update-test-plan-variable",
994
1028
  "pluginAlias": "@autifyhq/autify-cli",
995
1029
  "pluginName": "@autifyhq/autify-cli",
996
1030
  "pluginType": "core",
@@ -1002,28 +1036,36 @@
1002
1036
  "commands",
1003
1037
  "web",
1004
1038
  "api",
1005
- "describe-result.js"
1039
+ "update-test-plan-variable.js"
1006
1040
  ]
1007
1041
  },
1008
- "web:api:describe-scenario": {
1042
+ "web:api:update-url-replacement": {
1009
1043
  "aliases": [],
1010
1044
  "args": {},
1011
- "description": "Get a scenario.",
1045
+ "description": "Update a url replacement for the test plan",
1012
1046
  "examples": [
1013
1047
  "<%= config.bin %> <%= command.id %>"
1014
1048
  ],
1015
1049
  "flags": {
1016
- "project-id": {
1017
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2",
1018
- "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",
1019
1053
  "required": true,
1020
1054
  "hasDynamicHelp": false,
1021
1055
  "multiple": false,
1022
1056
  "type": "option"
1023
1057
  },
1024
- "scenario-id": {
1025
- "description": "For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2",
1026
- "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",
1027
1069
  "required": true,
1028
1070
  "hasDynamicHelp": false,
1029
1071
  "multiple": false,
@@ -1032,7 +1074,7 @@
1032
1074
  },
1033
1075
  "hasDynamicHelp": false,
1034
1076
  "hiddenAliases": [],
1035
- "id": "web:api:describe-scenario",
1077
+ "id": "web:api:update-url-replacement",
1036
1078
  "pluginAlias": "@autifyhq/autify-cli",
1037
1079
  "pluginName": "@autifyhq/autify-cli",
1038
1080
  "pluginType": "core",
@@ -1044,37 +1086,21 @@
1044
1086
  "commands",
1045
1087
  "web",
1046
1088
  "api",
1047
- "describe-scenario.js"
1089
+ "update-url-replacement.js"
1048
1090
  ]
1049
1091
  },
1050
- "web:api:execute-scenarios": {
1092
+ "web:auth:login": {
1051
1093
  "aliases": [],
1052
1094
  "args": {},
1053
- "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",
1054
1096
  "examples": [
1055
- "<%= 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"
1056
1099
  ],
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
- "required": true,
1062
- "hasDynamicHelp": false,
1063
- "multiple": false,
1064
- "type": "option"
1065
- },
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
- "required": true,
1070
- "hasDynamicHelp": false,
1071
- "multiple": false,
1072
- "type": "option"
1073
- }
1074
- },
1100
+ "flags": {},
1075
1101
  "hasDynamicHelp": false,
1076
1102
  "hiddenAliases": [],
1077
- "id": "web:api:execute-scenarios",
1103
+ "id": "web:auth:login",
1078
1104
  "pluginAlias": "@autifyhq/autify-cli",
1079
1105
  "pluginName": "@autifyhq/autify-cli",
1080
1106
  "pluginType": "core",
@@ -1085,104 +1111,169 @@
1085
1111
  "dist",
1086
1112
  "commands",
1087
1113
  "web",
1088
- "api",
1089
- "execute-scenarios.js"
1114
+ "auth",
1115
+ "login.js"
1090
1116
  ]
1091
1117
  },
1092
- "web:api:execute-schedule": {
1118
+ "web:test:run": {
1093
1119
  "aliases": [],
1094
- "args": {},
1095
- "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.",
1096
1128
  "examples": [
1097
- "<%= 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"
1098
1137
  ],
1099
1138
  "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,
1139
+ "name": {
1140
+ "char": "n",
1141
+ "description": "[Only for test scenario] Name of the test execution.",
1142
+ "name": "name",
1104
1143
  "hasDynamicHelp": false,
1105
1144
  "multiple": false,
1106
1145
  "type": "option"
1107
1146
  },
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,
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",
1112
1161
  "hasDynamicHelp": false,
1113
1162
  "multiple": false,
1114
1163
  "type": "option"
1115
- }
1116
- },
1117
- "hasDynamicHelp": false,
1118
- "hiddenAliases": [],
1119
- "id": "web:api:execute-schedule",
1120
- "pluginAlias": "@autifyhq/autify-cli",
1121
- "pluginName": "@autifyhq/autify-cli",
1122
- "pluginType": "core",
1123
- "strict": true,
1124
- "enableJsonFlag": false,
1125
- "isESM": false,
1126
- "relativePath": [
1127
- "dist",
1128
- "commands",
1129
- "web",
1130
- "api",
1131
- "execute-schedule.js"
1132
- ]
1133
- },
1134
- "web:api:get-credit-usage": {
1135
- "aliases": [],
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.",
1138
- "examples": [
1139
- "<%= config.bin %> <%= command.id %>"
1140
- ],
1141
- "flags": {
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,
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",
1146
1201
  "hasDynamicHelp": false,
1147
1202
  "multiple": false,
1148
1203
  "type": "option"
1149
1204
  },
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,
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",
1154
1211
  "hasDynamicHelp": false,
1155
1212
  "multiple": false,
1156
1213
  "type": "option"
1157
1214
  },
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,
1215
+ "os": {
1216
+ "description": "[Only for test scenario] OS to run the test",
1217
+ "name": "os",
1162
1218
  "hasDynamicHelp": false,
1163
1219
  "multiple": false,
1164
1220
  "type": "option"
1165
1221
  },
1166
- "scenario-id": {
1167
- "description": "The scenario ID to filter used credits by.",
1168
- "name": "scenario-id",
1169
- "required": false,
1222
+ "os-version": {
1223
+ "description": "[Only for test scenario] OS version to run the test",
1224
+ "name": "os-version",
1170
1225
  "hasDynamicHelp": false,
1171
1226
  "multiple": false,
1172
1227
  "type": "option"
1173
1228
  },
1174
- "test-plan-id": {
1175
- "description": "The test plan ID to filter used credits by.",
1176
- "name": "test-plan-id",
1177
- "required": false,
1229
+ "browser": {
1230
+ "description": "[Only for test scenario] Browser to run the test",
1231
+ "name": "browser",
1178
1232
  "hasDynamicHelp": false,
1179
1233
  "multiple": false,
1180
1234
  "type": "option"
1181
1235
  },
1182
- "user-id": {
1183
- "description": "The user ID that executed tests to filter used credits by.",
1184
- "name": "user-id",
1185
- "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,
1186
1277
  "hasDynamicHelp": false,
1187
1278
  "multiple": false,
1188
1279
  "type": "option"
@@ -1190,7 +1281,7 @@
1190
1281
  },
1191
1282
  "hasDynamicHelp": false,
1192
1283
  "hiddenAliases": [],
1193
- "id": "web:api:get-credit-usage",
1284
+ "id": "web:test:run",
1194
1285
  "pluginAlias": "@autifyhq/autify-cli",
1195
1286
  "pluginName": "@autifyhq/autify-cli",
1196
1287
  "pluginType": "core",
@@ -1201,30 +1292,44 @@
1201
1292
  "dist",
1202
1293
  "commands",
1203
1294
  "web",
1204
- "api",
1205
- "get-credit-usage.js"
1295
+ "test",
1296
+ "run.js"
1206
1297
  ]
1207
1298
  },
1208
- "web:api:get-project-info": {
1299
+ "web:test:wait": {
1209
1300
  "aliases": [],
1210
- "args": {},
1211
- "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.",
1212
1309
  "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,
1310
+ "<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/results/0000"
1311
+ ],
1312
+ "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,
1220
1318
  "hasDynamicHelp": false,
1221
1319
  "multiple": false,
1222
1320
  "type": "option"
1321
+ },
1322
+ "verbose": {
1323
+ "char": "v",
1324
+ "description": "Verbose output",
1325
+ "name": "verbose",
1326
+ "allowNo": false,
1327
+ "type": "boolean"
1223
1328
  }
1224
1329
  },
1225
1330
  "hasDynamicHelp": false,
1226
1331
  "hiddenAliases": [],
1227
- "id": "web:api:get-project-info",
1332
+ "id": "web:test:wait",
1228
1333
  "pluginAlias": "@autifyhq/autify-cli",
1229
1334
  "pluginName": "@autifyhq/autify-cli",
1230
1335
  "pluginType": "core",
@@ -1235,30 +1340,30 @@
1235
1340
  "dist",
1236
1341
  "commands",
1237
1342
  "web",
1238
- "api",
1239
- "get-project-info.js"
1343
+ "test",
1344
+ "wait.js"
1240
1345
  ]
1241
1346
  },
1242
- "web:api:list-access-points": {
1347
+ "mobile:api:describe-test-result": {
1243
1348
  "aliases": [],
1244
1349
  "args": {},
1245
- "description": "List access points for the project.",
1350
+ "description": "Get a test result.",
1246
1351
  "examples": [
1247
1352
  "<%= config.bin %> <%= command.id %>"
1248
1353
  ],
1249
1354
  "flags": {
1250
1355
  "project-id": {
1251
- "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.",
1252
1357
  "name": "project-id",
1253
1358
  "required": true,
1254
1359
  "hasDynamicHelp": false,
1255
1360
  "multiple": false,
1256
1361
  "type": "option"
1257
1362
  },
1258
- "page": {
1259
- "description": "The number of page returns.",
1260
- "name": "page",
1261
- "required": false,
1363
+ "id": {
1364
+ "description": "Test Result ID.",
1365
+ "name": "id",
1366
+ "required": true,
1262
1367
  "hasDynamicHelp": false,
1263
1368
  "multiple": false,
1264
1369
  "type": "option"
@@ -1266,7 +1371,7 @@
1266
1371
  },
1267
1372
  "hasDynamicHelp": false,
1268
1373
  "hiddenAliases": [],
1269
- "id": "web:api:list-access-points",
1374
+ "id": "mobile:api:describe-test-result",
1270
1375
  "pluginAlias": "@autifyhq/autify-cli",
1271
1376
  "pluginName": "@autifyhq/autify-cli",
1272
1377
  "pluginType": "core",
@@ -1276,62 +1381,46 @@
1276
1381
  "relativePath": [
1277
1382
  "dist",
1278
1383
  "commands",
1279
- "web",
1384
+ "mobile",
1280
1385
  "api",
1281
- "list-access-points.js"
1386
+ "describe-test-result.js"
1282
1387
  ]
1283
1388
  },
1284
- "web:api:list-capabilities": {
1389
+ "mobile:api:list-test-results": {
1285
1390
  "aliases": [],
1286
1391
  "args": {},
1287
- "description": "List available Capabilities.",
1392
+ "description": "List test results.",
1288
1393
  "examples": [
1289
1394
  "<%= config.bin %> <%= command.id %>"
1290
1395
  ],
1291
1396
  "flags": {
1292
1397
  "project-id": {
1293
- "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.",
1294
1399
  "name": "project-id",
1295
1400
  "required": true,
1296
1401
  "hasDynamicHelp": false,
1297
1402
  "multiple": false,
1298
1403
  "type": "option"
1299
1404
  },
1300
- "os": {
1301
- "description": "os name to filter (deprecated)",
1302
- "name": "os",
1303
- "required": false,
1304
- "hasDynamicHelp": false,
1305
- "multiple": false,
1306
- "type": "option"
1307
- },
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"
1315
- },
1316
- "browser": {
1317
- "description": "browser name to filter (deprecated)",
1318
- "name": "browser",
1405
+ "page": {
1406
+ "description": "Page number to be retrieved.",
1407
+ "name": "page",
1319
1408
  "required": false,
1320
1409
  "hasDynamicHelp": false,
1321
1410
  "multiple": false,
1322
1411
  "type": "option"
1323
1412
  },
1324
- "browser-type": {
1325
- "description": "Type of the browser to filter",
1326
- "name": "browser-type",
1413
+ "per-page": {
1414
+ "description": "Number of test results per page.",
1415
+ "name": "per-page",
1327
1416
  "required": false,
1328
1417
  "hasDynamicHelp": false,
1329
1418
  "multiple": false,
1330
1419
  "type": "option"
1331
1420
  },
1332
- "device-type": {
1333
- "description": "device_type name to filter (mobile is deprecated)",
1334
- "name": "device-type",
1421
+ "test-plan-id": {
1422
+ "description": "ID of the test plan.",
1423
+ "name": "test-plan-id",
1335
1424
  "required": false,
1336
1425
  "hasDynamicHelp": false,
1337
1426
  "multiple": false,
@@ -1340,7 +1429,7 @@
1340
1429
  },
1341
1430
  "hasDynamicHelp": false,
1342
1431
  "hiddenAliases": [],
1343
- "id": "web:api:list-capabilities",
1432
+ "id": "mobile:api:list-test-results",
1344
1433
  "pluginAlias": "@autifyhq/autify-cli",
1345
1434
  "pluginName": "@autifyhq/autify-cli",
1346
1435
  "pluginType": "core",
@@ -1350,47 +1439,31 @@
1350
1439
  "relativePath": [
1351
1440
  "dist",
1352
1441
  "commands",
1353
- "web",
1442
+ "mobile",
1354
1443
  "api",
1355
- "list-capabilities.js"
1444
+ "list-test-results.js"
1356
1445
  ]
1357
1446
  },
1358
- "web:api:list-results": {
1447
+ "mobile:api:run-test-plan": {
1359
1448
  "aliases": [],
1360
1449
  "args": {},
1361
- "description": "List test results.",
1450
+ "description": "Run a test plan",
1362
1451
  "examples": [
1363
1452
  "<%= config.bin %> <%= command.id %>"
1364
1453
  ],
1365
1454
  "flags": {
1366
- "project-id": {
1367
- "description": "For example, 1 for the following URL: https://app.autify.com/projects/1/results",
1368
- "name": "project-id",
1455
+ "test-plan-id": {
1456
+ "description": "The ID of the test plan to run.",
1457
+ "name": "test-plan-id",
1369
1458
  "required": true,
1370
1459
  "hasDynamicHelp": false,
1371
1460
  "multiple": false,
1372
1461
  "type": "option"
1373
1462
  },
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,
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,
1394
1467
  "hasDynamicHelp": false,
1395
1468
  "multiple": false,
1396
1469
  "type": "option"
@@ -1398,7 +1471,7 @@
1398
1471
  },
1399
1472
  "hasDynamicHelp": false,
1400
1473
  "hiddenAliases": [],
1401
- "id": "web:api:list-results",
1474
+ "id": "mobile:api:run-test-plan",
1402
1475
  "pluginAlias": "@autifyhq/autify-cli",
1403
1476
  "pluginName": "@autifyhq/autify-cli",
1404
1477
  "pluginType": "core",
@@ -1408,31 +1481,31 @@
1408
1481
  "relativePath": [
1409
1482
  "dist",
1410
1483
  "commands",
1411
- "web",
1484
+ "mobile",
1412
1485
  "api",
1413
- "list-results.js"
1486
+ "run-test-plan.js"
1414
1487
  ]
1415
1488
  },
1416
- "web:api:list-scenarios": {
1489
+ "mobile:api:upload-build": {
1417
1490
  "aliases": [],
1418
1491
  "args": {},
1419
- "description": "List scenarios.",
1492
+ "description": "Upload the build file.",
1420
1493
  "examples": [
1421
1494
  "<%= config.bin %> <%= command.id %>"
1422
1495
  ],
1423
1496
  "flags": {
1424
1497
  "project-id": {
1425
- "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.",
1426
1499
  "name": "project-id",
1427
1500
  "required": true,
1428
1501
  "hasDynamicHelp": false,
1429
1502
  "multiple": false,
1430
1503
  "type": "option"
1431
1504
  },
1432
- "page": {
1433
- "description": "The number of page returns.",
1434
- "name": "page",
1435
- "required": false,
1505
+ "file": {
1506
+ "description": "Build file.",
1507
+ "name": "file",
1508
+ "required": true,
1436
1509
  "hasDynamicHelp": false,
1437
1510
  "multiple": false,
1438
1511
  "type": "option"
@@ -1440,7 +1513,7 @@
1440
1513
  },
1441
1514
  "hasDynamicHelp": false,
1442
1515
  "hiddenAliases": [],
1443
- "id": "web:api:list-scenarios",
1516
+ "id": "mobile:api:upload-build",
1444
1517
  "pluginAlias": "@autifyhq/autify-cli",
1445
1518
  "pluginName": "@autifyhq/autify-cli",
1446
1519
  "pluginType": "core",
@@ -1450,22 +1523,64 @@
1450
1523
  "relativePath": [
1451
1524
  "dist",
1452
1525
  "commands",
1453
- "web",
1526
+ "mobile",
1454
1527
  "api",
1455
- "list-scenarios.js"
1528
+ "upload-build.js"
1456
1529
  ]
1457
1530
  },
1458
- "web:api:list-test-plan-variable": {
1531
+ "mobile:auth:login": {
1459
1532
  "aliases": [],
1460
1533
  "args": {},
1461
- "description": "List the test plan's variables",
1534
+ "description": "Login to Autify for Mobile",
1462
1535
  "examples": [
1463
- "<%= 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"
1464
1571
  ],
1465
1572
  "flags": {
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",
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",
1469
1584
  "required": true,
1470
1585
  "hasDynamicHelp": false,
1471
1586
  "multiple": false,
@@ -1474,91 +1589,86 @@
1474
1589
  },
1475
1590
  "hasDynamicHelp": false,
1476
1591
  "hiddenAliases": [],
1477
- "id": "web:api:list-test-plan-variable",
1592
+ "id": "mobile:build:upload",
1478
1593
  "pluginAlias": "@autifyhq/autify-cli",
1479
1594
  "pluginName": "@autifyhq/autify-cli",
1480
1595
  "pluginType": "core",
1481
1596
  "strict": true,
1482
- "enableJsonFlag": false,
1597
+ "enableJsonFlag": true,
1483
1598
  "isESM": false,
1484
1599
  "relativePath": [
1485
1600
  "dist",
1486
1601
  "commands",
1487
- "web",
1488
- "api",
1489
- "list-test-plan-variable.js"
1602
+ "mobile",
1603
+ "build",
1604
+ "upload.js"
1490
1605
  ]
1491
1606
  },
1492
- "web:api:list-url-replacements": {
1607
+ "mobile:link:doctor": {
1493
1608
  "aliases": [],
1494
1609
  "args": {},
1495
- "description": "List url replacements for the test plan",
1610
+ "description": "Check MobileLink configuration",
1496
1611
  "examples": [
1497
- "<%= config.bin %> <%= command.id %>"
1612
+ "Check MobileLink configuration:\n<%= config.bin %> <%= command.id %>"
1498
1613
  ],
1499
- "flags": {
1500
- "test-plan-id": {
1501
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
1502
- "name": "test-plan-id",
1503
- "required": true,
1504
- "hasDynamicHelp": false,
1505
- "multiple": false,
1506
- "type": "option"
1614
+ "flags": {},
1615
+ "hasDynamicHelp": false,
1616
+ "hiddenAliases": [],
1617
+ "id": "mobile:link:doctor",
1618
+ "pluginAlias": "@autifyhq/autify-cli",
1619
+ "pluginName": "@autifyhq/autify-cli",
1620
+ "pluginType": "core",
1621
+ "strict": true,
1622
+ "enableJsonFlag": false,
1623
+ "isESM": false,
1624
+ "relativePath": [
1625
+ "dist",
1626
+ "commands",
1627
+ "mobile",
1628
+ "link",
1629
+ "doctor.js"
1630
+ ]
1631
+ },
1632
+ "mobile:link:exec": {
1633
+ "aliases": [],
1634
+ "args": {
1635
+ "things": {
1636
+ "name": "things"
1507
1637
  }
1508
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": {},
1509
1644
  "hasDynamicHelp": false,
1510
1645
  "hiddenAliases": [],
1511
- "id": "web:api:list-url-replacements",
1646
+ "id": "mobile:link:exec",
1512
1647
  "pluginAlias": "@autifyhq/autify-cli",
1513
1648
  "pluginName": "@autifyhq/autify-cli",
1514
1649
  "pluginType": "core",
1515
- "strict": true,
1650
+ "strict": false,
1516
1651
  "enableJsonFlag": false,
1517
1652
  "isESM": false,
1518
1653
  "relativePath": [
1519
1654
  "dist",
1520
1655
  "commands",
1521
- "web",
1522
- "api",
1523
- "list-url-replacements.js"
1656
+ "mobile",
1657
+ "link",
1658
+ "exec.js"
1524
1659
  ]
1525
1660
  },
1526
- "web:api:update-test-plan-variable": {
1661
+ "mobile:link:install": {
1527
1662
  "aliases": [],
1528
1663
  "args": {},
1529
- "description": "Update a url replacement for the test plan",
1664
+ "description": "Install MobileLink",
1530
1665
  "examples": [
1531
- "<%= config.bin %> <%= command.id %>"
1666
+ "Install the stable version:\n<%= config.bin %> <%= command.id %>"
1532
1667
  ],
1533
- "flags": {
1534
- "test-plan-id": {
1535
- "description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
1536
- "name": "test-plan-id",
1537
- "required": true,
1538
- "hasDynamicHelp": false,
1539
- "multiple": false,
1540
- "type": "option"
1541
- },
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",
1553
- "required": true,
1554
- "hasDynamicHelp": false,
1555
- "multiple": false,
1556
- "type": "option"
1557
- }
1558
- },
1668
+ "flags": {},
1559
1669
  "hasDynamicHelp": false,
1560
1670
  "hiddenAliases": [],
1561
- "id": "web:api:update-test-plan-variable",
1671
+ "id": "mobile:link:install",
1562
1672
  "pluginAlias": "@autifyhq/autify-cli",
1563
1673
  "pluginName": "@autifyhq/autify-cli",
1564
1674
  "pluginType": "core",
@@ -1568,47 +1678,22 @@
1568
1678
  "relativePath": [
1569
1679
  "dist",
1570
1680
  "commands",
1571
- "web",
1572
- "api",
1573
- "update-test-plan-variable.js"
1681
+ "mobile",
1682
+ "link",
1683
+ "install.js"
1574
1684
  ]
1575
1685
  },
1576
- "web:api:update-url-replacement": {
1686
+ "mobile:link:setup": {
1577
1687
  "aliases": [],
1578
1688
  "args": {},
1579
- "description": "Update a url replacement for the test plan",
1689
+ "description": "Set up MobileLink",
1580
1690
  "examples": [
1581
- "<%= config.bin %> <%= command.id %>"
1691
+ "Set up MobileLink configuration:\n<%= config.bin %> <%= command.id %>"
1582
1692
  ],
1583
- "flags": {
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",
1587
- "required": true,
1588
- "hasDynamicHelp": false,
1589
- "multiple": false,
1590
- "type": "option"
1591
- },
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",
1603
- "required": true,
1604
- "hasDynamicHelp": false,
1605
- "multiple": false,
1606
- "type": "option"
1607
- }
1608
- },
1693
+ "flags": {},
1609
1694
  "hasDynamicHelp": false,
1610
1695
  "hiddenAliases": [],
1611
- "id": "web:api:update-url-replacement",
1696
+ "id": "mobile:link:setup",
1612
1697
  "pluginAlias": "@autifyhq/autify-cli",
1613
1698
  "pluginName": "@autifyhq/autify-cli",
1614
1699
  "pluginType": "core",
@@ -1618,165 +1703,80 @@
1618
1703
  "relativePath": [
1619
1704
  "dist",
1620
1705
  "commands",
1621
- "web",
1622
- "api",
1623
- "update-url-replacement.js"
1706
+ "mobile",
1707
+ "link",
1708
+ "setup.js"
1624
1709
  ]
1625
1710
  },
1626
- "web:auth:login": {
1711
+ "mobile:link:start": {
1627
1712
  "aliases": [],
1628
- "args": {},
1629
- "description": "Login to Autify for Web",
1713
+ "args": {
1714
+ "workspaceId": {
1715
+ "description": "Specify the target version of Autify Connect Client.",
1716
+ "name": "workspaceId"
1717
+ }
1718
+ },
1719
+ "description": "Start MobileLink session",
1630
1720
  "examples": [
1631
- "Start interactive setup:\n<%= config.bin %> <%= command.id %>",
1632
- "Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
1721
+ "Pass subcommand arguments to mobilelink:\n<%= config.bin %> <%= command.id %> ABC XYZ"
1633
1722
  ],
1634
1723
  "flags": {},
1635
1724
  "hasDynamicHelp": false,
1636
1725
  "hiddenAliases": [],
1637
- "id": "web:auth:login",
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
- "auth",
1649
- "login.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.53.0"
1882
+ "version": "0.56.0"
1883
1883
  }