@autifyhq/autify-cli 0.39.0 → 0.41.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 +181 -32
- package/dist/commands/web/api/create-test-plan-variable.d.ts +10 -0
- package/dist/commands/web/api/create-test-plan-variable.js +26 -0
- package/dist/commands/web/api/delete-test-plan-variable.d.ts +10 -0
- package/dist/commands/web/api/delete-test-plan-variable.js +26 -0
- package/dist/commands/web/api/describe-result.d.ts +1 -0
- package/dist/commands/web/api/describe-result.js +5 -1
- package/dist/commands/web/api/get-credit-usage.d.ts +14 -0
- package/dist/commands/web/api/get-credit-usage.js +42 -0
- package/dist/commands/web/api/get-project-info.d.ts +9 -0
- package/dist/commands/web/api/get-project-info.js +22 -0
- package/dist/commands/web/api/list-test-plan-variable.d.ts +9 -0
- package/dist/commands/web/api/list-test-plan-variable.js +22 -0
- package/dist/commands/web/api/update-test-plan-variable.d.ts +11 -0
- package/dist/commands/web/api/update-test-plan-variable.js +30 -0
- package/oclif.manifest.json +203 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -34,18 +34,24 @@ See our official document: https://help.autify.com/docs/autify-command-line-inte
|
|
|
34
34
|
* [`autify mobile test wait TEST-RESULT-URL`](#autify-mobile-test-wait-test-result-url)
|
|
35
35
|
* [`autify update [CHANNEL]`](#autify-update-channel)
|
|
36
36
|
* [`autify web api create-access-point`](#autify-web-api-create-access-point)
|
|
37
|
+
* [`autify web api create-test-plan-variable`](#autify-web-api-create-test-plan-variable)
|
|
37
38
|
* [`autify web api create-url-replacement`](#autify-web-api-create-url-replacement)
|
|
38
39
|
* [`autify web api delete-access-point`](#autify-web-api-delete-access-point)
|
|
40
|
+
* [`autify web api delete-test-plan-variable`](#autify-web-api-delete-test-plan-variable)
|
|
39
41
|
* [`autify web api delete-url-replacement`](#autify-web-api-delete-url-replacement)
|
|
40
42
|
* [`autify web api describe-result`](#autify-web-api-describe-result)
|
|
41
43
|
* [`autify web api describe-scenario`](#autify-web-api-describe-scenario)
|
|
42
44
|
* [`autify web api execute-scenarios`](#autify-web-api-execute-scenarios)
|
|
43
45
|
* [`autify web api execute-schedule`](#autify-web-api-execute-schedule)
|
|
46
|
+
* [`autify web api get-credit-usage`](#autify-web-api-get-credit-usage)
|
|
47
|
+
* [`autify web api get-project-info`](#autify-web-api-get-project-info)
|
|
44
48
|
* [`autify web api list-access-points`](#autify-web-api-list-access-points)
|
|
45
49
|
* [`autify web api list-capabilities`](#autify-web-api-list-capabilities)
|
|
46
50
|
* [`autify web api list-results`](#autify-web-api-list-results)
|
|
47
51
|
* [`autify web api list-scenarios`](#autify-web-api-list-scenarios)
|
|
52
|
+
* [`autify web api list-test-plan-variable`](#autify-web-api-list-test-plan-variable)
|
|
48
53
|
* [`autify web api list-url-replacements`](#autify-web-api-list-url-replacements)
|
|
54
|
+
* [`autify web api update-test-plan-variable`](#autify-web-api-update-test-plan-variable)
|
|
49
55
|
* [`autify web api update-url-replacement`](#autify-web-api-update-url-replacement)
|
|
50
56
|
* [`autify web auth login`](#autify-web-auth-login)
|
|
51
57
|
* [`autify web test run SCENARIO-OR-TEST-PLAN-URL`](#autify-web-test-run-scenario-or-test-plan-url)
|
|
@@ -70,7 +76,7 @@ EXAMPLES
|
|
|
70
76
|
$ autify connect access-point create --name NAME --web-workspace-id ID
|
|
71
77
|
```
|
|
72
78
|
|
|
73
|
-
_See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
79
|
+
_See code: [src/commands/connect/access-point/create.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/connect/access-point/create.ts)_
|
|
74
80
|
|
|
75
81
|
## `autify connect access-point set`
|
|
76
82
|
|
|
@@ -96,7 +102,7 @@ EXAMPLES
|
|
|
96
102
|
$ autify connect access-point set --name=NAME < key.txt
|
|
97
103
|
```
|
|
98
104
|
|
|
99
|
-
_See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
105
|
+
_See code: [src/commands/connect/access-point/set.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/connect/access-point/set.ts)_
|
|
100
106
|
|
|
101
107
|
## `autify connect client install [VERSION]`
|
|
102
108
|
|
|
@@ -126,7 +132,7 @@ EXAMPLES
|
|
|
126
132
|
$ autify connect client install stable
|
|
127
133
|
```
|
|
128
134
|
|
|
129
|
-
_See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
135
|
+
_See code: [src/commands/connect/client/install.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/connect/client/install.ts)_
|
|
130
136
|
|
|
131
137
|
## `autify connect client start`
|
|
132
138
|
|
|
@@ -160,7 +166,7 @@ EXAMPLES
|
|
|
160
166
|
$ autify connect client start --web-workspace-id 000
|
|
161
167
|
```
|
|
162
168
|
|
|
163
|
-
_See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
169
|
+
_See code: [src/commands/connect/client/start.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/connect/client/start.ts)_
|
|
164
170
|
|
|
165
171
|
## `autify help [COMMANDS]`
|
|
166
172
|
|
|
@@ -201,7 +207,7 @@ EXAMPLES
|
|
|
201
207
|
$ autify mobile api describe-test-result
|
|
202
208
|
```
|
|
203
209
|
|
|
204
|
-
_See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
210
|
+
_See code: [src/commands/mobile/api/describe-test-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/mobile/api/describe-test-result.ts)_
|
|
205
211
|
|
|
206
212
|
## `autify mobile api list-test-results`
|
|
207
213
|
|
|
@@ -225,7 +231,7 @@ EXAMPLES
|
|
|
225
231
|
$ autify mobile api list-test-results
|
|
226
232
|
```
|
|
227
233
|
|
|
228
|
-
_See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
234
|
+
_See code: [src/commands/mobile/api/list-test-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/mobile/api/list-test-results.ts)_
|
|
229
235
|
|
|
230
236
|
## `autify mobile api run-test-plan`
|
|
231
237
|
|
|
@@ -246,7 +252,7 @@ EXAMPLES
|
|
|
246
252
|
$ autify mobile api run-test-plan
|
|
247
253
|
```
|
|
248
254
|
|
|
249
|
-
_See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
255
|
+
_See code: [src/commands/mobile/api/run-test-plan.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/mobile/api/run-test-plan.ts)_
|
|
250
256
|
|
|
251
257
|
## `autify mobile api upload-build`
|
|
252
258
|
|
|
@@ -267,7 +273,7 @@ EXAMPLES
|
|
|
267
273
|
$ autify mobile api upload-build
|
|
268
274
|
```
|
|
269
275
|
|
|
270
|
-
_See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
276
|
+
_See code: [src/commands/mobile/api/upload-build.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/mobile/api/upload-build.ts)_
|
|
271
277
|
|
|
272
278
|
## `autify mobile auth login`
|
|
273
279
|
|
|
@@ -290,7 +296,7 @@ EXAMPLES
|
|
|
290
296
|
$ autify mobile auth login < token.txt
|
|
291
297
|
```
|
|
292
298
|
|
|
293
|
-
_See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
299
|
+
_See code: [src/commands/mobile/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/mobile/auth/login.ts)_
|
|
294
300
|
|
|
295
301
|
## `autify mobile build upload BUILD-PATH`
|
|
296
302
|
|
|
@@ -324,7 +330,7 @@ EXAMPLES
|
|
|
324
330
|
$ autify mobile build upload --workspace-id AAA ./my.app --json
|
|
325
331
|
```
|
|
326
332
|
|
|
327
|
-
_See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
333
|
+
_See code: [src/commands/mobile/build/upload.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/mobile/build/upload.ts)_
|
|
328
334
|
|
|
329
335
|
## `autify mobile test run TEST-PLAN-URL`
|
|
330
336
|
|
|
@@ -364,7 +370,7 @@ EXAMPLES
|
|
|
364
370
|
--timeout 600
|
|
365
371
|
```
|
|
366
372
|
|
|
367
|
-
_See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
373
|
+
_See code: [src/commands/mobile/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/mobile/test/run.ts)_
|
|
368
374
|
|
|
369
375
|
## `autify mobile test wait TEST-RESULT-URL`
|
|
370
376
|
|
|
@@ -388,7 +394,7 @@ EXAMPLES
|
|
|
388
394
|
$ autify mobile test wait https://mobile-app.autify.com/projects/AAA/results/BBB
|
|
389
395
|
```
|
|
390
396
|
|
|
391
|
-
_See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
397
|
+
_See code: [src/commands/mobile/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/mobile/test/wait.ts)_
|
|
392
398
|
|
|
393
399
|
## `autify update [CHANNEL]`
|
|
394
400
|
|
|
@@ -447,7 +453,29 @@ EXAMPLES
|
|
|
447
453
|
$ autify web api create-access-point
|
|
448
454
|
```
|
|
449
455
|
|
|
450
|
-
_See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
456
|
+
_See code: [src/commands/web/api/create-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/create-access-point.ts)_
|
|
457
|
+
|
|
458
|
+
## `autify web api create-test-plan-variable`
|
|
459
|
+
|
|
460
|
+
Create a new variable for the test plan
|
|
461
|
+
|
|
462
|
+
```
|
|
463
|
+
USAGE
|
|
464
|
+
$ autify web api create-test-plan-variable --test-plan-id <value> --create-test-plan-variable-request <value>
|
|
465
|
+
|
|
466
|
+
FLAGS
|
|
467
|
+
--create-test-plan-variable-request=<value> (required) The new variable key and default value to use in the test plan
|
|
468
|
+
--test-plan-id=<value> (required) For example, 15 for the following URL:
|
|
469
|
+
https://app.autify.com/projects/1/test_plans/15
|
|
470
|
+
|
|
471
|
+
DESCRIPTION
|
|
472
|
+
Create a new variable for the test plan
|
|
473
|
+
|
|
474
|
+
EXAMPLES
|
|
475
|
+
$ autify web api create-test-plan-variable
|
|
476
|
+
```
|
|
477
|
+
|
|
478
|
+
_See code: [src/commands/web/api/create-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/create-test-plan-variable.ts)_
|
|
451
479
|
|
|
452
480
|
## `autify web api create-url-replacement`
|
|
453
481
|
|
|
@@ -469,7 +497,7 @@ EXAMPLES
|
|
|
469
497
|
$ autify web api create-url-replacement
|
|
470
498
|
```
|
|
471
499
|
|
|
472
|
-
_See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
500
|
+
_See code: [src/commands/web/api/create-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/create-url-replacement.ts)_
|
|
473
501
|
|
|
474
502
|
## `autify web api delete-access-point`
|
|
475
503
|
|
|
@@ -491,7 +519,29 @@ EXAMPLES
|
|
|
491
519
|
$ autify web api delete-access-point
|
|
492
520
|
```
|
|
493
521
|
|
|
494
|
-
_See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
522
|
+
_See code: [src/commands/web/api/delete-access-point.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/delete-access-point.ts)_
|
|
523
|
+
|
|
524
|
+
## `autify web api delete-test-plan-variable`
|
|
525
|
+
|
|
526
|
+
Delete an existing test plan variable for the test plan
|
|
527
|
+
|
|
528
|
+
```
|
|
529
|
+
USAGE
|
|
530
|
+
$ autify web api delete-test-plan-variable --test-plan-id <value> --test-plan-variable-id <value>
|
|
531
|
+
|
|
532
|
+
FLAGS
|
|
533
|
+
--test-plan-id=<value> (required) For example, 15 for the following URL:
|
|
534
|
+
https://app.autify.com/projects/1/test_plans/15/
|
|
535
|
+
--test-plan-variable-id=<value> (required) test_plan_variable id
|
|
536
|
+
|
|
537
|
+
DESCRIPTION
|
|
538
|
+
Delete an existing test plan variable for the test plan
|
|
539
|
+
|
|
540
|
+
EXAMPLES
|
|
541
|
+
$ autify web api delete-test-plan-variable
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
_See code: [src/commands/web/api/delete-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/delete-test-plan-variable.ts)_
|
|
495
545
|
|
|
496
546
|
## `autify web api delete-url-replacement`
|
|
497
547
|
|
|
@@ -513,7 +563,7 @@ EXAMPLES
|
|
|
513
563
|
$ autify web api delete-url-replacement
|
|
514
564
|
```
|
|
515
565
|
|
|
516
|
-
_See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
566
|
+
_See code: [src/commands/web/api/delete-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/delete-url-replacement.ts)_
|
|
517
567
|
|
|
518
568
|
## `autify web api describe-result`
|
|
519
569
|
|
|
@@ -521,11 +571,12 @@ Get a test result.
|
|
|
521
571
|
|
|
522
572
|
```
|
|
523
573
|
USAGE
|
|
524
|
-
$ autify web api describe-result --project-id <value> --result-id <value>
|
|
574
|
+
$ autify web api describe-result --project-id <value> --result-id <value> [--get-details <value>]
|
|
525
575
|
|
|
526
576
|
FLAGS
|
|
527
|
-
--
|
|
528
|
-
--
|
|
577
|
+
--get-details=<value> The flag to get details of the test case result.
|
|
578
|
+
--project-id=<value> (required) For example, 1 for the following URL: https://app.autify.com/projects/1/results/4
|
|
579
|
+
--result-id=<value> (required) For example, 4 for the following URL: https://app.autify.com/projects/1/results/4
|
|
529
580
|
|
|
530
581
|
DESCRIPTION
|
|
531
582
|
Get a test result.
|
|
@@ -534,7 +585,7 @@ EXAMPLES
|
|
|
534
585
|
$ autify web api describe-result
|
|
535
586
|
```
|
|
536
587
|
|
|
537
|
-
_See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
588
|
+
_See code: [src/commands/web/api/describe-result.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/describe-result.ts)_
|
|
538
589
|
|
|
539
590
|
## `autify web api describe-scenario`
|
|
540
591
|
|
|
@@ -555,7 +606,7 @@ EXAMPLES
|
|
|
555
606
|
$ autify web api describe-scenario
|
|
556
607
|
```
|
|
557
608
|
|
|
558
|
-
_See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
609
|
+
_See code: [src/commands/web/api/describe-scenario.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/describe-scenario.ts)_
|
|
559
610
|
|
|
560
611
|
## `autify web api execute-scenarios`
|
|
561
612
|
|
|
@@ -578,7 +629,7 @@ EXAMPLES
|
|
|
578
629
|
$ autify web api execute-scenarios
|
|
579
630
|
```
|
|
580
631
|
|
|
581
|
-
_See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
632
|
+
_See code: [src/commands/web/api/execute-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/execute-scenarios.ts)_
|
|
582
633
|
|
|
583
634
|
## `autify web api execute-schedule`
|
|
584
635
|
|
|
@@ -600,7 +651,59 @@ EXAMPLES
|
|
|
600
651
|
$ autify web api execute-schedule
|
|
601
652
|
```
|
|
602
653
|
|
|
603
|
-
_See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
654
|
+
_See code: [src/commands/web/api/execute-schedule.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/execute-schedule.ts)_
|
|
655
|
+
|
|
656
|
+
## `autify web api get-credit-usage`
|
|
657
|
+
|
|
658
|
+
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.
|
|
659
|
+
|
|
660
|
+
```
|
|
661
|
+
USAGE
|
|
662
|
+
$ autify web api get-credit-usage --project-id <value> [--date-from <value>] [--date-to <value>] [--scenario-id <value>]
|
|
663
|
+
[--test-plan-id <value>] [--user-id <value>]
|
|
664
|
+
|
|
665
|
+
FLAGS
|
|
666
|
+
--date-from=<value> The date to start counting used credits from.\ If not specified, the date will be set to 1
|
|
667
|
+
week ago.\ Up to 90 days in advance can be specified. If the specified date is more than 90
|
|
668
|
+
days in the past, the date will be set to 90 days ago.\ Date must follow the format YYYY-MM-DD
|
|
669
|
+
(example: "2023-09-21").
|
|
670
|
+
--date-to=<value> The date to end counting used credits from.\ If not specified, the date will be set to today.\
|
|
671
|
+
Date must follow the format YYYY-MM-DD (example: "2023-09-28").
|
|
672
|
+
--project-id=<value> (required) For example, 1 for the following URL: https://app.autify.com/projects/1/credits
|
|
673
|
+
--scenario-id=<value> The scenario ID to filter used credits by.
|
|
674
|
+
--test-plan-id=<value> The test plan ID to filter used credits by.
|
|
675
|
+
--user-id=<value> The user ID that executed tests to filter used credits by.
|
|
676
|
+
|
|
677
|
+
DESCRIPTION
|
|
678
|
+
Get the number of credits used in the project\ \ Notes:\ This endpoint works only for organizations on credit-based
|
|
679
|
+
plans. It always returns 0 for `credits_consumed` and `credit_consumption_event_count` if your organization is on a
|
|
680
|
+
run-based plan.
|
|
681
|
+
|
|
682
|
+
EXAMPLES
|
|
683
|
+
$ autify web api get-credit-usage
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
_See code: [src/commands/web/api/get-credit-usage.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/get-credit-usage.ts)_
|
|
687
|
+
|
|
688
|
+
## `autify web api get-project-info`
|
|
689
|
+
|
|
690
|
+
Get project information.
|
|
691
|
+
|
|
692
|
+
```
|
|
693
|
+
USAGE
|
|
694
|
+
$ autify web api get-project-info --project-id <value>
|
|
695
|
+
|
|
696
|
+
FLAGS
|
|
697
|
+
--project-id=<value> (required) For example, 1 for the following URL: https://app.autify.com/projects/1/project_info
|
|
698
|
+
|
|
699
|
+
DESCRIPTION
|
|
700
|
+
Get project information.
|
|
701
|
+
|
|
702
|
+
EXAMPLES
|
|
703
|
+
$ autify web api get-project-info
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
_See code: [src/commands/web/api/get-project-info.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/get-project-info.ts)_
|
|
604
707
|
|
|
605
708
|
## `autify web api list-access-points`
|
|
606
709
|
|
|
@@ -621,7 +724,7 @@ EXAMPLES
|
|
|
621
724
|
$ autify web api list-access-points
|
|
622
725
|
```
|
|
623
726
|
|
|
624
|
-
_See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
727
|
+
_See code: [src/commands/web/api/list-access-points.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/list-access-points.ts)_
|
|
625
728
|
|
|
626
729
|
## `autify web api list-capabilities`
|
|
627
730
|
|
|
@@ -644,7 +747,7 @@ EXAMPLES
|
|
|
644
747
|
$ autify web api list-capabilities
|
|
645
748
|
```
|
|
646
749
|
|
|
647
|
-
_See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
750
|
+
_See code: [src/commands/web/api/list-capabilities.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/list-capabilities.ts)_
|
|
648
751
|
|
|
649
752
|
## `autify web api list-results`
|
|
650
753
|
|
|
@@ -667,7 +770,7 @@ EXAMPLES
|
|
|
667
770
|
$ autify web api list-results
|
|
668
771
|
```
|
|
669
772
|
|
|
670
|
-
_See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
773
|
+
_See code: [src/commands/web/api/list-results.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/list-results.ts)_
|
|
671
774
|
|
|
672
775
|
## `autify web api list-scenarios`
|
|
673
776
|
|
|
@@ -688,7 +791,28 @@ EXAMPLES
|
|
|
688
791
|
$ autify web api list-scenarios
|
|
689
792
|
```
|
|
690
793
|
|
|
691
|
-
_See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
794
|
+
_See code: [src/commands/web/api/list-scenarios.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/list-scenarios.ts)_
|
|
795
|
+
|
|
796
|
+
## `autify web api list-test-plan-variable`
|
|
797
|
+
|
|
798
|
+
List the test plan's variables
|
|
799
|
+
|
|
800
|
+
```
|
|
801
|
+
USAGE
|
|
802
|
+
$ autify web api list-test-plan-variable --test-plan-id <value>
|
|
803
|
+
|
|
804
|
+
FLAGS
|
|
805
|
+
--test-plan-id=<value> (required) For example, 15 for the following URL:
|
|
806
|
+
https://app.autify.com/projects/1/test_plans/15
|
|
807
|
+
|
|
808
|
+
DESCRIPTION
|
|
809
|
+
List the test plan's variables
|
|
810
|
+
|
|
811
|
+
EXAMPLES
|
|
812
|
+
$ autify web api list-test-plan-variable
|
|
813
|
+
```
|
|
814
|
+
|
|
815
|
+
_See code: [src/commands/web/api/list-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/list-test-plan-variable.ts)_
|
|
692
816
|
|
|
693
817
|
## `autify web api list-url-replacements`
|
|
694
818
|
|
|
@@ -709,7 +833,32 @@ EXAMPLES
|
|
|
709
833
|
$ autify web api list-url-replacements
|
|
710
834
|
```
|
|
711
835
|
|
|
712
|
-
_See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
836
|
+
_See code: [src/commands/web/api/list-url-replacements.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/list-url-replacements.ts)_
|
|
837
|
+
|
|
838
|
+
## `autify web api update-test-plan-variable`
|
|
839
|
+
|
|
840
|
+
Update a url replacement for the test plan
|
|
841
|
+
|
|
842
|
+
```
|
|
843
|
+
USAGE
|
|
844
|
+
$ autify web api update-test-plan-variable --test-plan-id <value> --test-plan-variable-id <value> --update-test-plan-variable-request
|
|
845
|
+
<value>
|
|
846
|
+
|
|
847
|
+
FLAGS
|
|
848
|
+
--test-plan-id=<value> (required) For example, 15 for the following URL:
|
|
849
|
+
https://app.autify.com/projects/1/test_plans/15
|
|
850
|
+
--test-plan-variable-id=<value> (required) test_plan_variable id
|
|
851
|
+
--update-test-plan-variable-request=<value> (required) The variable's new key and/or default_value's value to
|
|
852
|
+
register
|
|
853
|
+
|
|
854
|
+
DESCRIPTION
|
|
855
|
+
Update a url replacement for the test plan
|
|
856
|
+
|
|
857
|
+
EXAMPLES
|
|
858
|
+
$ autify web api update-test-plan-variable
|
|
859
|
+
```
|
|
860
|
+
|
|
861
|
+
_See code: [src/commands/web/api/update-test-plan-variable.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/update-test-plan-variable.ts)_
|
|
713
862
|
|
|
714
863
|
## `autify web api update-url-replacement`
|
|
715
864
|
|
|
@@ -734,7 +883,7 @@ EXAMPLES
|
|
|
734
883
|
$ autify web api update-url-replacement
|
|
735
884
|
```
|
|
736
885
|
|
|
737
|
-
_See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
886
|
+
_See code: [src/commands/web/api/update-url-replacement.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/api/update-url-replacement.ts)_
|
|
738
887
|
|
|
739
888
|
## `autify web auth login`
|
|
740
889
|
|
|
@@ -757,7 +906,7 @@ EXAMPLES
|
|
|
757
906
|
$ autify web auth login < token.txt
|
|
758
907
|
```
|
|
759
908
|
|
|
760
|
-
_See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
909
|
+
_See code: [src/commands/web/auth/login.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/auth/login.ts)_
|
|
761
910
|
|
|
762
911
|
## `autify web test run SCENARIO-OR-TEST-PLAN-URL`
|
|
763
912
|
|
|
@@ -836,7 +985,7 @@ EXAMPLES
|
|
|
836
985
|
$ autify web test run https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client
|
|
837
986
|
```
|
|
838
987
|
|
|
839
|
-
_See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
988
|
+
_See code: [src/commands/web/test/run.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/test/run.ts)_
|
|
840
989
|
|
|
841
990
|
## `autify web test wait TEST-RESULT-URL`
|
|
842
991
|
|
|
@@ -860,5 +1009,5 @@ EXAMPLES
|
|
|
860
1009
|
$ autify web test wait https://app.autify.com/projects/0000/results/0000
|
|
861
1010
|
```
|
|
862
1011
|
|
|
863
|
-
_See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.
|
|
1012
|
+
_See code: [src/commands/web/test/wait.ts](https://github.com/autifyhq/autify-cli/blob/v0.41.0/src/commands/web/test/wait.ts)_
|
|
864
1013
|
<!-- commandsstop -->
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
export default class WebApiCreateTestPlanVariable extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
"test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
|
+
"create-test-plan-variable-request": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const getWebClient_1 = require("../../../autify/web/getWebClient");
|
|
5
|
+
class WebApiCreateTestPlanVariable extends core_1.Command {
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(WebApiCreateTestPlanVariable);
|
|
8
|
+
const { configDir, userAgent } = this.config;
|
|
9
|
+
const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
|
|
10
|
+
const res = await client.createTestPlanVariable(flags["test-plan-id"], JSON.parse(flags["create-test-plan-variable-request"]));
|
|
11
|
+
console.log(JSON.stringify(res.data, null, 2));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
WebApiCreateTestPlanVariable.description = "Create a new variable for the test plan";
|
|
15
|
+
WebApiCreateTestPlanVariable.examples = ["<%= config.bin %> <%= command.id %>"];
|
|
16
|
+
WebApiCreateTestPlanVariable.flags = {
|
|
17
|
+
"test-plan-id": core_1.Flags.integer({
|
|
18
|
+
description: "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
"create-test-plan-variable-request": core_1.Flags.string({
|
|
22
|
+
description: "The new variable key and default value to use in the test plan",
|
|
23
|
+
required: true,
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
exports.default = WebApiCreateTestPlanVariable;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
export default class WebApiDeleteTestPlanVariable extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
"test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
|
+
"test-plan-variable-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const getWebClient_1 = require("../../../autify/web/getWebClient");
|
|
5
|
+
class WebApiDeleteTestPlanVariable extends core_1.Command {
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(WebApiDeleteTestPlanVariable);
|
|
8
|
+
const { configDir, userAgent } = this.config;
|
|
9
|
+
const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
|
|
10
|
+
const res = await client.deleteTestPlanVariable(flags["test-plan-id"], flags["test-plan-variable-id"]);
|
|
11
|
+
console.log(JSON.stringify(res.data, null, 2));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
WebApiDeleteTestPlanVariable.description = "Delete an existing test plan variable for the test plan";
|
|
15
|
+
WebApiDeleteTestPlanVariable.examples = ["<%= config.bin %> <%= command.id %>"];
|
|
16
|
+
WebApiDeleteTestPlanVariable.flags = {
|
|
17
|
+
"test-plan-id": core_1.Flags.integer({
|
|
18
|
+
description: "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/",
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
"test-plan-variable-id": core_1.Flags.integer({
|
|
22
|
+
description: "test_plan_variable id",
|
|
23
|
+
required: true,
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
exports.default = WebApiDeleteTestPlanVariable;
|
|
@@ -5,6 +5,7 @@ export default class WebApiDescribeResult extends Command {
|
|
|
5
5
|
static flags: {
|
|
6
6
|
"project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
7
|
"result-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
|
+
"get-details": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
9
|
};
|
|
9
10
|
run(): Promise<void>;
|
|
10
11
|
}
|
|
@@ -7,7 +7,7 @@ class WebApiDescribeResult extends core_1.Command {
|
|
|
7
7
|
const { flags } = await this.parse(WebApiDescribeResult);
|
|
8
8
|
const { configDir, userAgent } = this.config;
|
|
9
9
|
const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
|
|
10
|
-
const res = await client.describeResult(flags["project-id"], flags["result-id"]);
|
|
10
|
+
const res = await client.describeResult(flags["project-id"], flags["result-id"], flags["get-details"] ? JSON.parse(flags["get-details"]) : undefined);
|
|
11
11
|
console.log(JSON.stringify(res.data, null, 2));
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -22,5 +22,9 @@ WebApiDescribeResult.flags = {
|
|
|
22
22
|
description: "For example, 4 for the following URL: https://app.autify.com/projects/1/results/4",
|
|
23
23
|
required: true,
|
|
24
24
|
}),
|
|
25
|
+
"get-details": core_1.Flags.string({
|
|
26
|
+
description: "The flag to get details of the test case result.",
|
|
27
|
+
required: false,
|
|
28
|
+
}),
|
|
25
29
|
};
|
|
26
30
|
exports.default = WebApiDescribeResult;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
export default class WebApiGetCreditUsage extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
"project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
|
+
"date-from": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
|
+
"date-to": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
9
|
+
"scenario-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
10
|
+
"test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
11
|
+
"user-id": import("@oclif/core/lib/interfaces").OptionFlag<number | undefined, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
12
|
+
};
|
|
13
|
+
run(): Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const getWebClient_1 = require("../../../autify/web/getWebClient");
|
|
5
|
+
class WebApiGetCreditUsage extends core_1.Command {
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(WebApiGetCreditUsage);
|
|
8
|
+
const { configDir, userAgent } = this.config;
|
|
9
|
+
const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
|
|
10
|
+
const res = await client.getCreditUsage(flags["project-id"], flags["date-from"], flags["date-to"], flags["scenario-id"], flags["test-plan-id"], flags["user-id"]);
|
|
11
|
+
console.log(JSON.stringify(res.data, null, 2));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
WebApiGetCreditUsage.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.";
|
|
15
|
+
WebApiGetCreditUsage.examples = ["<%= config.bin %> <%= command.id %>"];
|
|
16
|
+
WebApiGetCreditUsage.flags = {
|
|
17
|
+
"project-id": core_1.Flags.integer({
|
|
18
|
+
description: "For example, 1 for the following URL: https://app.autify.com/projects/1/credits",
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
"date-from": core_1.Flags.string({
|
|
22
|
+
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").",
|
|
23
|
+
required: false,
|
|
24
|
+
}),
|
|
25
|
+
"date-to": core_1.Flags.string({
|
|
26
|
+
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").",
|
|
27
|
+
required: false,
|
|
28
|
+
}),
|
|
29
|
+
"scenario-id": core_1.Flags.integer({
|
|
30
|
+
description: "The scenario ID to filter used credits by.",
|
|
31
|
+
required: false,
|
|
32
|
+
}),
|
|
33
|
+
"test-plan-id": core_1.Flags.integer({
|
|
34
|
+
description: "The test plan ID to filter used credits by.",
|
|
35
|
+
required: false,
|
|
36
|
+
}),
|
|
37
|
+
"user-id": core_1.Flags.integer({
|
|
38
|
+
description: "The user ID that executed tests to filter used credits by.",
|
|
39
|
+
required: false,
|
|
40
|
+
}),
|
|
41
|
+
};
|
|
42
|
+
exports.default = WebApiGetCreditUsage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
export default class WebApiGetProjectInfo extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
"project-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const getWebClient_1 = require("../../../autify/web/getWebClient");
|
|
5
|
+
class WebApiGetProjectInfo extends core_1.Command {
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(WebApiGetProjectInfo);
|
|
8
|
+
const { configDir, userAgent } = this.config;
|
|
9
|
+
const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
|
|
10
|
+
const res = await client.getProjectInfo(flags["project-id"]);
|
|
11
|
+
console.log(JSON.stringify(res.data, null, 2));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
WebApiGetProjectInfo.description = "Get project information.";
|
|
15
|
+
WebApiGetProjectInfo.examples = ["<%= config.bin %> <%= command.id %>"];
|
|
16
|
+
WebApiGetProjectInfo.flags = {
|
|
17
|
+
"project-id": core_1.Flags.integer({
|
|
18
|
+
description: "For example, 1 for the following URL: https://app.autify.com/projects/1/project_info",
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
};
|
|
22
|
+
exports.default = WebApiGetProjectInfo;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
export default class WebApiListTestPlanVariable extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
"test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
|
+
};
|
|
8
|
+
run(): Promise<void>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const getWebClient_1 = require("../../../autify/web/getWebClient");
|
|
5
|
+
class WebApiListTestPlanVariable extends core_1.Command {
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(WebApiListTestPlanVariable);
|
|
8
|
+
const { configDir, userAgent } = this.config;
|
|
9
|
+
const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
|
|
10
|
+
const res = await client.listTestPlanVariable(flags["test-plan-id"]);
|
|
11
|
+
console.log(JSON.stringify(res.data, null, 2));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
WebApiListTestPlanVariable.description = "List the test plan's variables";
|
|
15
|
+
WebApiListTestPlanVariable.examples = ["<%= config.bin %> <%= command.id %>"];
|
|
16
|
+
WebApiListTestPlanVariable.flags = {
|
|
17
|
+
"test-plan-id": core_1.Flags.integer({
|
|
18
|
+
description: "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
};
|
|
22
|
+
exports.default = WebApiListTestPlanVariable;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
export default class WebApiUpdateTestPlanVariable extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
"test-plan-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
7
|
+
"test-plan-variable-id": import("@oclif/core/lib/interfaces").OptionFlag<number, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
8
|
+
"update-test-plan-variable-request": import("@oclif/core/lib/interfaces").OptionFlag<string, import("@oclif/core/lib/interfaces/parser").CustomOptions>;
|
|
9
|
+
};
|
|
10
|
+
run(): Promise<void>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const getWebClient_1 = require("../../../autify/web/getWebClient");
|
|
5
|
+
class WebApiUpdateTestPlanVariable extends core_1.Command {
|
|
6
|
+
async run() {
|
|
7
|
+
const { flags } = await this.parse(WebApiUpdateTestPlanVariable);
|
|
8
|
+
const { configDir, userAgent } = this.config;
|
|
9
|
+
const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
|
|
10
|
+
const res = await client.updateTestPlanVariable(flags["test-plan-id"], flags["test-plan-variable-id"], JSON.parse(flags["update-test-plan-variable-request"]));
|
|
11
|
+
console.log(JSON.stringify(res.data, null, 2));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
WebApiUpdateTestPlanVariable.description = "Update a url replacement for the test plan";
|
|
15
|
+
WebApiUpdateTestPlanVariable.examples = ["<%= config.bin %> <%= command.id %>"];
|
|
16
|
+
WebApiUpdateTestPlanVariable.flags = {
|
|
17
|
+
"test-plan-id": core_1.Flags.integer({
|
|
18
|
+
description: "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
|
|
19
|
+
required: true,
|
|
20
|
+
}),
|
|
21
|
+
"test-plan-variable-id": core_1.Flags.integer({
|
|
22
|
+
description: "test_plan_variable id",
|
|
23
|
+
required: true,
|
|
24
|
+
}),
|
|
25
|
+
"update-test-plan-variable-request": core_1.Flags.string({
|
|
26
|
+
description: "The variable's new key and/or default_value's value to register",
|
|
27
|
+
required: true,
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
exports.default = WebApiUpdateTestPlanVariable;
|
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.41.0",
|
|
3
3
|
"commands": {
|
|
4
4
|
"connect:access-point:create": {
|
|
5
5
|
"id": "connect:access-point:create",
|
|
@@ -438,6 +438,35 @@
|
|
|
438
438
|
},
|
|
439
439
|
"args": {}
|
|
440
440
|
},
|
|
441
|
+
"web:api:create-test-plan-variable": {
|
|
442
|
+
"id": "web:api:create-test-plan-variable",
|
|
443
|
+
"description": "Create a new variable for the test plan",
|
|
444
|
+
"strict": true,
|
|
445
|
+
"pluginName": "@autifyhq/autify-cli",
|
|
446
|
+
"pluginAlias": "@autifyhq/autify-cli",
|
|
447
|
+
"pluginType": "core",
|
|
448
|
+
"aliases": [],
|
|
449
|
+
"examples": [
|
|
450
|
+
"<%= config.bin %> <%= command.id %>"
|
|
451
|
+
],
|
|
452
|
+
"flags": {
|
|
453
|
+
"test-plan-id": {
|
|
454
|
+
"name": "test-plan-id",
|
|
455
|
+
"type": "option",
|
|
456
|
+
"description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
|
|
457
|
+
"required": true,
|
|
458
|
+
"multiple": false
|
|
459
|
+
},
|
|
460
|
+
"create-test-plan-variable-request": {
|
|
461
|
+
"name": "create-test-plan-variable-request",
|
|
462
|
+
"type": "option",
|
|
463
|
+
"description": "The new variable key and default value to use in the test plan",
|
|
464
|
+
"required": true,
|
|
465
|
+
"multiple": false
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"args": {}
|
|
469
|
+
},
|
|
441
470
|
"web:api:create-url-replacement": {
|
|
442
471
|
"id": "web:api:create-url-replacement",
|
|
443
472
|
"description": "Create a new url replacement for the test plan",
|
|
@@ -496,6 +525,35 @@
|
|
|
496
525
|
},
|
|
497
526
|
"args": {}
|
|
498
527
|
},
|
|
528
|
+
"web:api:delete-test-plan-variable": {
|
|
529
|
+
"id": "web:api:delete-test-plan-variable",
|
|
530
|
+
"description": "Delete an existing test plan variable for the test plan",
|
|
531
|
+
"strict": true,
|
|
532
|
+
"pluginName": "@autifyhq/autify-cli",
|
|
533
|
+
"pluginAlias": "@autifyhq/autify-cli",
|
|
534
|
+
"pluginType": "core",
|
|
535
|
+
"aliases": [],
|
|
536
|
+
"examples": [
|
|
537
|
+
"<%= config.bin %> <%= command.id %>"
|
|
538
|
+
],
|
|
539
|
+
"flags": {
|
|
540
|
+
"test-plan-id": {
|
|
541
|
+
"name": "test-plan-id",
|
|
542
|
+
"type": "option",
|
|
543
|
+
"description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15/",
|
|
544
|
+
"required": true,
|
|
545
|
+
"multiple": false
|
|
546
|
+
},
|
|
547
|
+
"test-plan-variable-id": {
|
|
548
|
+
"name": "test-plan-variable-id",
|
|
549
|
+
"type": "option",
|
|
550
|
+
"description": "test_plan_variable id",
|
|
551
|
+
"required": true,
|
|
552
|
+
"multiple": false
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"args": {}
|
|
556
|
+
},
|
|
499
557
|
"web:api:delete-url-replacement": {
|
|
500
558
|
"id": "web:api:delete-url-replacement",
|
|
501
559
|
"description": "Delete a url replacement for the test plan",
|
|
@@ -550,6 +608,13 @@
|
|
|
550
608
|
"description": "For example, 4 for the following URL: https://app.autify.com/projects/1/results/4",
|
|
551
609
|
"required": true,
|
|
552
610
|
"multiple": false
|
|
611
|
+
},
|
|
612
|
+
"get-details": {
|
|
613
|
+
"name": "get-details",
|
|
614
|
+
"type": "option",
|
|
615
|
+
"description": "The flag to get details of the test case result.",
|
|
616
|
+
"required": false,
|
|
617
|
+
"multiple": false
|
|
553
618
|
}
|
|
554
619
|
},
|
|
555
620
|
"args": {}
|
|
@@ -641,6 +706,85 @@
|
|
|
641
706
|
},
|
|
642
707
|
"args": {}
|
|
643
708
|
},
|
|
709
|
+
"web:api:get-credit-usage": {
|
|
710
|
+
"id": "web:api:get-credit-usage",
|
|
711
|
+
"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.",
|
|
712
|
+
"strict": true,
|
|
713
|
+
"pluginName": "@autifyhq/autify-cli",
|
|
714
|
+
"pluginAlias": "@autifyhq/autify-cli",
|
|
715
|
+
"pluginType": "core",
|
|
716
|
+
"aliases": [],
|
|
717
|
+
"examples": [
|
|
718
|
+
"<%= config.bin %> <%= command.id %>"
|
|
719
|
+
],
|
|
720
|
+
"flags": {
|
|
721
|
+
"project-id": {
|
|
722
|
+
"name": "project-id",
|
|
723
|
+
"type": "option",
|
|
724
|
+
"description": "For example, 1 for the following URL: https://app.autify.com/projects/1/credits",
|
|
725
|
+
"required": true,
|
|
726
|
+
"multiple": false
|
|
727
|
+
},
|
|
728
|
+
"date-from": {
|
|
729
|
+
"name": "date-from",
|
|
730
|
+
"type": "option",
|
|
731
|
+
"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").",
|
|
732
|
+
"required": false,
|
|
733
|
+
"multiple": false
|
|
734
|
+
},
|
|
735
|
+
"date-to": {
|
|
736
|
+
"name": "date-to",
|
|
737
|
+
"type": "option",
|
|
738
|
+
"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").",
|
|
739
|
+
"required": false,
|
|
740
|
+
"multiple": false
|
|
741
|
+
},
|
|
742
|
+
"scenario-id": {
|
|
743
|
+
"name": "scenario-id",
|
|
744
|
+
"type": "option",
|
|
745
|
+
"description": "The scenario ID to filter used credits by.",
|
|
746
|
+
"required": false,
|
|
747
|
+
"multiple": false
|
|
748
|
+
},
|
|
749
|
+
"test-plan-id": {
|
|
750
|
+
"name": "test-plan-id",
|
|
751
|
+
"type": "option",
|
|
752
|
+
"description": "The test plan ID to filter used credits by.",
|
|
753
|
+
"required": false,
|
|
754
|
+
"multiple": false
|
|
755
|
+
},
|
|
756
|
+
"user-id": {
|
|
757
|
+
"name": "user-id",
|
|
758
|
+
"type": "option",
|
|
759
|
+
"description": "The user ID that executed tests to filter used credits by.",
|
|
760
|
+
"required": false,
|
|
761
|
+
"multiple": false
|
|
762
|
+
}
|
|
763
|
+
},
|
|
764
|
+
"args": {}
|
|
765
|
+
},
|
|
766
|
+
"web:api:get-project-info": {
|
|
767
|
+
"id": "web:api:get-project-info",
|
|
768
|
+
"description": "Get project information.",
|
|
769
|
+
"strict": true,
|
|
770
|
+
"pluginName": "@autifyhq/autify-cli",
|
|
771
|
+
"pluginAlias": "@autifyhq/autify-cli",
|
|
772
|
+
"pluginType": "core",
|
|
773
|
+
"aliases": [],
|
|
774
|
+
"examples": [
|
|
775
|
+
"<%= config.bin %> <%= command.id %>"
|
|
776
|
+
],
|
|
777
|
+
"flags": {
|
|
778
|
+
"project-id": {
|
|
779
|
+
"name": "project-id",
|
|
780
|
+
"type": "option",
|
|
781
|
+
"description": "For example, 1 for the following URL: https://app.autify.com/projects/1/project_info",
|
|
782
|
+
"required": true,
|
|
783
|
+
"multiple": false
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
"args": {}
|
|
787
|
+
},
|
|
644
788
|
"web:api:list-access-points": {
|
|
645
789
|
"id": "web:api:list-access-points",
|
|
646
790
|
"description": "List access points for the project.",
|
|
@@ -785,6 +929,28 @@
|
|
|
785
929
|
},
|
|
786
930
|
"args": {}
|
|
787
931
|
},
|
|
932
|
+
"web:api:list-test-plan-variable": {
|
|
933
|
+
"id": "web:api:list-test-plan-variable",
|
|
934
|
+
"description": "List the test plan's variables",
|
|
935
|
+
"strict": true,
|
|
936
|
+
"pluginName": "@autifyhq/autify-cli",
|
|
937
|
+
"pluginAlias": "@autifyhq/autify-cli",
|
|
938
|
+
"pluginType": "core",
|
|
939
|
+
"aliases": [],
|
|
940
|
+
"examples": [
|
|
941
|
+
"<%= config.bin %> <%= command.id %>"
|
|
942
|
+
],
|
|
943
|
+
"flags": {
|
|
944
|
+
"test-plan-id": {
|
|
945
|
+
"name": "test-plan-id",
|
|
946
|
+
"type": "option",
|
|
947
|
+
"description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
|
|
948
|
+
"required": true,
|
|
949
|
+
"multiple": false
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
"args": {}
|
|
953
|
+
},
|
|
788
954
|
"web:api:list-url-replacements": {
|
|
789
955
|
"id": "web:api:list-url-replacements",
|
|
790
956
|
"description": "List url replacements for the test plan",
|
|
@@ -807,6 +973,42 @@
|
|
|
807
973
|
},
|
|
808
974
|
"args": {}
|
|
809
975
|
},
|
|
976
|
+
"web:api:update-test-plan-variable": {
|
|
977
|
+
"id": "web:api:update-test-plan-variable",
|
|
978
|
+
"description": "Update a url replacement for the test plan",
|
|
979
|
+
"strict": true,
|
|
980
|
+
"pluginName": "@autifyhq/autify-cli",
|
|
981
|
+
"pluginAlias": "@autifyhq/autify-cli",
|
|
982
|
+
"pluginType": "core",
|
|
983
|
+
"aliases": [],
|
|
984
|
+
"examples": [
|
|
985
|
+
"<%= config.bin %> <%= command.id %>"
|
|
986
|
+
],
|
|
987
|
+
"flags": {
|
|
988
|
+
"test-plan-id": {
|
|
989
|
+
"name": "test-plan-id",
|
|
990
|
+
"type": "option",
|
|
991
|
+
"description": "For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15",
|
|
992
|
+
"required": true,
|
|
993
|
+
"multiple": false
|
|
994
|
+
},
|
|
995
|
+
"test-plan-variable-id": {
|
|
996
|
+
"name": "test-plan-variable-id",
|
|
997
|
+
"type": "option",
|
|
998
|
+
"description": "test_plan_variable id",
|
|
999
|
+
"required": true,
|
|
1000
|
+
"multiple": false
|
|
1001
|
+
},
|
|
1002
|
+
"update-test-plan-variable-request": {
|
|
1003
|
+
"name": "update-test-plan-variable-request",
|
|
1004
|
+
"type": "option",
|
|
1005
|
+
"description": "The variable's new key and/or default_value's value to register",
|
|
1006
|
+
"required": true,
|
|
1007
|
+
"multiple": false
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"args": {}
|
|
1011
|
+
},
|
|
810
1012
|
"web:api:update-url-replacement": {
|
|
811
1013
|
"id": "web:api:update-url-replacement",
|
|
812
1014
|
"description": "Update a url replacement for the test plan",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autifyhq/autify-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"description": "Autify Command Line Interface (CLI)",
|
|
5
5
|
"author": "Autify",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@autifyhq/autify-sdk": "^0.
|
|
20
|
+
"@autifyhq/autify-sdk": "^0.20.0",
|
|
21
21
|
"@oclif/core": "^2.15.0",
|
|
22
22
|
"@oclif/errors": "^1.3.6",
|
|
23
23
|
"@oclif/plugin-help": "^5.2.20",
|