@autifyhq/autify-cli 0.52.0 → 0.54.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -43
- package/dist/autify/mobile/mobilelink/installBinary.js +5 -3
- package/dist/autify/mobile/mobilelink/mobile-link-manager/Logger.js +11 -1
- package/dist/autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager.d.ts +7 -1
- package/dist/autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager.js +24 -13
- package/dist/commands/mobile/link/doctor.d.ts +6 -0
- package/dist/commands/mobile/link/doctor.js +19 -0
- package/dist/commands/mobile/link/install.js +2 -2
- package/dist/commands/mobile/link/setup.d.ts +6 -0
- package/dist/commands/mobile/link/setup.js +45 -0
- package/dist/commands/mobile/test/run.d.ts +1 -0
- package/dist/commands/mobile/test/run.js +8 -0
- package/oclif.manifest.json +86 -29
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -30,8 +30,10 @@ See our official document: https://help.autify.com/docs/autify-command-line-inte
|
|
|
30
30
|
* [`autify mobile api upload-build`](#autify-mobile-api-upload-build)
|
|
31
31
|
* [`autify mobile auth login`](#autify-mobile-auth-login)
|
|
32
32
|
* [`autify mobile build upload BUILD-PATH`](#autify-mobile-build-upload-build-path)
|
|
33
|
+
* [`autify mobile link doctor`](#autify-mobile-link-doctor)
|
|
33
34
|
* [`autify mobile link exec [THINGS]`](#autify-mobile-link-exec-things)
|
|
34
35
|
* [`autify mobile link install`](#autify-mobile-link-install)
|
|
36
|
+
* [`autify mobile link setup`](#autify-mobile-link-setup)
|
|
35
37
|
* [`autify mobile link start [WORKSPACEID]`](#autify-mobile-link-start-workspaceid)
|
|
36
38
|
* [`autify mobile test run TEST-PLAN-URL`](#autify-mobile-test-run-test-plan-url)
|
|
37
39
|
* [`autify mobile test wait TEST-RESULT-URL`](#autify-mobile-test-wait-test-result-url)
|
|
@@ -79,7 +81,7 @@ EXAMPLES
|
|
|
79
81
|
$ autify connect access-point create --name NAME --web-workspace-id ID
|
|
80
82
|
```
|
|
81
83
|
|
|
82
|
-
_See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
84
|
+
_See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/connect/access-point/create.ts)_
|
|
83
85
|
|
|
84
86
|
## `autify connect access-point set`
|
|
85
87
|
|
|
@@ -105,7 +107,7 @@ EXAMPLES
|
|
|
105
107
|
$ autify connect access-point set --name=NAME < key.txt
|
|
106
108
|
```
|
|
107
109
|
|
|
108
|
-
_See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
110
|
+
_See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/connect/access-point/set.ts)_
|
|
109
111
|
|
|
110
112
|
## `autify connect client install [VERSION]`
|
|
111
113
|
|
|
@@ -135,7 +137,7 @@ EXAMPLES
|
|
|
135
137
|
$ autify connect client install stable
|
|
136
138
|
```
|
|
137
139
|
|
|
138
|
-
_See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
140
|
+
_See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/connect/client/install.ts)_
|
|
139
141
|
|
|
140
142
|
## `autify connect client start`
|
|
141
143
|
|
|
@@ -169,7 +171,7 @@ EXAMPLES
|
|
|
169
171
|
$ autify connect client start --web-workspace-id 000
|
|
170
172
|
```
|
|
171
173
|
|
|
172
|
-
_See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
174
|
+
_See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/connect/client/start.ts)_
|
|
173
175
|
|
|
174
176
|
## `autify help [COMMAND]`
|
|
175
177
|
|
|
@@ -210,7 +212,7 @@ EXAMPLES
|
|
|
210
212
|
$ autify mobile api describe-test-result
|
|
211
213
|
```
|
|
212
214
|
|
|
213
|
-
_See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
215
|
+
_See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/api/describe-test-result.ts)_
|
|
214
216
|
|
|
215
217
|
## `autify mobile api list-test-results`
|
|
216
218
|
|
|
@@ -234,7 +236,7 @@ EXAMPLES
|
|
|
234
236
|
$ autify mobile api list-test-results
|
|
235
237
|
```
|
|
236
238
|
|
|
237
|
-
_See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
239
|
+
_See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/api/list-test-results.ts)_
|
|
238
240
|
|
|
239
241
|
## `autify mobile api run-test-plan`
|
|
240
242
|
|
|
@@ -256,7 +258,7 @@ EXAMPLES
|
|
|
256
258
|
$ autify mobile api run-test-plan
|
|
257
259
|
```
|
|
258
260
|
|
|
259
|
-
_See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
261
|
+
_See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/api/run-test-plan.ts)_
|
|
260
262
|
|
|
261
263
|
## `autify mobile api upload-build`
|
|
262
264
|
|
|
@@ -277,7 +279,7 @@ EXAMPLES
|
|
|
277
279
|
$ autify mobile api upload-build
|
|
278
280
|
```
|
|
279
281
|
|
|
280
|
-
_See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
282
|
+
_See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/api/upload-build.ts)_
|
|
281
283
|
|
|
282
284
|
## `autify mobile auth login`
|
|
283
285
|
|
|
@@ -300,7 +302,7 @@ EXAMPLES
|
|
|
300
302
|
$ autify mobile auth login < token.txt
|
|
301
303
|
```
|
|
302
304
|
|
|
303
|
-
_See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
305
|
+
_See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/auth/login.ts)_
|
|
304
306
|
|
|
305
307
|
## `autify mobile build upload BUILD-PATH`
|
|
306
308
|
|
|
@@ -334,7 +336,26 @@ EXAMPLES
|
|
|
334
336
|
$ autify mobile build upload --workspace-id AAA ./my.app --json
|
|
335
337
|
```
|
|
336
338
|
|
|
337
|
-
_See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
339
|
+
_See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/build/upload.ts)_
|
|
340
|
+
|
|
341
|
+
## `autify mobile link doctor`
|
|
342
|
+
|
|
343
|
+
Check MobileLink configuration
|
|
344
|
+
|
|
345
|
+
```
|
|
346
|
+
USAGE
|
|
347
|
+
$ autify mobile link doctor
|
|
348
|
+
|
|
349
|
+
DESCRIPTION
|
|
350
|
+
Check MobileLink configuration
|
|
351
|
+
|
|
352
|
+
EXAMPLES
|
|
353
|
+
Check MobileLink configuration:
|
|
354
|
+
|
|
355
|
+
$ autify mobile link doctor
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
_See code: [src/commands/mobile/link/doctor.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/link/doctor.ts)_
|
|
338
359
|
|
|
339
360
|
## `autify mobile link exec [THINGS]`
|
|
340
361
|
|
|
@@ -353,26 +374,45 @@ EXAMPLES
|
|
|
353
374
|
$ autify mobile link exec ABC XYZ
|
|
354
375
|
```
|
|
355
376
|
|
|
356
|
-
_See code: [src/commands/mobile/link/exec.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
377
|
+
_See code: [src/commands/mobile/link/exec.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/link/exec.ts)_
|
|
357
378
|
|
|
358
379
|
## `autify mobile link install`
|
|
359
380
|
|
|
360
|
-
Install
|
|
381
|
+
Install MobileLink
|
|
361
382
|
|
|
362
383
|
```
|
|
363
384
|
USAGE
|
|
364
385
|
$ autify mobile link install
|
|
365
386
|
|
|
366
387
|
DESCRIPTION
|
|
367
|
-
Install
|
|
388
|
+
Install MobileLink
|
|
368
389
|
|
|
369
390
|
EXAMPLES
|
|
370
|
-
|
|
391
|
+
Install the stable version:
|
|
371
392
|
|
|
372
393
|
$ autify mobile link install
|
|
373
394
|
```
|
|
374
395
|
|
|
375
|
-
_See code: [src/commands/mobile/link/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
396
|
+
_See code: [src/commands/mobile/link/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/link/install.ts)_
|
|
397
|
+
|
|
398
|
+
## `autify mobile link setup`
|
|
399
|
+
|
|
400
|
+
Set up MobileLink
|
|
401
|
+
|
|
402
|
+
```
|
|
403
|
+
USAGE
|
|
404
|
+
$ autify mobile link setup
|
|
405
|
+
|
|
406
|
+
DESCRIPTION
|
|
407
|
+
Set up MobileLink
|
|
408
|
+
|
|
409
|
+
EXAMPLES
|
|
410
|
+
Set up MobileLink configuration:
|
|
411
|
+
|
|
412
|
+
$ autify mobile link setup
|
|
413
|
+
```
|
|
414
|
+
|
|
415
|
+
_See code: [src/commands/mobile/link/setup.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/link/setup.ts)_
|
|
376
416
|
|
|
377
417
|
## `autify mobile link start [WORKSPACEID]`
|
|
378
418
|
|
|
@@ -394,7 +434,7 @@ EXAMPLES
|
|
|
394
434
|
$ autify mobile link start ABC XYZ
|
|
395
435
|
```
|
|
396
436
|
|
|
397
|
-
_See code: [src/commands/mobile/link/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
437
|
+
_See code: [src/commands/mobile/link/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/link/start.ts)_
|
|
398
438
|
|
|
399
439
|
## `autify mobile test run TEST-PLAN-URL`
|
|
400
440
|
|
|
@@ -402,8 +442,8 @@ Run a test plan.
|
|
|
402
442
|
|
|
403
443
|
```
|
|
404
444
|
USAGE
|
|
405
|
-
$ autify mobile test run TEST-PLAN-URL [--build-id <value> | --build-path <value>] [-
|
|
406
|
-
[--max-retry-count <value>]
|
|
445
|
+
$ autify mobile test run TEST-PLAN-URL [--build-id <value> | --build-path <value>] [--device-ids <value>] [-w] [-t
|
|
446
|
+
<value>] [-v] [--max-retry-count <value>]
|
|
407
447
|
|
|
408
448
|
ARGUMENTS
|
|
409
449
|
TEST-PLAN-URL Test plan URL e.g. https://mobile-app.autify.com/projects/<ID>/test_plans/<ID>
|
|
@@ -414,6 +454,7 @@ FLAGS
|
|
|
414
454
|
-w, --wait Wait until the test finishes.
|
|
415
455
|
--build-id=<value> ID of the already uploaded build.
|
|
416
456
|
--build-path=<value> File path to the iOS app (*.app, *.ipa) or Android app (*.apk).
|
|
457
|
+
--device-ids=<value> Comma-separated device IDs to run the test plan.
|
|
417
458
|
--max-retry-count=<value> Maximum retry count. The command can take up to timeout * (max-retry-count + 1).
|
|
418
459
|
|
|
419
460
|
DESCRIPTION
|
|
@@ -434,7 +475,7 @@ EXAMPLES
|
|
|
434
475
|
--timeout 600
|
|
435
476
|
```
|
|
436
477
|
|
|
437
|
-
_See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
478
|
+
_See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/test/run.ts)_
|
|
438
479
|
|
|
439
480
|
## `autify mobile test wait TEST-RESULT-URL`
|
|
440
481
|
|
|
@@ -458,7 +499,7 @@ EXAMPLES
|
|
|
458
499
|
$ autify mobile test wait https://mobile-app.autify.com/projects/AAA/results/BBB
|
|
459
500
|
```
|
|
460
501
|
|
|
461
|
-
_See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
502
|
+
_See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/mobile/test/wait.ts)_
|
|
462
503
|
|
|
463
504
|
## `autify update [CHANNEL]`
|
|
464
505
|
|
|
@@ -519,7 +560,7 @@ EXAMPLES
|
|
|
519
560
|
$ autify web api create-access-point
|
|
520
561
|
```
|
|
521
562
|
|
|
522
|
-
_See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
563
|
+
_See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/create-access-point.ts)_
|
|
523
564
|
|
|
524
565
|
## `autify web api create-test-plan-variable`
|
|
525
566
|
|
|
@@ -542,7 +583,7 @@ EXAMPLES
|
|
|
542
583
|
$ autify web api create-test-plan-variable
|
|
543
584
|
```
|
|
544
585
|
|
|
545
|
-
_See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
586
|
+
_See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/create-test-plan-variable.ts)_
|
|
546
587
|
|
|
547
588
|
## `autify web api create-url-replacement`
|
|
548
589
|
|
|
@@ -565,7 +606,7 @@ EXAMPLES
|
|
|
565
606
|
$ autify web api create-url-replacement
|
|
566
607
|
```
|
|
567
608
|
|
|
568
|
-
_See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
609
|
+
_See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/create-url-replacement.ts)_
|
|
569
610
|
|
|
570
611
|
## `autify web api delete-access-point`
|
|
571
612
|
|
|
@@ -588,7 +629,7 @@ EXAMPLES
|
|
|
588
629
|
$ autify web api delete-access-point
|
|
589
630
|
```
|
|
590
631
|
|
|
591
|
-
_See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
632
|
+
_See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/delete-access-point.ts)_
|
|
592
633
|
|
|
593
634
|
## `autify web api delete-test-plan-variable`
|
|
594
635
|
|
|
@@ -610,7 +651,7 @@ EXAMPLES
|
|
|
610
651
|
$ autify web api delete-test-plan-variable
|
|
611
652
|
```
|
|
612
653
|
|
|
613
|
-
_See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
654
|
+
_See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/delete-test-plan-variable.ts)_
|
|
614
655
|
|
|
615
656
|
## `autify web api delete-url-replacement`
|
|
616
657
|
|
|
@@ -632,7 +673,7 @@ EXAMPLES
|
|
|
632
673
|
$ autify web api delete-url-replacement
|
|
633
674
|
```
|
|
634
675
|
|
|
635
|
-
_See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
676
|
+
_See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/delete-url-replacement.ts)_
|
|
636
677
|
|
|
637
678
|
## `autify web api describe-result`
|
|
638
679
|
|
|
@@ -654,7 +695,7 @@ EXAMPLES
|
|
|
654
695
|
$ autify web api describe-result
|
|
655
696
|
```
|
|
656
697
|
|
|
657
|
-
_See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
698
|
+
_See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/describe-result.ts)_
|
|
658
699
|
|
|
659
700
|
## `autify web api describe-scenario`
|
|
660
701
|
|
|
@@ -675,7 +716,7 @@ EXAMPLES
|
|
|
675
716
|
$ autify web api describe-scenario
|
|
676
717
|
```
|
|
677
718
|
|
|
678
|
-
_See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
719
|
+
_See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/describe-scenario.ts)_
|
|
679
720
|
|
|
680
721
|
## `autify web api execute-scenarios`
|
|
681
722
|
|
|
@@ -703,7 +744,7 @@ EXAMPLES
|
|
|
703
744
|
$ autify web api execute-scenarios
|
|
704
745
|
```
|
|
705
746
|
|
|
706
|
-
_See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
747
|
+
_See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/execute-scenarios.ts)_
|
|
707
748
|
|
|
708
749
|
## `autify web api execute-schedule`
|
|
709
750
|
|
|
@@ -726,7 +767,7 @@ EXAMPLES
|
|
|
726
767
|
$ autify web api execute-schedule
|
|
727
768
|
```
|
|
728
769
|
|
|
729
|
-
_See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
770
|
+
_See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/execute-schedule.ts)_
|
|
730
771
|
|
|
731
772
|
## `autify web api get-credit-usage`
|
|
732
773
|
|
|
@@ -758,7 +799,7 @@ EXAMPLES
|
|
|
758
799
|
$ autify web api get-credit-usage
|
|
759
800
|
```
|
|
760
801
|
|
|
761
|
-
_See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
802
|
+
_See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/get-credit-usage.ts)_
|
|
762
803
|
|
|
763
804
|
## `autify web api get-project-info`
|
|
764
805
|
|
|
@@ -778,7 +819,7 @@ EXAMPLES
|
|
|
778
819
|
$ autify web api get-project-info
|
|
779
820
|
```
|
|
780
821
|
|
|
781
|
-
_See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
822
|
+
_See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/get-project-info.ts)_
|
|
782
823
|
|
|
783
824
|
## `autify web api list-access-points`
|
|
784
825
|
|
|
@@ -799,7 +840,7 @@ EXAMPLES
|
|
|
799
840
|
$ autify web api list-access-points
|
|
800
841
|
```
|
|
801
842
|
|
|
802
|
-
_See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
843
|
+
_See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/list-access-points.ts)_
|
|
803
844
|
|
|
804
845
|
## `autify web api list-capabilities`
|
|
805
846
|
|
|
@@ -826,7 +867,7 @@ EXAMPLES
|
|
|
826
867
|
$ autify web api list-capabilities
|
|
827
868
|
```
|
|
828
869
|
|
|
829
|
-
_See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
870
|
+
_See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/list-capabilities.ts)_
|
|
830
871
|
|
|
831
872
|
## `autify web api list-results`
|
|
832
873
|
|
|
@@ -849,7 +890,7 @@ EXAMPLES
|
|
|
849
890
|
$ autify web api list-results
|
|
850
891
|
```
|
|
851
892
|
|
|
852
|
-
_See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
893
|
+
_See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/list-results.ts)_
|
|
853
894
|
|
|
854
895
|
## `autify web api list-scenarios`
|
|
855
896
|
|
|
@@ -870,7 +911,7 @@ EXAMPLES
|
|
|
870
911
|
$ autify web api list-scenarios
|
|
871
912
|
```
|
|
872
913
|
|
|
873
|
-
_See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
914
|
+
_See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/list-scenarios.ts)_
|
|
874
915
|
|
|
875
916
|
## `autify web api list-test-plan-variable`
|
|
876
917
|
|
|
@@ -891,7 +932,7 @@ EXAMPLES
|
|
|
891
932
|
$ autify web api list-test-plan-variable
|
|
892
933
|
```
|
|
893
934
|
|
|
894
|
-
_See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
935
|
+
_See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/list-test-plan-variable.ts)_
|
|
895
936
|
|
|
896
937
|
## `autify web api list-url-replacements`
|
|
897
938
|
|
|
@@ -912,7 +953,7 @@ EXAMPLES
|
|
|
912
953
|
$ autify web api list-url-replacements
|
|
913
954
|
```
|
|
914
955
|
|
|
915
|
-
_See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
956
|
+
_See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/list-url-replacements.ts)_
|
|
916
957
|
|
|
917
958
|
## `autify web api update-test-plan-variable`
|
|
918
959
|
|
|
@@ -938,7 +979,7 @@ EXAMPLES
|
|
|
938
979
|
$ autify web api update-test-plan-variable
|
|
939
980
|
```
|
|
940
981
|
|
|
941
|
-
_See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
982
|
+
_See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/update-test-plan-variable.ts)_
|
|
942
983
|
|
|
943
984
|
## `autify web api update-url-replacement`
|
|
944
985
|
|
|
@@ -964,7 +1005,7 @@ EXAMPLES
|
|
|
964
1005
|
$ autify web api update-url-replacement
|
|
965
1006
|
```
|
|
966
1007
|
|
|
967
|
-
_See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
1008
|
+
_See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/api/update-url-replacement.ts)_
|
|
968
1009
|
|
|
969
1010
|
## `autify web auth login`
|
|
970
1011
|
|
|
@@ -987,7 +1028,7 @@ EXAMPLES
|
|
|
987
1028
|
$ autify web auth login < token.txt
|
|
988
1029
|
```
|
|
989
1030
|
|
|
990
|
-
_See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
1031
|
+
_See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/auth/login.ts)_
|
|
991
1032
|
|
|
992
1033
|
## `autify web test run SCENARIO-OR-TEST-PLAN-URL`
|
|
993
1034
|
|
|
@@ -1068,7 +1109,7 @@ EXAMPLES
|
|
|
1068
1109
|
$ autify web test run https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client
|
|
1069
1110
|
```
|
|
1070
1111
|
|
|
1071
|
-
_See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
1112
|
+
_See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/test/run.ts)_
|
|
1072
1113
|
|
|
1073
1114
|
## `autify web test wait TEST-RESULT-URL`
|
|
1074
1115
|
|
|
@@ -1092,5 +1133,5 @@ EXAMPLES
|
|
|
1092
1133
|
$ autify web test wait https://app.autify.com/projects/0000/results/0000
|
|
1093
1134
|
```
|
|
1094
1135
|
|
|
1095
|
-
_See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
1136
|
+
_See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.54.0/src/commands/web/test/wait.ts)_
|
|
1096
1137
|
<!-- commandsstop -->
|
|
@@ -13,6 +13,8 @@ const unzip_stream_1 = require("unzip-stream");
|
|
|
13
13
|
const node_child_process_1 = require("node:child_process");
|
|
14
14
|
const tar = tslib_1.__importStar(require("tar"));
|
|
15
15
|
const config_1 = require("../../../config");
|
|
16
|
+
const MOBILE_LINK_VERSION = "0.3.0";
|
|
17
|
+
const MOBILE_LINK_HASH = "26f64f82d";
|
|
16
18
|
const getOs = () => {
|
|
17
19
|
const os = node_process_1.platform;
|
|
18
20
|
if (os === "linux")
|
|
@@ -27,7 +29,7 @@ const getArch = () => {
|
|
|
27
29
|
if (node_process_1.arch === "ia32")
|
|
28
30
|
return "386";
|
|
29
31
|
if (node_process_1.arch === "x64")
|
|
30
|
-
return "
|
|
32
|
+
return "x64";
|
|
31
33
|
if (node_process_1.arch === "arm64")
|
|
32
34
|
return "arm64";
|
|
33
35
|
throw new core_1.Errors.CLIError(`Unsupported Architecture: ${node_process_1.arch}`);
|
|
@@ -38,12 +40,12 @@ const getMobileLinkSourceUrl = (configDir) => {
|
|
|
38
40
|
if (customUrl) {
|
|
39
41
|
return new URL(customUrl);
|
|
40
42
|
}
|
|
41
|
-
const baseUrl = "https://d21jojv86oc6d1.cloudfront.net/mobilelink/
|
|
43
|
+
const baseUrl = "https://d21jojv86oc6d1.cloudfront.net/mobilelink/versions";
|
|
42
44
|
const prefix = "mobilelink";
|
|
43
45
|
const os = getOs();
|
|
44
46
|
const arch = getArch();
|
|
45
47
|
const ext = getExt();
|
|
46
|
-
return new URL(`${baseUrl}/${prefix}-${os}-${arch}.${ext}`);
|
|
48
|
+
return new URL(`${baseUrl}/${MOBILE_LINK_VERSION}/${MOBILE_LINK_HASH}/${prefix}-v${MOBILE_LINK_VERSION}-${MOBILE_LINK_HASH}-${os}-${arch}.${ext}`);
|
|
47
49
|
};
|
|
48
50
|
exports.getMobileLinkSourceUrl = getMobileLinkSourceUrl;
|
|
49
51
|
const download = async (workspaceDir, url) => {
|
|
@@ -31,7 +31,17 @@ const setupMobileLinkOutputLogger = (childProcess, callback) => {
|
|
|
31
31
|
crlfDelay: Number.POSITIVE_INFINITY,
|
|
32
32
|
}).on("line", (line) => {
|
|
33
33
|
try {
|
|
34
|
-
|
|
34
|
+
const data = JSON.parse(line);
|
|
35
|
+
const level = data.level;
|
|
36
|
+
const timestamp = data.timestamp;
|
|
37
|
+
delete data.level;
|
|
38
|
+
delete data.timestamp;
|
|
39
|
+
const log = {
|
|
40
|
+
level,
|
|
41
|
+
timestamp,
|
|
42
|
+
message: JSON.stringify(data),
|
|
43
|
+
};
|
|
44
|
+
callback(log);
|
|
35
45
|
}
|
|
36
46
|
catch {
|
|
37
47
|
callback({
|
|
@@ -20,8 +20,12 @@ type MobileLinkManagerOptions = Readonly<{
|
|
|
20
20
|
}>;
|
|
21
21
|
export declare class MobileLinkManager {
|
|
22
22
|
private readonly options;
|
|
23
|
-
exec(argv: string[]
|
|
23
|
+
exec(argv: string[], extraEnv?: {
|
|
24
|
+
[key: string]: string;
|
|
25
|
+
}): Promise<void>;
|
|
24
26
|
start(workspaceId?: string): Promise<void>;
|
|
27
|
+
setup(): Promise<void>;
|
|
28
|
+
doctor(): Promise<void>;
|
|
25
29
|
onceReady(): Promise<void>;
|
|
26
30
|
onceTerminating(): Promise<void>;
|
|
27
31
|
onceDone(): Promise<number | null>;
|
|
@@ -43,5 +47,7 @@ export declare class MobileLinkManager {
|
|
|
43
47
|
private get mobileLinkPath();
|
|
44
48
|
private getMobiieLinkVersion;
|
|
45
49
|
private get autifyConnectPath();
|
|
50
|
+
private get accessToken();
|
|
51
|
+
private get integrationVariables();
|
|
46
52
|
}
|
|
47
53
|
export {};
|
|
@@ -11,6 +11,7 @@ const installClient_1 = require("../../../connect/installClient");
|
|
|
11
11
|
const waitFor_1 = require("xstate/lib/waitFor");
|
|
12
12
|
const StateMachine_1 = require("./StateMachine");
|
|
13
13
|
const Logger_1 = require("./Logger");
|
|
14
|
+
const config_1 = require("../../../../config");
|
|
14
15
|
class StateMachineTimeoutError extends core_1.Errors.CLIError {
|
|
15
16
|
constructor(state) {
|
|
16
17
|
super(`MobileLink Manager faced timeout at ${state} state.`);
|
|
@@ -18,17 +19,17 @@ class StateMachineTimeoutError extends core_1.Errors.CLIError {
|
|
|
18
19
|
}
|
|
19
20
|
exports.StateMachineTimeoutError = StateMachineTimeoutError;
|
|
20
21
|
class MobileLinkManager {
|
|
21
|
-
async exec(argv) {
|
|
22
|
+
async exec(argv, extraEnv = {}) {
|
|
22
23
|
this.logger.debug("exec");
|
|
23
24
|
const version = await this.getMobiieLinkVersion();
|
|
24
|
-
this.logger.info(`Executing MobileLink (path: ${this.mobileLinkPath}, version: ${version})`);
|
|
25
|
-
this.spawn(argv);
|
|
25
|
+
this.logger.info(`Executing MobileLink (path: ${this.mobileLinkPath}, args: ${argv.join(" ")}, version: ${version})`);
|
|
26
|
+
this.spawn(argv, extraEnv);
|
|
26
27
|
}
|
|
27
28
|
async start(workspaceId) {
|
|
28
29
|
try {
|
|
29
30
|
this.logger.debug("start");
|
|
30
31
|
const version = await this.getMobiieLinkVersion();
|
|
31
|
-
this.logger.info(`Executing MobileLink (path: ${this.mobileLinkPath}, version: ${version})`);
|
|
32
|
+
this.logger.info(`Executing MobileLink (path: ${this.mobileLinkPath}, args: link start, version: ${version})`);
|
|
32
33
|
this.service.send("START", { workspaceId });
|
|
33
34
|
}
|
|
34
35
|
catch (error) {
|
|
@@ -36,6 +37,12 @@ class MobileLinkManager {
|
|
|
36
37
|
throw error;
|
|
37
38
|
}
|
|
38
39
|
}
|
|
40
|
+
async setup() {
|
|
41
|
+
this.exec(["link", "setup"], this.integrationVariables);
|
|
42
|
+
}
|
|
43
|
+
async doctor() {
|
|
44
|
+
this.exec(["link", "doctor"], this.integrationVariables);
|
|
45
|
+
}
|
|
39
46
|
async onceReady() {
|
|
40
47
|
this.logger.debug("onceReady");
|
|
41
48
|
await this.once("ready");
|
|
@@ -115,12 +122,9 @@ class MobileLinkManager {
|
|
|
115
122
|
},
|
|
116
123
|
});
|
|
117
124
|
if (connectConsole) {
|
|
118
|
-
this.childProcess.stdout.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
this.childProcess.stderr.on("data", (data) => {
|
|
122
|
-
process.stderr.write(data);
|
|
123
|
-
});
|
|
125
|
+
this.childProcess.stdout.pipe(process.stdout);
|
|
126
|
+
this.childProcess.stderr.pipe(process.stderr);
|
|
127
|
+
process.stdin.pipe(this.childProcess.stdin);
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
linkStart(workspaceId) {
|
|
@@ -128,9 +132,7 @@ class MobileLinkManager {
|
|
|
128
132
|
const argv = ["link", "start"];
|
|
129
133
|
if (workspaceId)
|
|
130
134
|
argv.push(workspaceId);
|
|
131
|
-
this.spawn(argv,
|
|
132
|
-
AUTIFY_CONNECT_BIN_PATH: this.autifyConnectPath,
|
|
133
|
-
}, false);
|
|
135
|
+
this.spawn(argv, this.integrationVariables, false);
|
|
134
136
|
if (this.childProcess) {
|
|
135
137
|
this.childProcess.on("exit", (code, signal) => {
|
|
136
138
|
this.service.send("EXIT", { processExit: { code, signal } });
|
|
@@ -200,5 +202,14 @@ class MobileLinkManager {
|
|
|
200
202
|
get autifyConnectPath() {
|
|
201
203
|
return (0, installClient_1.getInstallPath)(this.options.configDir, this.options.cacheDir);
|
|
202
204
|
}
|
|
205
|
+
get accessToken() {
|
|
206
|
+
return (0, config_1.getOrThrow)(this.options.configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
|
|
207
|
+
}
|
|
208
|
+
get integrationVariables() {
|
|
209
|
+
return {
|
|
210
|
+
AUTIFY_CONNECT_BIN_PATH: this.autifyConnectPath,
|
|
211
|
+
AUTIFY_MOBILE_ACCESS_TOKEN: this.accessToken,
|
|
212
|
+
};
|
|
213
|
+
}
|
|
203
214
|
}
|
|
204
215
|
exports.MobileLinkManager = MobileLinkManager;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const MobileLinkManager_1 = require("../../../autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager");
|
|
5
|
+
class MobileLinkDoctor extends core_1.Command {
|
|
6
|
+
async run() {
|
|
7
|
+
const { configDir, cacheDir } = this.config;
|
|
8
|
+
const mobileLinkManager = new MobileLinkManager_1.MobileLinkManager({
|
|
9
|
+
configDir,
|
|
10
|
+
cacheDir,
|
|
11
|
+
});
|
|
12
|
+
await mobileLinkManager.doctor();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
MobileLinkDoctor.description = "Check MobileLink configuration";
|
|
16
|
+
MobileLinkDoctor.examples = [
|
|
17
|
+
"Check MobileLink configuration:\n<%= config.bin %> <%= command.id %>",
|
|
18
|
+
];
|
|
19
|
+
exports.default = MobileLinkDoctor;
|
|
@@ -14,9 +14,9 @@ class MobileLinkInstall extends core_1.Command {
|
|
|
14
14
|
this.log(`Successfully installed Mobile Link (path: ${path}, version: ${version})`);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
MobileLinkInstall.description = "Install
|
|
17
|
+
MobileLinkInstall.description = "Install MobileLink";
|
|
18
18
|
MobileLinkInstall.examples = [
|
|
19
|
-
"
|
|
19
|
+
"Install the stable version:\n<%= config.bin %> <%= command.id %>",
|
|
20
20
|
];
|
|
21
21
|
MobileLinkInstall.flags = {};
|
|
22
22
|
exports.default = MobileLinkInstall;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const installBinary_1 = require("../../../autify/mobile/mobilelink/installBinary");
|
|
5
|
+
const MobileLinkManager_1 = require("../../../autify/mobile/mobilelink/mobile-link-manager/MobileLinkManager");
|
|
6
|
+
const node_fs_1 = require("node:fs");
|
|
7
|
+
const installClient_1 = require("../../../autify/connect/installClient");
|
|
8
|
+
class MobileLinkSetup extends core_1.Command {
|
|
9
|
+
async run() {
|
|
10
|
+
const { configDir, cacheDir } = this.config;
|
|
11
|
+
const autifyConnectInstallPath = (0, installClient_1.getInstallPath)(configDir, cacheDir);
|
|
12
|
+
if ((0, node_fs_1.existsSync)(autifyConnectInstallPath)) {
|
|
13
|
+
this.log(`AutifyConnect is already installed. Skipping installation`);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
const { url, expectedVersion } = (0, installClient_1.getConnectClientSourceUrl)(configDir, "stable");
|
|
17
|
+
core_1.ux.action.start(`Installing Autify Connect Client from ${url})`, "installing", { stdout: true });
|
|
18
|
+
const { version, path } = await (0, installClient_1.installClient)(configDir, cacheDir, url, expectedVersion);
|
|
19
|
+
core_1.ux.action.stop();
|
|
20
|
+
this.log(`Successfully installed Autify Connect Client (path: ${path}, version: ${version})`);
|
|
21
|
+
}
|
|
22
|
+
if ((0, node_fs_1.existsSync)((0, installBinary_1.getBinaryPath)(cacheDir))) {
|
|
23
|
+
this.log(`MobileLink is already installed. Skipping installation`);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
const url = (0, installBinary_1.getMobileLinkSourceUrl)(configDir);
|
|
27
|
+
core_1.ux.action.start(`Installing Mobile Link from ${url})`, "installing", {
|
|
28
|
+
stdout: true,
|
|
29
|
+
});
|
|
30
|
+
const { version, path } = await (0, installBinary_1.installBinary)(cacheDir, url);
|
|
31
|
+
core_1.ux.action.stop();
|
|
32
|
+
this.log(`Successfully installed Mobile Link (path: ${path}, version: ${version})`);
|
|
33
|
+
}
|
|
34
|
+
const mobileLinkManager = new MobileLinkManager_1.MobileLinkManager({
|
|
35
|
+
configDir,
|
|
36
|
+
cacheDir,
|
|
37
|
+
});
|
|
38
|
+
await mobileLinkManager.setup();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
MobileLinkSetup.description = "Set up MobileLink";
|
|
42
|
+
MobileLinkSetup.examples = [
|
|
43
|
+
"Set up MobileLink configuration:\n<%= config.bin %> <%= command.id %>",
|
|
44
|
+
];
|
|
45
|
+
exports.default = MobileLinkSetup;
|
|
@@ -5,6 +5,7 @@ export default class MobileTestRun extends Command {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
"build-id": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
7
7
|
"build-path": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
"device-ids": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
9
|
wait: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
9
10
|
timeout: import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
10
11
|
verbose: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
@@ -13,6 +13,9 @@ class MobileTestRun extends core_1.Command {
|
|
|
13
13
|
const { args, flags } = await this.parse(MobileTestRun);
|
|
14
14
|
let buildId = flags["build-id"];
|
|
15
15
|
const buildPath = flags["build-path"];
|
|
16
|
+
const deviceIds = flags["device-ids"]
|
|
17
|
+
? flags["device-ids"].split(",").map((s) => s.trim())
|
|
18
|
+
: undefined;
|
|
16
19
|
const { configDir, userAgent } = this.config;
|
|
17
20
|
const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
|
|
18
21
|
const { workspaceId, testPlanId } = (0, parseTestPlanUrl_1.parseTestPlanUrl)(args["test-plan-url"]);
|
|
@@ -26,6 +29,8 @@ class MobileTestRun extends core_1.Command {
|
|
|
26
29
|
const res = await client.runTestPlan(testPlanId, {
|
|
27
30
|
// eslint-disable-next-line camelcase
|
|
28
31
|
build_id: buildId,
|
|
32
|
+
// eslint-disable-next-line camelcase
|
|
33
|
+
device_ids: deviceIds,
|
|
29
34
|
});
|
|
30
35
|
if (!res.data.id)
|
|
31
36
|
throw new core_1.Errors.CLIError(`Failed to run a test plan.`);
|
|
@@ -86,6 +91,9 @@ MobileTestRun.flags = {
|
|
|
86
91
|
description: "File path to the iOS app (*.app, *.ipa) or Android app (*.apk).",
|
|
87
92
|
exclusive: ["build-id"],
|
|
88
93
|
}),
|
|
94
|
+
"device-ids": core_1.Flags.string({
|
|
95
|
+
description: "Comma-separated device IDs to run the test plan.",
|
|
96
|
+
}),
|
|
89
97
|
wait: core_1.Flags.boolean({
|
|
90
98
|
char: "w",
|
|
91
99
|
description: "Wait until the test finishes.",
|
package/oclif.manifest.json
CHANGED
|
@@ -429,6 +429,31 @@
|
|
|
429
429
|
"upload.js"
|
|
430
430
|
]
|
|
431
431
|
},
|
|
432
|
+
"mobile:link:doctor": {
|
|
433
|
+
"aliases": [],
|
|
434
|
+
"args": {},
|
|
435
|
+
"description": "Check MobileLink configuration",
|
|
436
|
+
"examples": [
|
|
437
|
+
"Check MobileLink configuration:\n<%= config.bin %> <%= command.id %>"
|
|
438
|
+
],
|
|
439
|
+
"flags": {},
|
|
440
|
+
"hasDynamicHelp": false,
|
|
441
|
+
"hiddenAliases": [],
|
|
442
|
+
"id": "mobile:link:doctor",
|
|
443
|
+
"pluginAlias": "@autifyhq/autify-cli",
|
|
444
|
+
"pluginName": "@autifyhq/autify-cli",
|
|
445
|
+
"pluginType": "core",
|
|
446
|
+
"strict": true,
|
|
447
|
+
"enableJsonFlag": false,
|
|
448
|
+
"isESM": false,
|
|
449
|
+
"relativePath": [
|
|
450
|
+
"dist",
|
|
451
|
+
"commands",
|
|
452
|
+
"mobile",
|
|
453
|
+
"link",
|
|
454
|
+
"doctor.js"
|
|
455
|
+
]
|
|
456
|
+
},
|
|
432
457
|
"mobile:link:exec": {
|
|
433
458
|
"aliases": [],
|
|
434
459
|
"args": {
|
|
@@ -461,9 +486,9 @@
|
|
|
461
486
|
"mobile:link:install": {
|
|
462
487
|
"aliases": [],
|
|
463
488
|
"args": {},
|
|
464
|
-
"description": "Install
|
|
489
|
+
"description": "Install MobileLink",
|
|
465
490
|
"examples": [
|
|
466
|
-
"
|
|
491
|
+
"Install the stable version:\n<%= config.bin %> <%= command.id %>"
|
|
467
492
|
],
|
|
468
493
|
"flags": {},
|
|
469
494
|
"hasDynamicHelp": false,
|
|
@@ -483,6 +508,31 @@
|
|
|
483
508
|
"install.js"
|
|
484
509
|
]
|
|
485
510
|
},
|
|
511
|
+
"mobile:link:setup": {
|
|
512
|
+
"aliases": [],
|
|
513
|
+
"args": {},
|
|
514
|
+
"description": "Set up MobileLink",
|
|
515
|
+
"examples": [
|
|
516
|
+
"Set up MobileLink configuration:\n<%= config.bin %> <%= command.id %>"
|
|
517
|
+
],
|
|
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
|
+
},
|
|
486
536
|
"mobile:link:start": {
|
|
487
537
|
"aliases": [],
|
|
488
538
|
"args": {
|
|
@@ -549,6 +599,13 @@
|
|
|
549
599
|
"multiple": false,
|
|
550
600
|
"type": "option"
|
|
551
601
|
},
|
|
602
|
+
"device-ids": {
|
|
603
|
+
"description": "Comma-separated device IDs to run the test plan.",
|
|
604
|
+
"name": "device-ids",
|
|
605
|
+
"hasDynamicHelp": false,
|
|
606
|
+
"multiple": false,
|
|
607
|
+
"type": "option"
|
|
608
|
+
},
|
|
552
609
|
"wait": {
|
|
553
610
|
"char": "w",
|
|
554
611
|
"description": "Wait until the test finishes.",
|
|
@@ -646,6 +703,32 @@
|
|
|
646
703
|
"wait.js"
|
|
647
704
|
]
|
|
648
705
|
},
|
|
706
|
+
"web:auth:login": {
|
|
707
|
+
"aliases": [],
|
|
708
|
+
"args": {},
|
|
709
|
+
"description": "Login to Autify for Web",
|
|
710
|
+
"examples": [
|
|
711
|
+
"Start interactive setup:\n<%= config.bin %> <%= command.id %>",
|
|
712
|
+
"Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
|
|
713
|
+
],
|
|
714
|
+
"flags": {},
|
|
715
|
+
"hasDynamicHelp": false,
|
|
716
|
+
"hiddenAliases": [],
|
|
717
|
+
"id": "web:auth:login",
|
|
718
|
+
"pluginAlias": "@autifyhq/autify-cli",
|
|
719
|
+
"pluginName": "@autifyhq/autify-cli",
|
|
720
|
+
"pluginType": "core",
|
|
721
|
+
"strict": true,
|
|
722
|
+
"enableJsonFlag": false,
|
|
723
|
+
"isESM": false,
|
|
724
|
+
"relativePath": [
|
|
725
|
+
"dist",
|
|
726
|
+
"commands",
|
|
727
|
+
"web",
|
|
728
|
+
"auth",
|
|
729
|
+
"login.js"
|
|
730
|
+
]
|
|
731
|
+
},
|
|
649
732
|
"web:api:create-access-point": {
|
|
650
733
|
"aliases": [],
|
|
651
734
|
"args": {},
|
|
@@ -1566,32 +1649,6 @@
|
|
|
1566
1649
|
"update-url-replacement.js"
|
|
1567
1650
|
]
|
|
1568
1651
|
},
|
|
1569
|
-
"web:auth:login": {
|
|
1570
|
-
"aliases": [],
|
|
1571
|
-
"args": {},
|
|
1572
|
-
"description": "Login to Autify for Web",
|
|
1573
|
-
"examples": [
|
|
1574
|
-
"Start interactive setup:\n<%= config.bin %> <%= command.id %>",
|
|
1575
|
-
"Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"
|
|
1576
|
-
],
|
|
1577
|
-
"flags": {},
|
|
1578
|
-
"hasDynamicHelp": false,
|
|
1579
|
-
"hiddenAliases": [],
|
|
1580
|
-
"id": "web:auth:login",
|
|
1581
|
-
"pluginAlias": "@autifyhq/autify-cli",
|
|
1582
|
-
"pluginName": "@autifyhq/autify-cli",
|
|
1583
|
-
"pluginType": "core",
|
|
1584
|
-
"strict": true,
|
|
1585
|
-
"enableJsonFlag": false,
|
|
1586
|
-
"isESM": false,
|
|
1587
|
-
"relativePath": [
|
|
1588
|
-
"dist",
|
|
1589
|
-
"commands",
|
|
1590
|
-
"web",
|
|
1591
|
-
"auth",
|
|
1592
|
-
"login.js"
|
|
1593
|
-
]
|
|
1594
|
-
},
|
|
1595
1652
|
"web:test:run": {
|
|
1596
1653
|
"aliases": [],
|
|
1597
1654
|
"args": {
|
|
@@ -1822,5 +1879,5 @@
|
|
|
1822
1879
|
]
|
|
1823
1880
|
}
|
|
1824
1881
|
},
|
|
1825
|
-
"version": "0.
|
|
1882
|
+
"version": "0.54.0"
|
|
1826
1883
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autifyhq/autify-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.54.0",
|
|
4
4
|
"description": "Autify Command Line Interface (CLI)",
|
|
5
5
|
"author": "Autify",
|
|
6
6
|
"bin": {
|
|
@@ -57,11 +57,14 @@
|
|
|
57
57
|
"eslint-config-oclif": "^6.0.32",
|
|
58
58
|
"eslint-config-prettier": "^10.1.1",
|
|
59
59
|
"eslint-plugin-unicorn": "^57.0.0",
|
|
60
|
+
"execa": "^5.1.1",
|
|
60
61
|
"husky": "^9.1.7",
|
|
62
|
+
"jest": "^29.7.0",
|
|
61
63
|
"lint-staged": "^15.5.0",
|
|
62
64
|
"oclif": "^4.17.37",
|
|
63
65
|
"prettier": "^3.5.3",
|
|
64
66
|
"shx": "^0.4.0",
|
|
67
|
+
"ts-jest": "^29.3.1",
|
|
65
68
|
"ts-morph": "^25.0.1",
|
|
66
69
|
"ts-node": "^10.9.2",
|
|
67
70
|
"tslib": "^2.8.1",
|
|
@@ -150,6 +153,7 @@
|
|
|
150
153
|
"test:integration:connect:dev": "AUTIFY_CONNECT_CLIENT_MODE=fake ./bin/dev connect client install && npm run test:integration:dev AutifyConnectClient",
|
|
151
154
|
"test:integration:connect:record": "autify connect client install && npm run test:integration:record AutifyConnectClient",
|
|
152
155
|
"test:integration:connect:dev:record": "./bin/dev connect client install && npm run test:integration:dev:record AutifyConnectClient",
|
|
156
|
+
"test:e2e": "npx jest --config e2e-test/jest.config.js",
|
|
153
157
|
"version": "oclif readme && git add README.md",
|
|
154
158
|
"prepare": "per-env || true",
|
|
155
159
|
"prepare:development": "husky install",
|