@autifyhq/autify-cli 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +72 -9
  2. package/dist/autify/connect/client-manager/ClientManager.js +2 -5
  3. package/dist/autify/mobile/getMobileClient.d.ts +2 -0
  4. package/dist/autify/mobile/getMobileClient.js +17 -0
  5. package/dist/autify/web/getWebClient.d.ts +2 -0
  6. package/dist/autify/web/getWebClient.js +17 -0
  7. package/dist/autify/web/runTest.js +8 -3
  8. package/dist/commands/connect/access-point/create.js +2 -5
  9. package/dist/commands/mobile/api/describe-test-result.js +2 -5
  10. package/dist/commands/mobile/api/list-test-results.js +2 -5
  11. package/dist/commands/mobile/api/run-test-plan.js +2 -5
  12. package/dist/commands/mobile/api/upload-build.js +2 -5
  13. package/dist/commands/mobile/build/upload.js +2 -5
  14. package/dist/commands/mobile/test/run.js +2 -5
  15. package/dist/commands/mobile/test/wait.js +2 -5
  16. package/dist/commands/web/api/create-access-point.d.ts +10 -0
  17. package/dist/commands/web/api/create-access-point.js +26 -0
  18. package/dist/commands/web/api/create-url-replacement.js +2 -5
  19. package/dist/commands/web/api/delete-access-point.d.ts +10 -0
  20. package/dist/commands/web/api/delete-access-point.js +26 -0
  21. package/dist/commands/web/api/delete-url-replacement.js +2 -5
  22. package/dist/commands/web/api/describe-result.js +2 -5
  23. package/dist/commands/web/api/describe-scenario.js +2 -5
  24. package/dist/commands/web/api/execute-scenarios.js +2 -5
  25. package/dist/commands/web/api/execute-schedule.d.ts +1 -0
  26. package/dist/commands/web/api/execute-schedule.js +9 -6
  27. package/dist/commands/web/api/list-access-points.d.ts +10 -0
  28. package/dist/commands/web/api/list-access-points.js +26 -0
  29. package/dist/commands/web/api/list-capabilities.js +2 -5
  30. package/dist/commands/web/api/list-results.js +2 -5
  31. package/dist/commands/web/api/list-scenarios.js +2 -5
  32. package/dist/commands/web/api/list-url-replacements.js +2 -5
  33. package/dist/commands/web/api/update-url-replacement.js +2 -5
  34. package/dist/commands/web/test/run.js +7 -10
  35. package/dist/commands/web/test/wait.js +2 -5
  36. package/dist/config.d.ts +1 -1
  37. package/oclif.manifest.json +1 -1
  38. package/package.json +5 -5
package/README.md CHANGED
@@ -33,12 +33,15 @@ See our official document: https://help.autify.com/docs/autify-command-line-inte
33
33
  * [`autify mobile test run TEST-PLAN-URL`](#autify-mobile-test-run-test-plan-url)
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
+ * [`autify web api create-access-point`](#autify-web-api-create-access-point)
36
37
  * [`autify web api create-url-replacement`](#autify-web-api-create-url-replacement)
38
+ * [`autify web api delete-access-point`](#autify-web-api-delete-access-point)
37
39
  * [`autify web api delete-url-replacement`](#autify-web-api-delete-url-replacement)
38
40
  * [`autify web api describe-result`](#autify-web-api-describe-result)
39
41
  * [`autify web api describe-scenario`](#autify-web-api-describe-scenario)
40
42
  * [`autify web api execute-scenarios`](#autify-web-api-execute-scenarios)
41
43
  * [`autify web api execute-schedule`](#autify-web-api-execute-schedule)
44
+ * [`autify web api list-access-points`](#autify-web-api-list-access-points)
42
45
  * [`autify web api list-capabilities`](#autify-web-api-list-capabilities)
43
46
  * [`autify web api list-results`](#autify-web-api-list-results)
44
47
  * [`autify web api list-scenarios`](#autify-web-api-list-scenarios)
@@ -397,6 +400,26 @@ EXAMPLES
397
400
 
398
401
  _See code: [@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v3.0.0/src/commands/update.ts)_
399
402
 
403
+ ## `autify web api create-access-point`
404
+
405
+ You can generate a new access point by passing in its name.
406
+
407
+ ```
408
+ USAGE
409
+ $ autify web api create-access-point --project-id <value> --create-access-point-request <value>
410
+
411
+ FLAGS
412
+ --create-access-point-request=<value> (required) The name of the access point to be created
413
+ --project-id=<value> (required) For example, 1 for the following URL:
414
+ https://app.autify.com/projects/1/scenarios
415
+
416
+ DESCRIPTION
417
+ You can generate a new access point by passing in its name.
418
+
419
+ EXAMPLES
420
+ $ autify web api create-access-point
421
+ ```
422
+
400
423
  ## `autify web api create-url-replacement`
401
424
 
402
425
  Create a new url replacement for the test plan
@@ -417,6 +440,26 @@ EXAMPLES
417
440
  $ autify web api create-url-replacement
418
441
  ```
419
442
 
443
+ ## `autify web api delete-access-point`
444
+
445
+ You can delete an access point by passing in its name.
446
+
447
+ ```
448
+ USAGE
449
+ $ autify web api delete-access-point --project-id <value> --delete-access-point-request <value>
450
+
451
+ FLAGS
452
+ --delete-access-point-request=<value> (required) The name of the access point to be deleted
453
+ --project-id=<value> (required) For example, 1 for the following URL:
454
+ https://app.autify.com/projects/1/scenarios
455
+
456
+ DESCRIPTION
457
+ You can delete an access point by passing in its name.
458
+
459
+ EXAMPLES
460
+ $ autify web api delete-access-point
461
+ ```
462
+
420
463
  ## `autify web api delete-url-replacement`
421
464
 
422
465
  Delete a url replacement for the test plan
@@ -502,10 +545,12 @@ Run a test plan. (Note: "Schedule" is called as "TestPlan" now.)
502
545
 
503
546
  ```
504
547
  USAGE
505
- $ autify web api execute-schedule --schedule-id <value>
548
+ $ autify web api execute-schedule --schedule-id <value> [--execute-schedule-request <value>]
506
549
 
507
550
  FLAGS
508
- --schedule-id=<value> (required) For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3
551
+ --execute-schedule-request=<value> The options to execute a test plan.
552
+ --schedule-id=<value> (required) For example, 3 for the following URL:
553
+ https://app.autify.com/projects/1/test_plans/3
509
554
 
510
555
  DESCRIPTION
511
556
  Run a test plan. (Note: "Schedule" is called as "TestPlan" now.)
@@ -514,6 +559,25 @@ EXAMPLES
514
559
  $ autify web api execute-schedule
515
560
  ```
516
561
 
562
+ ## `autify web api list-access-points`
563
+
564
+ List access points for the project.
565
+
566
+ ```
567
+ USAGE
568
+ $ autify web api list-access-points --project-id <value> [--page <value>]
569
+
570
+ FLAGS
571
+ --page=<value> The number of page returns.
572
+ --project-id=<value> (required) For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios
573
+
574
+ DESCRIPTION
575
+ List access points for the project.
576
+
577
+ EXAMPLES
578
+ $ autify web api list-access-points
579
+ ```
580
+
517
581
  ## `autify web api list-capabilities`
518
582
 
519
583
  List available Capabilities.
@@ -660,13 +724,12 @@ FLAGS
660
724
  test execution.
661
725
  -v, --verbose Verbose output
662
726
  -w, --wait Wait until the test finishes.
663
- --autify-connect=<value> [Only for test scenario] Name of the Autify Connect Access Point.
664
- --autify-connect-client [Only for test scenario] Start Autify Connect Client
665
- --autify-connect-client-debug-server-port=<value> [Only for test scenario] Port for Autify Connect Client debug
666
- server. A random port will be used if not specified.
667
- --autify-connect-client-file-logging [Only for test scenario] Logging Autify Connect Client log to a
668
- file instead of console.
669
- --autify-connect-client-verbose [Only for test scenario] Verbose output for Autify Connect Client.
727
+ --autify-connect=<value> Name of the Autify Connect Access Point.
728
+ --autify-connect-client Start Autify Connect Client
729
+ --autify-connect-client-debug-server-port=<value> Port for Autify Connect Client debug server. A random port will be
730
+ used if not specified.
731
+ --autify-connect-client-file-logging Logging Autify Connect Client log to a file instead of console.
732
+ --autify-connect-client-verbose Verbose output for Autify Connect Client.
670
733
  --browser=<value> [Only for test scenario] Browser to run the test
671
734
  --device=<value> [Only for test scenario] Device to run the test
672
735
  --device-type=<value> [Only for test scenario] Device type to run the test
@@ -2,8 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ClientManager = exports.StateMachineTimeoutError = void 0;
4
4
  const tslib_1 = require("tslib");
5
- /* eslint-disable unicorn/filename-case */
6
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
7
5
  const errors_1 = require("@oclif/errors");
8
6
  const node_child_process_1 = require("node:child_process");
9
7
  const node_process_1 = require("node:process");
@@ -17,6 +15,7 @@ const StateMachine_1 = require("./StateMachine");
17
15
  const Logger_1 = require("./Logger");
18
16
  const node_path_1 = require("node:path");
19
17
  const get_port_1 = tslib_1.__importDefault(require("get-port"));
18
+ const getWebClient_1 = require("../../web/getWebClient");
20
19
  class StateMachineTimeoutError extends errors_1.CLIError {
21
20
  constructor(state) {
22
21
  super(`Autify Connect Manager faced timeout at ${state} state.`);
@@ -67,9 +66,7 @@ class ClientManager {
67
66
  static async create(options) {
68
67
  if (options.webWorkspaceId) {
69
68
  const { configDir, userAgent, webWorkspaceId } = options;
70
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
71
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
72
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
69
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
73
70
  return this.createWithEphemeralAccessPointForWeb(client, webWorkspaceId, options);
74
71
  }
75
72
  return this.createWithStaticAccessPoint(options);
@@ -0,0 +1,2 @@
1
+ import { MobileClient } from "@autifyhq/autify-sdk";
2
+ export declare const getMobileClient: (configDir: string, userAgent: string) => MobileClient;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMobileClient = void 0;
4
+ /* eslint-disable unicorn/filename-case */
5
+ const autify_sdk_1 = require("@autifyhq/autify-sdk");
6
+ const config_1 = require("../../config");
7
+ const getMobileClient = (configDir, userAgent) => {
8
+ var _a;
9
+ const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
10
+ const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
11
+ const userAgentSuffix = (_a = (0, config_1.get)(configDir, "AUTIFY_CLI_USER_AGENT_SUFFIX")) !== null && _a !== void 0 ? _a : "";
12
+ return new autify_sdk_1.MobileClient(accessToken, {
13
+ basePath,
14
+ userAgent: `${userAgent} ${userAgentSuffix}`.trim(),
15
+ });
16
+ };
17
+ exports.getMobileClient = getMobileClient;
@@ -0,0 +1,2 @@
1
+ import { WebClient } from "@autifyhq/autify-sdk";
2
+ export declare const getWebClient: (configDir: string, userAgent: string) => WebClient;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getWebClient = void 0;
4
+ /* eslint-disable unicorn/filename-case */
5
+ const autify_sdk_1 = require("@autifyhq/autify-sdk");
6
+ const config_1 = require("../../config");
7
+ const getWebClient = (configDir, userAgent) => {
8
+ var _a;
9
+ const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
10
+ const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
11
+ const userAgentSuffix = (_a = (0, config_1.get)(configDir, "AUTIFY_CLI_USER_AGENT_SUFFIX")) !== null && _a !== void 0 ? _a : "";
12
+ return new autify_sdk_1.WebClient(accessToken, {
13
+ basePath,
14
+ userAgent: `${userAgent} ${userAgentSuffix}`.trim(),
15
+ });
16
+ };
17
+ exports.getWebClient = getWebClient;
@@ -57,14 +57,19 @@ const runTest = async (client, parsedTest, { option, name, urlReplacements, auti
57
57
  throw new errors_1.CLIError(`Running TestPlan doesn't support capability override: ${JSON.stringify(option)}`);
58
58
  if (name)
59
59
  throw new errors_1.CLIError(`Running TestPlan doesn't support --name: ${name}`);
60
- if (autifyConnectAccessPoint)
61
- throw new errors_1.CLIError("Running TestPlan doesn't support Autify Connect Access Point");
62
60
  const urlReplacementIds = [];
63
61
  for await (const urlReplacement of urlReplacements !== null && urlReplacements !== void 0 ? urlReplacements : []) {
64
62
  const res = await client.createUrlReplacement(testPlanId, urlReplacement);
65
63
  urlReplacementIds.push(res.data.id);
66
64
  }
67
- const res = await client.executeSchedule(testPlanId);
65
+ const res = await client.executeSchedule(testPlanId, {
66
+ ...(autifyConnectAccessPoint && {
67
+ // eslint-disable-next-line camelcase
68
+ autify_connect: {
69
+ name: autifyConnectAccessPoint,
70
+ },
71
+ }),
72
+ });
68
73
  for await (const urlReplacementId of urlReplacementIds) {
69
74
  await client.deleteUrlReplacement(testPlanId, urlReplacementId);
70
75
  }
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
4
3
  const core_1 = require("@oclif/core");
5
4
  const accessPointConfig_1 = require("../../../autify/connect/accessPointConfig");
6
- const config_1 = require("../../../config");
5
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
7
6
  class ConnectAccessPointCreate extends core_1.Command {
8
7
  async run() {
9
8
  const { flags } = await this.parse(ConnectAccessPointCreate);
@@ -11,9 +10,7 @@ class ConnectAccessPointCreate extends core_1.Command {
11
10
  await (0, accessPointConfig_1.confirmOverwriteAccessPoint)(configDir);
12
11
  const { name, "web-workspace-id": webWorkspaceId } = flags;
13
12
  if (webWorkspaceId) {
14
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
15
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
16
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
13
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
17
14
  const response = await client.createAccessPoint(webWorkspaceId, {
18
15
  name,
19
16
  });
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
6
5
  class MobileApiDescribeTestResult extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(MobileApiDescribeTestResult);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
12
- const client = new autify_sdk_1.MobileClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
13
10
  const res = await client.describeTestResult(flags["project-id"], flags.id);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
6
5
  class MobileApiListTestResults extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(MobileApiListTestResults);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
12
- const client = new autify_sdk_1.MobileClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
13
10
  const res = await client.listTestResults(flags["project-id"], flags.page, flags["per-page"], flags["test-plan-id"]);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
6
5
  class MobileApiRunTestPlan extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(MobileApiRunTestPlan);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
12
- const client = new autify_sdk_1.MobileClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
13
10
  const res = await client.runTestPlan(flags["test-plan-id"], JSON.parse(flags["run-test-plan-request"]));
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
6
5
  class MobileApiUploadBuild extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(MobileApiUploadBuild);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
12
- const client = new autify_sdk_1.MobileClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
13
10
  const res = await client.uploadBuild(flags["project-id"], flags.file);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,21 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
4
  const core_1 = require("@oclif/core");
6
5
  const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
7
6
  const getBuildDetailUrl_1 = require("../../../autify/mobile/getBuildDetailUrl");
7
+ const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
8
8
  const uploadBuild_1 = require("../../../autify/mobile/uploadBuild");
9
- const config_1 = require("../../../config");
10
9
  class MobileBuildUpload extends core_1.Command {
11
10
  async run() {
12
11
  const { args, flags } = await this.parse(MobileBuildUpload);
13
12
  const buildPath = args["build-path"];
14
13
  const workspaceId = flags["workspace-id"];
15
14
  const { configDir, userAgent } = this.config;
16
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
17
- const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
18
- const client = new autify_sdk_1.MobileClient(accessToken, { basePath, userAgent });
15
+ const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
19
16
  const [buildId, os] = await (0, uploadBuild_1.uploadBuild)(client, workspaceId, buildPath);
20
17
  const buildDetailUrl = (0, getBuildDetailUrl_1.getBuildDetailUrl)(configDir, workspaceId, os, buildId);
21
18
  this.log(`${node_emoji_1.default.get("white_check_mark")} Successfully uploaded ${buildPath} (ID: ${buildId}). See ${buildDetailUrl}`);
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
4
  const core_1 = require("@oclif/core");
6
5
  const errors_1 = require("@oclif/errors");
7
6
  const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
7
+ const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
8
8
  const getTestResultUrl_1 = require("../../../autify/mobile/getTestResultUrl");
9
9
  const parseTestPlanUrl_1 = require("../../../autify/mobile/parseTestPlanUrl");
10
- const config_1 = require("../../../config");
11
10
  const upload_1 = tslib_1.__importDefault(require("../build/upload"));
12
11
  const wait_1 = tslib_1.__importDefault(require("./wait"));
13
12
  class MobileTestRun extends core_1.Command {
@@ -16,9 +15,7 @@ class MobileTestRun extends core_1.Command {
16
15
  let buildId = flags["build-id"];
17
16
  const buildPath = flags["build-path"];
18
17
  const { configDir, userAgent } = this.config;
19
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
20
- const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
21
- const client = new autify_sdk_1.MobileClient(accessToken, { basePath, userAgent });
18
+ const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
22
19
  const { workspaceId, testPlanId } = (0, parseTestPlanUrl_1.parseTestPlanUrl)(args["test-plan-url"]);
23
20
  if (buildPath) {
24
21
  const uploadArgs = ["--workspace-id", workspaceId, buildPath];
@@ -1,22 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
4
  const core_1 = require("@oclif/core");
6
5
  const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
7
6
  const getWaitIntervalSecond_1 = require("../../../autify/getWaitIntervalSecond");
7
+ const getMobileClient_1 = require("../../../autify/mobile/getMobileClient");
8
8
  const getTestResultUrl_1 = require("../../../autify/mobile/getTestResultUrl");
9
9
  const parseTestResultUrl_1 = require("../../../autify/mobile/parseTestResultUrl");
10
10
  const waitTestResult_1 = require("../../../autify/mobile/waitTestResult");
11
- const config_1 = require("../../../config");
12
11
  class MobileTestWait extends core_1.Command {
13
12
  async run() {
14
13
  const { args, flags } = await this.parse(MobileTestWait);
15
14
  const { configDir, userAgent } = this.config;
16
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_MOBILE_ACCESS_TOKEN");
17
- const basePath = (0, config_1.get)(configDir, "AUTIFY_MOBILE_BASE_PATH");
18
15
  const waitIntervalSecond = (0, getWaitIntervalSecond_1.getWaitIntervalSecond)(configDir);
19
- const client = new autify_sdk_1.MobileClient(accessToken, { basePath, userAgent });
16
+ const client = (0, getMobileClient_1.getMobileClient)(configDir, userAgent);
20
17
  const { workspaceId, resultId } = (0, parseTestResultUrl_1.parseTestResultUrl)(args["test-result-url"]);
21
18
  const testResultUrl = (0, getTestResultUrl_1.getMobileTestResultUrl)(configDir, workspaceId, resultId);
22
19
  this.log(`${node_emoji_1.default.get("clock1")} Waiting for the test result: ${testResultUrl}`);
@@ -0,0 +1,10 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class WebApiCreateAccessPoint extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ static flags: {
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
+ "create-access-point-request": import("@oclif/core/lib/interfaces").OptionFlag<string>;
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 WebApiCreateAccessPoint extends core_1.Command {
6
+ async run() {
7
+ const { flags } = await this.parse(WebApiCreateAccessPoint);
8
+ const { configDir, userAgent } = this.config;
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
10
+ const res = await client.createAccessPoint(flags["project-id"], JSON.parse(flags["create-access-point-request"]));
11
+ console.log(JSON.stringify(res.data, null, 2));
12
+ }
13
+ }
14
+ exports.default = WebApiCreateAccessPoint;
15
+ WebApiCreateAccessPoint.description = "You can generate a new access point by passing in its name.";
16
+ WebApiCreateAccessPoint.examples = ["<%= config.bin %> <%= command.id %>"];
17
+ WebApiCreateAccessPoint.flags = {
18
+ "project-id": core_1.Flags.integer({
19
+ description: "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
20
+ required: true,
21
+ }),
22
+ "create-access-point-request": core_1.Flags.string({
23
+ description: "The name of the access point to be created",
24
+ required: true,
25
+ }),
26
+ };
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiCreateUrlReplacement extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiCreateUrlReplacement);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.createUrlReplacement(flags["test-plan-id"], JSON.parse(flags["create-url-replacement-request"]));
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -0,0 +1,10 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class WebApiDeleteAccessPoint extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ static flags: {
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
+ "delete-access-point-request": import("@oclif/core/lib/interfaces").OptionFlag<string>;
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 WebApiDeleteAccessPoint extends core_1.Command {
6
+ async run() {
7
+ const { flags } = await this.parse(WebApiDeleteAccessPoint);
8
+ const { configDir, userAgent } = this.config;
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
10
+ const res = await client.deleteAccessPoint(flags["project-id"], JSON.parse(flags["delete-access-point-request"]));
11
+ console.log(JSON.stringify(res.data, null, 2));
12
+ }
13
+ }
14
+ exports.default = WebApiDeleteAccessPoint;
15
+ WebApiDeleteAccessPoint.description = "You can delete an access point by passing in its name.";
16
+ WebApiDeleteAccessPoint.examples = ["<%= config.bin %> <%= command.id %>"];
17
+ WebApiDeleteAccessPoint.flags = {
18
+ "project-id": core_1.Flags.integer({
19
+ description: "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
20
+ required: true,
21
+ }),
22
+ "delete-access-point-request": core_1.Flags.string({
23
+ description: "The name of the access point to be deleted",
24
+ required: true,
25
+ }),
26
+ };
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiDeleteUrlReplacement extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiDeleteUrlReplacement);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.deleteUrlReplacement(flags["test-plan-id"], flags["url-replacement-id"]);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiDescribeResult extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiDescribeResult);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.describeResult(flags["project-id"], flags["result-id"]);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiDescribeScenario extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiDescribeScenario);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.describeScenario(flags["project-id"], flags["scenario-id"]);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiExecuteScenarios extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiExecuteScenarios);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.executeScenarios(flags["project-id"], JSON.parse(flags["execute-scenarios-request"]));
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -4,6 +4,7 @@ export default class WebApiExecuteSchedule extends Command {
4
4
  static examples: string[];
5
5
  static flags: {
6
6
  "schedule-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
+ "execute-schedule-request": import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
7
8
  };
8
9
  run(): Promise<void>;
9
10
  }
@@ -1,16 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiExecuteSchedule extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiExecuteSchedule);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
13
- const res = await client.executeSchedule(flags["schedule-id"]);
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
10
+ const res = await client.executeSchedule(flags["schedule-id"], flags["execute-schedule-request"]
11
+ ? JSON.parse(flags["execute-schedule-request"])
12
+ : undefined);
14
13
  console.log(JSON.stringify(res.data, null, 2));
15
14
  }
16
15
  }
@@ -22,4 +21,8 @@ WebApiExecuteSchedule.flags = {
22
21
  description: "For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3",
23
22
  required: true,
24
23
  }),
24
+ "execute-schedule-request": core_1.Flags.string({
25
+ description: "The options to execute a test plan.",
26
+ required: false,
27
+ }),
25
28
  };
@@ -0,0 +1,10 @@
1
+ import { Command } from "@oclif/core";
2
+ export default class WebApiListAccessPoints extends Command {
3
+ static description: string;
4
+ static examples: string[];
5
+ static flags: {
6
+ "project-id": import("@oclif/core/lib/interfaces").OptionFlag<number>;
7
+ page: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
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 WebApiListAccessPoints extends core_1.Command {
6
+ async run() {
7
+ const { flags } = await this.parse(WebApiListAccessPoints);
8
+ const { configDir, userAgent } = this.config;
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
10
+ const res = await client.listAccessPoints(flags["project-id"], flags.page);
11
+ console.log(JSON.stringify(res.data, null, 2));
12
+ }
13
+ }
14
+ exports.default = WebApiListAccessPoints;
15
+ WebApiListAccessPoints.description = "List access points for the project.";
16
+ WebApiListAccessPoints.examples = ["<%= config.bin %> <%= command.id %>"];
17
+ WebApiListAccessPoints.flags = {
18
+ "project-id": core_1.Flags.integer({
19
+ description: "For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios",
20
+ required: true,
21
+ }),
22
+ page: core_1.Flags.integer({
23
+ description: "The number of page returns.",
24
+ required: false,
25
+ }),
26
+ };
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiListCapabilities extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiListCapabilities);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.listCapabilities(flags["project-id"], flags.os, flags.browser, flags["device-type"]);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiListResults extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiListResults);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.listResults(flags["project-id"], flags.page, flags["per-page"], flags["test-plan-id"]);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiListScenarios extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiListScenarios);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.listScenarios(flags["project-id"], flags.page);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiListUrlReplacements extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiListUrlReplacements);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.listUrlReplacements(flags["test-plan-id"]);
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -1,15 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const core_1 = require("@oclif/core");
4
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
5
- const config_1 = require("../../../config");
4
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
6
5
  class WebApiUpdateUrlReplacement extends core_1.Command {
7
6
  async run() {
8
7
  const { flags } = await this.parse(WebApiUpdateUrlReplacement);
9
8
  const { configDir, userAgent } = this.config;
10
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
11
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
12
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
9
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
13
10
  const res = await client.updateUrlReplacement(flags["test-plan-id"], flags["url-replacement-id"], JSON.parse(flags["update-url-replacement-request"]));
14
11
  console.log(JSON.stringify(res.data, null, 2));
15
12
  }
@@ -3,14 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
5
  const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
6
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
7
- const config_1 = require("../../../config");
8
6
  const runTest_1 = require("../../../autify/web/runTest");
9
7
  const getTestResultUrl_1 = require("../../../autify/web/getTestResultUrl");
10
8
  const wait_1 = tslib_1.__importDefault(require("./wait"));
11
9
  const errors_1 = require("@oclif/errors");
12
10
  const parseAutifyTestUrl_1 = require("../../../autify/web/parseAutifyTestUrl");
13
11
  const ClientManager_1 = require("../../../autify/connect/client-manager/ClientManager");
12
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
14
13
  const parseUrlReplacements = (urlReplacements) => {
15
14
  return urlReplacements.map((s) => {
16
15
  // eslint-disable-next-line camelcase
@@ -45,9 +44,7 @@ class WebTestRun extends core_1.Command {
45
44
  if (urlReplacements.length > 0)
46
45
  this.log(`${node_emoji_1.default.get("memo")} Using URL replacements: ${urlReplacementsToString(urlReplacements)}`);
47
46
  const { configDir, cacheDir, userAgent } = this.config;
48
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
49
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
50
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
47
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
51
48
  const parsedTest = (0, parseAutifyTestUrl_1.parseAutifyTestUrl)(args["scenario-or-test-plan-url"]);
52
49
  const { workspaceId } = parsedTest;
53
50
  let autifyConnectAccessPoint = flags["autify-connect"];
@@ -153,24 +150,24 @@ WebTestRun.flags = {
153
150
  multiple: true,
154
151
  }),
155
152
  "autify-connect": core_1.Flags.string({
156
- description: "[Only for test scenario] Name of the Autify Connect Access Point.",
153
+ description: "Name of the Autify Connect Access Point.",
157
154
  exclusive: ["autify-connect-client"],
158
155
  }),
159
156
  "autify-connect-client": core_1.Flags.boolean({
160
- description: "[Only for test scenario] Start Autify Connect Client",
157
+ description: "Start Autify Connect Client",
161
158
  exclusive: ["autify-connect"],
162
159
  dependsOn: ["wait"],
163
160
  }),
164
161
  "autify-connect-client-verbose": core_1.Flags.boolean({
165
- description: "[Only for test scenario] Verbose output for Autify Connect Client.",
162
+ description: "Verbose output for Autify Connect Client.",
166
163
  dependsOn: ["autify-connect-client"],
167
164
  }),
168
165
  "autify-connect-client-file-logging": core_1.Flags.boolean({
169
- description: "[Only for test scenario] Logging Autify Connect Client log to a file instead of console.",
166
+ description: "Logging Autify Connect Client log to a file instead of console.",
170
167
  dependsOn: ["autify-connect-client"],
171
168
  }),
172
169
  "autify-connect-client-debug-server-port": core_1.Flags.integer({
173
- description: "[Only for test scenario] Port for Autify Connect Client debug server. A random port will be used if not specified.",
170
+ description: "Port for Autify Connect Client debug server. A random port will be used if not specified.",
174
171
  dependsOn: ["autify-connect-client"],
175
172
  }),
176
173
  os: core_1.Flags.string({
@@ -3,20 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const core_1 = require("@oclif/core");
5
5
  const node_emoji_1 = tslib_1.__importDefault(require("node-emoji"));
6
- const autify_sdk_1 = require("@autifyhq/autify-sdk");
7
- const config_1 = require("../../../config");
8
6
  const parseTestResultUrl_1 = require("../../../autify/web/parseTestResultUrl");
9
7
  const waitTestResult_1 = require("../../../autify/web/waitTestResult");
10
8
  const getTestResultUrl_1 = require("../../../autify/web/getTestResultUrl");
11
9
  const getWaitIntervalSecond_1 = require("../../../autify/getWaitIntervalSecond");
10
+ const getWebClient_1 = require("../../../autify/web/getWebClient");
12
11
  class WebTestWait extends core_1.Command {
13
12
  async run() {
14
13
  const { args, flags } = await this.parse(WebTestWait);
15
14
  const { configDir, userAgent } = this.config;
16
- const accessToken = (0, config_1.getOrThrow)(configDir, "AUTIFY_WEB_ACCESS_TOKEN");
17
- const basePath = (0, config_1.get)(configDir, "AUTIFY_WEB_BASE_PATH");
18
15
  const waitIntervalSecond = (0, getWaitIntervalSecond_1.getWaitIntervalSecond)(configDir);
19
- const client = new autify_sdk_1.WebClient(accessToken, { basePath, userAgent });
16
+ const client = (0, getWebClient_1.getWebClient)(configDir, userAgent);
20
17
  const { workspaceId, resultId } = (0, parseTestResultUrl_1.parseTestResultUrl)(args["test-result-url"]);
21
18
  const testResultUrl = (0, getTestResultUrl_1.getWebTestResultUrl)(configDir, workspaceId, resultId);
22
19
  this.log(`${node_emoji_1.default.get("clock1")} Waiting for the test result: ${testResultUrl}`);
package/dist/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare type Variable = "AUTIFY_WEB_ACCESS_TOKEN" | "AUTIFY_WEB_BASE_PATH" | "AUTIFY_MOBILE_ACCESS_TOKEN" | "AUTIFY_MOBILE_BASE_PATH" | "AUTIFY_CONNECT_ACCESS_POINT_NAME" | "AUTIFY_CONNECT_ACCESS_POINT_KEY" | "AUTIFY_CONNECT_CLIENT_MODE" | "AUTIFY_TEST_WAIT_INTERVAL_SECOND";
1
+ declare type Variable = "AUTIFY_WEB_ACCESS_TOKEN" | "AUTIFY_WEB_BASE_PATH" | "AUTIFY_MOBILE_ACCESS_TOKEN" | "AUTIFY_MOBILE_BASE_PATH" | "AUTIFY_CONNECT_ACCESS_POINT_NAME" | "AUTIFY_CONNECT_ACCESS_POINT_KEY" | "AUTIFY_CONNECT_CLIENT_MODE" | "AUTIFY_CLI_USER_AGENT_SUFFIX" | "AUTIFY_TEST_WAIT_INTERVAL_SECOND";
2
2
  export declare const set: (configDir: string, key: Variable, value: string | undefined) => void;
3
3
  export declare const get: (configDir: string, key: Variable) => string | undefined;
4
4
  export declare const getOrThrow: (configDir: string, key: Variable) => string;
@@ -1 +1 @@
1
- {"version":"0.11.0","commands":{"connect:access-point:create":{"id":"connect:access-point:create","description":"Create an Autify Connect Access Point","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --name NAME --web-workspace-id ID"],"flags":{"name":{"name":"name","type":"option","description":"Name of Autify Connect Access Point to be created","required":true,"multiple":false},"web-workspace-id":{"name":"web-workspace-id","type":"option","description":"Workspace ID of Autify for Web to which the Access Point will belong","multiple":false}},"args":[]},"connect:access-point:set":{"id":"connect:access-point:set","description":"Set Autify Connect Access Point","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Start interactive setup:\n<%= config.bin %> <%= command.id %> --name=NAME","Reading the key from file:\n<%= config.bin %> <%= command.id %> --name=NAME < key.txt"],"flags":{"name":{"name":"name","type":"option","description":"Name of the Autify Connect Access Point already created","required":true,"multiple":false}},"args":[]},"connect:client:install":{"id":"connect:client:install","description":"Install Autify Connect Client","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["(Recommended) Install the supported version:\n<%= config.bin %> <%= command.id %>","Install a specific version:\n<%= config.bin %> <%= command.id %> v0.6.1","Install a stable version:\n<%= config.bin %> <%= command.id %> stable"],"flags":{},"args":[{"name":"version","description":"Specify the target version of Autify Connect Client.","default":"v0.6.3"}]},"connect:client:start":{"id":"connect:client:start","description":"Start Autify Connect Client","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["With pre-created Access Point:\n<%= config.bin %> <%= command.id %>","With ephemeral Access Point of Autify for Web:\n<%= config.bin %> <%= command.id %> --web-workspace-id 000"],"flags":{"verbose":{"name":"verbose","type":"boolean","description":"Make the operation more talkative.","allowNo":false},"file-logging":{"name":"file-logging","type":"boolean","description":"Logging Autify Connect Client log to a file instead of console.","allowNo":false},"debug-server-port":{"name":"debug-server-port","type":"option","description":"The server for debugging and monitoring launches on your local machine on the given port. It will use a radom port if not specified.","multiple":false},"web-workspace-id":{"name":"web-workspace-id","type":"option","description":"Workspace ID of Autify for Web to create an ephemeral Access Point. If not specified, it will use the one configured by `autify connect access-point create/set`, instead.","multiple":false}},"args":[]},"mobile:api:describe-test-result":{"id":"mobile:api:describe-test-result","description":"Get a test result.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"ID of the project from which the test results will be obtained.","required":true,"multiple":false},"id":{"name":"id","type":"option","description":"Test Result ID.","required":true,"multiple":false}},"args":[]},"mobile:api:list-test-results":{"id":"mobile:api:list-test-results","description":"List test results.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"ID of the project from which the list of test results will be retrieved.","required":true,"multiple":false},"page":{"name":"page","type":"option","description":"Page number to be retrieved.","required":false,"multiple":false},"per-page":{"name":"per-page","type":"option","description":"Number of test results per page.","required":false,"multiple":false},"test-plan-id":{"name":"test-plan-id","type":"option","description":"ID of the test plan.","required":false,"multiple":false}},"args":[]},"mobile:api:run-test-plan":{"id":"mobile:api:run-test-plan","description":"Run a test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"The ID of the test plan to run.","required":true,"multiple":false},"run-test-plan-request":{"name":"run-test-plan-request","type":"option","description":"The build_id to execute the test plan.","required":true,"multiple":false}},"args":[]},"mobile:api:upload-build":{"id":"mobile:api:upload-build","description":"Upload the build file.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"The ID of the project to upload the build file to.","required":true,"multiple":false},"file":{"name":"file","type":"option","description":"Build file.","required":true,"multiple":false}},"args":[]},"mobile:auth:login":{"id":"mobile:auth:login","description":"Login to Autify for Mobile","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Start interactive setup:\n<%= config.bin %> <%= command.id %>","Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"],"flags":{},"args":[]},"mobile:build:upload":{"id":"mobile:build:upload","description":"Upload a build file","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>","Upload build file\n<%= config.bin %> <%= command.id %> --workspace-id AAA ./my.app","Upload build file (JSON output)\n<%= config.bin %> <%= command.id %> --workspace-id AAA ./my.app --json"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"workspace-id":{"name":"workspace-id","type":"option","char":"w","description":"Workspace ID to upload the build file","required":true,"multiple":false}},"args":[{"name":"build-path","description":"File path to the iOS app (*.app) or Android app (*.apk).","required":true}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"mobile:test:run":{"id":"mobile:test:run","description":"Run a test plan.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Run a test plan with a build ID:\n<%= config.bin %> <%= command.id %> --build-id CCC https://mobile-app.autify.com/projects/AAA/test_plans/BBB","Run a test plan with a new build file:\n<%= config.bin %> <%= command.id %> --build-path ./my.[app|apk] https://mobile-app.autify.com/projects/AAA/test_plans/BBB","Run and wait a test plan:\n<%= config.bin %> <%= command.id %> --build-id CCC https://mobile-app.autify.com/projects/AAA/test_plans/BBB --wait --timeout 600"],"flags":{"build-id":{"name":"build-id","type":"option","description":"ID of the already uploaded build.","multiple":false,"exclusive":["build-path"]},"build-path":{"name":"build-path","type":"option","description":"File path to the iOS app (*.app) or Android app (*.apk).","multiple":false,"exclusive":["build-id"]},"wait":{"name":"wait","type":"boolean","char":"w","description":"Wait until the test finishes.","allowNo":false},"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout seconds when waiting for the finish of the test execution.","multiple":false,"default":300},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"max-retry-count":{"name":"max-retry-count","type":"option","description":"Maximum retry count. The command can take up to timeout * (max-retry-count + 1).","multiple":false,"default":0}},"args":[{"name":"test-plan-url","description":"Test plan URL e.g. https://mobile-app.autify.com/projects/<ID>/test_plans/<ID>","required":true}]},"mobile:test:wait":{"id":"mobile:test:wait","description":"Wait a test result until it finishes.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> https://mobile-app.autify.com/projects/AAA/results/BBB"],"flags":{"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout seconds when waiting for the finish of the test execution.","multiple":false,"default":300},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false}},"args":[{"name":"test-result-url","description":"Test result URL e.g. https://mobile-app.autify.com/projects/<ID>/results/<ID>","required":true}]},"web:api:create-url-replacement":{"id":"web:api:create-url-replacement","description":"Create a new url replacement for the test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15","required":true,"multiple":false},"create-url-replacement-request":{"name":"create-url-replacement-request","type":"option","description":"The url to replace","required":true,"multiple":false}},"args":[]},"web:api:delete-url-replacement":{"id":"web:api:delete-url-replacement","description":"Delete a url replacement for the test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15","required":true,"multiple":false},"url-replacement-id":{"name":"url-replacement-id","type":"option","description":"url_replacement id","required":true,"multiple":false}},"args":[]},"web:api:describe-result":{"id":"web:api:describe-result","description":"Get a result.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/results/4","required":true,"multiple":false},"result-id":{"name":"result-id","type":"option","description":"For example, 4 for the following URL: https://app.autify.com/projects/1/results/4","required":true,"multiple":false}},"args":[]},"web:api:describe-scenario":{"id":"web:api:describe-scenario","description":"Get a scenario.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2","required":true,"multiple":false},"scenario-id":{"name":"scenario-id","type":"option","description":"For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2","required":true,"multiple":false}},"args":[]},"web:api:execute-scenarios":{"id":"web:api:execute-scenarios","description":"You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios","required":true,"multiple":false},"execute-scenarios-request":{"name":"execute-scenarios-request","type":"option","description":"The scenarios and settings to execute","required":true,"multiple":false}},"args":[]},"web:api:execute-schedule":{"id":"web:api:execute-schedule","description":"Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"schedule-id":{"name":"schedule-id","type":"option","description":"For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3","required":true,"multiple":false}},"args":[]},"web:api:list-capabilities":{"id":"web:api:list-capabilities","description":"List available Capabilities.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities","required":true,"multiple":false},"os":{"name":"os","type":"option","description":"os name to filter","required":false,"multiple":false},"browser":{"name":"browser","type":"option","description":"browser name to filter","required":false,"multiple":false},"device-type":{"name":"device-type","type":"option","description":"device_type name to filter","required":false,"multiple":false}},"args":[]},"web:api:list-results":{"id":"web:api:list-results","description":"List results.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/results","required":true,"multiple":false},"page":{"name":"page","type":"option","description":"The number of page returns.","required":false,"multiple":false},"per-page":{"name":"per-page","type":"option","description":"The number of items returns. Default number is 30 and up to a maximum of 100","required":false,"multiple":false},"test-plan-id":{"name":"test-plan-id","type":"option","description":"Test plan ID used to filter results.","required":false,"multiple":false}},"args":[]},"web:api:list-scenarios":{"id":"web:api:list-scenarios","description":"List scenarios.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios","required":true,"multiple":false},"page":{"name":"page","type":"option","description":"The number of page returns.","required":false,"multiple":false}},"args":[]},"web:api:list-url-replacements":{"id":"web:api:list-url-replacements","description":"List url replacements for the test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15","required":true,"multiple":false}},"args":[]},"web:api:update-url-replacement":{"id":"web:api:update-url-replacement","description":"Update a url replacement for the test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15","required":true,"multiple":false},"url-replacement-id":{"name":"url-replacement-id","type":"option","description":"url_replacement id","required":true,"multiple":false},"update-url-replacement-request":{"name":"update-url-replacement-request","type":"option","description":"The url to replace. Either pattern_url or replacement_url is required.","required":true,"multiple":false}},"args":[]},"web:auth:login":{"id":"web:auth:login","description":"Login to Autify for Web","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Start interactive setup:\n<%= config.bin %> <%= command.id %>","Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"],"flags":{},"args":[]},"web:test:run":{"id":"web:test:run","description":"Run a scenario or test plan.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Run a test scenario (Default capability):\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000","Run a test plan:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/test_plans/0000","Run and wait a test scenario:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --wait --timeout 600","Run a test scenario with a specific capability:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --os \"Windows Server\" --browser Edge","With URL replacements:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 -r http://example.com=http://example.net -r http://example.org=http://example.net","Run a test with specifying the execution name:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --name \"Sample execution\"","Run a test scenario with Autify Connect:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --autify-connect NAME","Run a test scenario with Autify Connect Client:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client"],"flags":{"name":{"name":"name","type":"option","char":"n","description":"[Only for test scenario] Name of the test execution.","multiple":false},"url-replacements":{"name":"url-replacements","type":"option","char":"r","description":"URL replacements. Example: http://example.com=http://example.net","multiple":true},"autify-connect":{"name":"autify-connect","type":"option","description":"[Only for test scenario] Name of the Autify Connect Access Point.","multiple":false,"exclusive":["autify-connect-client"]},"autify-connect-client":{"name":"autify-connect-client","type":"boolean","description":"[Only for test scenario] Start Autify Connect Client","allowNo":false,"dependsOn":["wait"],"exclusive":["autify-connect"]},"autify-connect-client-verbose":{"name":"autify-connect-client-verbose","type":"boolean","description":"[Only for test scenario] Verbose output for Autify Connect Client.","allowNo":false,"dependsOn":["autify-connect-client"]},"autify-connect-client-file-logging":{"name":"autify-connect-client-file-logging","type":"boolean","description":"[Only for test scenario] Logging Autify Connect Client log to a file instead of console.","allowNo":false,"dependsOn":["autify-connect-client"]},"autify-connect-client-debug-server-port":{"name":"autify-connect-client-debug-server-port","type":"option","description":"[Only for test scenario] Port for Autify Connect Client debug server. A random port will be used if not specified.","multiple":false,"dependsOn":["autify-connect-client"]},"os":{"name":"os","type":"option","description":"[Only for test scenario] OS to run the test","multiple":false},"os-version":{"name":"os-version","type":"option","description":"[Only for test scenario] OS version to run the test","multiple":false},"browser":{"name":"browser","type":"option","description":"[Only for test scenario] Browser to run the test","multiple":false},"device":{"name":"device","type":"option","description":"[Only for test scenario] Device to run the test","multiple":false},"device-type":{"name":"device-type","type":"option","description":"[Only for test scenario] Device type to run the test","multiple":false},"wait":{"name":"wait","type":"boolean","char":"w","description":"Wait until the test finishes.","allowNo":false},"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout seconds when waiting for the finish of the test execution.","multiple":false,"default":300},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"max-retry-count":{"name":"max-retry-count","type":"option","description":"Maximum retry count while waiting. The command can take up to `timeout * (max-retry-count + 1)`. Only effective with `--wait`.","multiple":false,"default":0}},"args":[{"name":"scenario-or-test-plan-url","description":"Scenario URL or Test plan URL e.g. https://app.autify.com/projects/<ID>/(scenarios|test_plans)/<ID>","required":true}]},"web:test:wait":{"id":"web:test:wait","description":"Wait a test result until it finishes.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/results/0000"],"flags":{"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout seconds when waiting for the finish of the test execution.","multiple":false,"default":300},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false}},"args":[{"name":"test-result-url","description":"Test result URL e.g. https://app.autify.com/projects/<ID>/results/<ID>","required":true}]}}}
1
+ {"version":"0.12.0","commands":{"connect:access-point:create":{"id":"connect:access-point:create","description":"Create an Autify Connect Access Point","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --name NAME --web-workspace-id ID"],"flags":{"name":{"name":"name","type":"option","description":"Name of Autify Connect Access Point to be created","required":true,"multiple":false},"web-workspace-id":{"name":"web-workspace-id","type":"option","description":"Workspace ID of Autify for Web to which the Access Point will belong","multiple":false}},"args":[]},"connect:access-point:set":{"id":"connect:access-point:set","description":"Set Autify Connect Access Point","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Start interactive setup:\n<%= config.bin %> <%= command.id %> --name=NAME","Reading the key from file:\n<%= config.bin %> <%= command.id %> --name=NAME < key.txt"],"flags":{"name":{"name":"name","type":"option","description":"Name of the Autify Connect Access Point already created","required":true,"multiple":false}},"args":[]},"connect:client:install":{"id":"connect:client:install","description":"Install Autify Connect Client","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["(Recommended) Install the supported version:\n<%= config.bin %> <%= command.id %>","Install a specific version:\n<%= config.bin %> <%= command.id %> v0.6.1","Install a stable version:\n<%= config.bin %> <%= command.id %> stable"],"flags":{},"args":[{"name":"version","description":"Specify the target version of Autify Connect Client.","default":"v0.6.3"}]},"connect:client:start":{"id":"connect:client:start","description":"Start Autify Connect Client","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["With pre-created Access Point:\n<%= config.bin %> <%= command.id %>","With ephemeral Access Point of Autify for Web:\n<%= config.bin %> <%= command.id %> --web-workspace-id 000"],"flags":{"verbose":{"name":"verbose","type":"boolean","description":"Make the operation more talkative.","allowNo":false},"file-logging":{"name":"file-logging","type":"boolean","description":"Logging Autify Connect Client log to a file instead of console.","allowNo":false},"debug-server-port":{"name":"debug-server-port","type":"option","description":"The server for debugging and monitoring launches on your local machine on the given port. It will use a radom port if not specified.","multiple":false},"web-workspace-id":{"name":"web-workspace-id","type":"option","description":"Workspace ID of Autify for Web to create an ephemeral Access Point. If not specified, it will use the one configured by `autify connect access-point create/set`, instead.","multiple":false}},"args":[]},"mobile:api:describe-test-result":{"id":"mobile:api:describe-test-result","description":"Get a test result.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"ID of the project from which the test results will be obtained.","required":true,"multiple":false},"id":{"name":"id","type":"option","description":"Test Result ID.","required":true,"multiple":false}},"args":[]},"mobile:api:list-test-results":{"id":"mobile:api:list-test-results","description":"List test results.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"ID of the project from which the list of test results will be retrieved.","required":true,"multiple":false},"page":{"name":"page","type":"option","description":"Page number to be retrieved.","required":false,"multiple":false},"per-page":{"name":"per-page","type":"option","description":"Number of test results per page.","required":false,"multiple":false},"test-plan-id":{"name":"test-plan-id","type":"option","description":"ID of the test plan.","required":false,"multiple":false}},"args":[]},"mobile:api:run-test-plan":{"id":"mobile:api:run-test-plan","description":"Run a test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"The ID of the test plan to run.","required":true,"multiple":false},"run-test-plan-request":{"name":"run-test-plan-request","type":"option","description":"The build_id to execute the test plan.","required":true,"multiple":false}},"args":[]},"mobile:api:upload-build":{"id":"mobile:api:upload-build","description":"Upload the build file.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"The ID of the project to upload the build file to.","required":true,"multiple":false},"file":{"name":"file","type":"option","description":"Build file.","required":true,"multiple":false}},"args":[]},"mobile:auth:login":{"id":"mobile:auth:login","description":"Login to Autify for Mobile","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Start interactive setup:\n<%= config.bin %> <%= command.id %>","Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"],"flags":{},"args":[]},"mobile:build:upload":{"id":"mobile:build:upload","description":"Upload a build file","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>","Upload build file\n<%= config.bin %> <%= command.id %> --workspace-id AAA ./my.app","Upload build file (JSON output)\n<%= config.bin %> <%= command.id %> --workspace-id AAA ./my.app --json"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"workspace-id":{"name":"workspace-id","type":"option","char":"w","description":"Workspace ID to upload the build file","required":true,"multiple":false}},"args":[{"name":"build-path","description":"File path to the iOS app (*.app) or Android app (*.apk).","required":true}],"_enableJsonFlag":true,"_globalFlags":{"json":{"description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false,"type":"boolean"}}},"mobile:test:run":{"id":"mobile:test:run","description":"Run a test plan.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Run a test plan with a build ID:\n<%= config.bin %> <%= command.id %> --build-id CCC https://mobile-app.autify.com/projects/AAA/test_plans/BBB","Run a test plan with a new build file:\n<%= config.bin %> <%= command.id %> --build-path ./my.[app|apk] https://mobile-app.autify.com/projects/AAA/test_plans/BBB","Run and wait a test plan:\n<%= config.bin %> <%= command.id %> --build-id CCC https://mobile-app.autify.com/projects/AAA/test_plans/BBB --wait --timeout 600"],"flags":{"build-id":{"name":"build-id","type":"option","description":"ID of the already uploaded build.","multiple":false,"exclusive":["build-path"]},"build-path":{"name":"build-path","type":"option","description":"File path to the iOS app (*.app) or Android app (*.apk).","multiple":false,"exclusive":["build-id"]},"wait":{"name":"wait","type":"boolean","char":"w","description":"Wait until the test finishes.","allowNo":false},"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout seconds when waiting for the finish of the test execution.","multiple":false,"default":300},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"max-retry-count":{"name":"max-retry-count","type":"option","description":"Maximum retry count. The command can take up to timeout * (max-retry-count + 1).","multiple":false,"default":0}},"args":[{"name":"test-plan-url","description":"Test plan URL e.g. https://mobile-app.autify.com/projects/<ID>/test_plans/<ID>","required":true}]},"mobile:test:wait":{"id":"mobile:test:wait","description":"Wait a test result until it finishes.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> https://mobile-app.autify.com/projects/AAA/results/BBB"],"flags":{"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout seconds when waiting for the finish of the test execution.","multiple":false,"default":300},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false}},"args":[{"name":"test-result-url","description":"Test result URL e.g. https://mobile-app.autify.com/projects/<ID>/results/<ID>","required":true}]},"web:api:create-access-point":{"id":"web:api:create-access-point","description":"You can generate a new access point by passing in its name.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios","required":true,"multiple":false},"create-access-point-request":{"name":"create-access-point-request","type":"option","description":"The name of the access point to be created","required":true,"multiple":false}},"args":[]},"web:api:create-url-replacement":{"id":"web:api:create-url-replacement","description":"Create a new url replacement for the test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15","required":true,"multiple":false},"create-url-replacement-request":{"name":"create-url-replacement-request","type":"option","description":"The url to replace","required":true,"multiple":false}},"args":[]},"web:api:delete-access-point":{"id":"web:api:delete-access-point","description":"You can delete an access point by passing in its name.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios","required":true,"multiple":false},"delete-access-point-request":{"name":"delete-access-point-request","type":"option","description":"The name of the access point to be deleted","required":true,"multiple":false}},"args":[]},"web:api:delete-url-replacement":{"id":"web:api:delete-url-replacement","description":"Delete a url replacement for the test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15","required":true,"multiple":false},"url-replacement-id":{"name":"url-replacement-id","type":"option","description":"url_replacement id","required":true,"multiple":false}},"args":[]},"web:api:describe-result":{"id":"web:api:describe-result","description":"Get a result.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/results/4","required":true,"multiple":false},"result-id":{"name":"result-id","type":"option","description":"For example, 4 for the following URL: https://app.autify.com/projects/1/results/4","required":true,"multiple":false}},"args":[]},"web:api:describe-scenario":{"id":"web:api:describe-scenario","description":"Get a scenario.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios/2","required":true,"multiple":false},"scenario-id":{"name":"scenario-id","type":"option","description":"For example, 2 for the following URL: https://app.autify.com/projects/1/scenarios/2","required":true,"multiple":false}},"args":[]},"web:api:execute-scenarios":{"id":"web:api:execute-scenarios","description":"You can execute any scenarios in your workspace using any execution environments (which is called \"capabilities\" here).","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios","required":true,"multiple":false},"execute-scenarios-request":{"name":"execute-scenarios-request","type":"option","description":"The scenarios and settings to execute","required":true,"multiple":false}},"args":[]},"web:api:execute-schedule":{"id":"web:api:execute-schedule","description":"Run a test plan. (Note: \"Schedule\" is called as \"TestPlan\" now.)","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"schedule-id":{"name":"schedule-id","type":"option","description":"For example, 3 for the following URL: https://app.autify.com/projects/1/test_plans/3","required":true,"multiple":false},"execute-schedule-request":{"name":"execute-schedule-request","type":"option","description":"The options to execute a test plan.","required":false,"multiple":false}},"args":[]},"web:api:list-access-points":{"id":"web:api:list-access-points","description":"List access points for the project.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios","required":true,"multiple":false},"page":{"name":"page","type":"option","description":"The number of page returns.","required":false,"multiple":false}},"args":[]},"web:api:list-capabilities":{"id":"web:api:list-capabilities","description":"List available Capabilities.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/capabilities","required":true,"multiple":false},"os":{"name":"os","type":"option","description":"os name to filter","required":false,"multiple":false},"browser":{"name":"browser","type":"option","description":"browser name to filter","required":false,"multiple":false},"device-type":{"name":"device-type","type":"option","description":"device_type name to filter","required":false,"multiple":false}},"args":[]},"web:api:list-results":{"id":"web:api:list-results","description":"List results.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/results","required":true,"multiple":false},"page":{"name":"page","type":"option","description":"The number of page returns.","required":false,"multiple":false},"per-page":{"name":"per-page","type":"option","description":"The number of items returns. Default number is 30 and up to a maximum of 100","required":false,"multiple":false},"test-plan-id":{"name":"test-plan-id","type":"option","description":"Test plan ID used to filter results.","required":false,"multiple":false}},"args":[]},"web:api:list-scenarios":{"id":"web:api:list-scenarios","description":"List scenarios.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"project-id":{"name":"project-id","type":"option","description":"For example, 1 for the following URL: https://app.autify.com/projects/1/scenarios","required":true,"multiple":false},"page":{"name":"page","type":"option","description":"The number of page returns.","required":false,"multiple":false}},"args":[]},"web:api:list-url-replacements":{"id":"web:api:list-url-replacements","description":"List url replacements for the test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15","required":true,"multiple":false}},"args":[]},"web:api:update-url-replacement":{"id":"web:api:update-url-replacement","description":"Update a url replacement for the test plan","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"test-plan-id":{"name":"test-plan-id","type":"option","description":"For example, 15 for the following URL: https://app.autify.com/projects/1/test_plans/15","required":true,"multiple":false},"url-replacement-id":{"name":"url-replacement-id","type":"option","description":"url_replacement id","required":true,"multiple":false},"update-url-replacement-request":{"name":"update-url-replacement-request","type":"option","description":"The url to replace. Either pattern_url or replacement_url is required.","required":true,"multiple":false}},"args":[]},"web:auth:login":{"id":"web:auth:login","description":"Login to Autify for Web","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Start interactive setup:\n<%= config.bin %> <%= command.id %>","Reading the token from file:\n<%= config.bin %> <%= command.id %> < token.txt"],"flags":{},"args":[]},"web:test:run":{"id":"web:test:run","description":"Run a scenario or test plan.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["Run a test scenario (Default capability):\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000","Run a test plan:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/test_plans/0000","Run and wait a test scenario:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --wait --timeout 600","Run a test scenario with a specific capability:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --os \"Windows Server\" --browser Edge","With URL replacements:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 -r http://example.com=http://example.net -r http://example.org=http://example.net","Run a test with specifying the execution name:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --name \"Sample execution\"","Run a test scenario with Autify Connect:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --autify-connect NAME","Run a test scenario with Autify Connect Client:\n<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/scenarios/0000 --wait --autify-connect-client"],"flags":{"name":{"name":"name","type":"option","char":"n","description":"[Only for test scenario] Name of the test execution.","multiple":false},"url-replacements":{"name":"url-replacements","type":"option","char":"r","description":"URL replacements. Example: http://example.com=http://example.net","multiple":true},"autify-connect":{"name":"autify-connect","type":"option","description":"Name of the Autify Connect Access Point.","multiple":false,"exclusive":["autify-connect-client"]},"autify-connect-client":{"name":"autify-connect-client","type":"boolean","description":"Start Autify Connect Client","allowNo":false,"dependsOn":["wait"],"exclusive":["autify-connect"]},"autify-connect-client-verbose":{"name":"autify-connect-client-verbose","type":"boolean","description":"Verbose output for Autify Connect Client.","allowNo":false,"dependsOn":["autify-connect-client"]},"autify-connect-client-file-logging":{"name":"autify-connect-client-file-logging","type":"boolean","description":"Logging Autify Connect Client log to a file instead of console.","allowNo":false,"dependsOn":["autify-connect-client"]},"autify-connect-client-debug-server-port":{"name":"autify-connect-client-debug-server-port","type":"option","description":"Port for Autify Connect Client debug server. A random port will be used if not specified.","multiple":false,"dependsOn":["autify-connect-client"]},"os":{"name":"os","type":"option","description":"[Only for test scenario] OS to run the test","multiple":false},"os-version":{"name":"os-version","type":"option","description":"[Only for test scenario] OS version to run the test","multiple":false},"browser":{"name":"browser","type":"option","description":"[Only for test scenario] Browser to run the test","multiple":false},"device":{"name":"device","type":"option","description":"[Only for test scenario] Device to run the test","multiple":false},"device-type":{"name":"device-type","type":"option","description":"[Only for test scenario] Device type to run the test","multiple":false},"wait":{"name":"wait","type":"boolean","char":"w","description":"Wait until the test finishes.","allowNo":false},"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout seconds when waiting for the finish of the test execution.","multiple":false,"default":300},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false},"max-retry-count":{"name":"max-retry-count","type":"option","description":"Maximum retry count while waiting. The command can take up to `timeout * (max-retry-count + 1)`. Only effective with `--wait`.","multiple":false,"default":0}},"args":[{"name":"scenario-or-test-plan-url","description":"Scenario URL or Test plan URL e.g. https://app.autify.com/projects/<ID>/(scenarios|test_plans)/<ID>","required":true}]},"web:test:wait":{"id":"web:test:wait","description":"Wait a test result until it finishes.","strict":true,"pluginName":"@autifyhq/autify-cli","pluginAlias":"@autifyhq/autify-cli","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> https://app.autify.com/projects/0000/results/0000"],"flags":{"timeout":{"name":"timeout","type":"option","char":"t","description":"Timeout seconds when waiting for the finish of the test execution.","multiple":false,"default":300},"verbose":{"name":"verbose","type":"boolean","char":"v","description":"Verbose output","allowNo":false}},"args":[{"name":"test-result-url","description":"Test result URL e.g. https://app.autify.com/projects/<ID>/results/<ID>","required":true}]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-cli",
3
- "version": "0.11.0",
3
+ "version": "0.12.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.5.0",
20
+ "@autifyhq/autify-sdk": "^0.6.0",
21
21
  "@oclif/core": "^1",
22
22
  "@oclif/errors": "^1.3.5",
23
23
  "@oclif/plugin-help": "^5",
@@ -51,7 +51,7 @@
51
51
  "@types/inquirer": "^8.2.1",
52
52
  "@types/listr": "^0.14.4",
53
53
  "@types/mocha": "^9.1.1",
54
- "@types/node": "^16.11.59",
54
+ "@types/node": "^16.11.62",
55
55
  "@types/node-emoji": "^1.8.2",
56
56
  "@types/node-fetch": "^2.6.2",
57
57
  "@types/tar": "^6.1.2",
@@ -74,7 +74,7 @@
74
74
  "ts-node": "^10.9.1",
75
75
  "tslib": "^2.4.0",
76
76
  "typed-emitter": "^2.1.0",
77
- "typescript": "^4.7.4"
77
+ "typescript": "^4.8.3"
78
78
  },
79
79
  "oclif": {
80
80
  "bin": "autify",
@@ -140,7 +140,7 @@
140
140
  "postinstall:development": "patch-package",
141
141
  "postinstall:production": "true",
142
142
  "generate:api-commands": "ts-node scripts/generate-api-commands.ts",
143
- "generate": "npm run generate:api-commands web && npm run generate:api-commands mobile && npm run format-lint-api-commands",
143
+ "generate": "npm run generate:api-commands web && npm run generate:api-commands mobile && npm run format-lint-api-commands && npm run build",
144
144
  "build": "shx rm -rf dist && tsc -b",
145
145
  "lint": "eslint . --ext .ts --config .eslintrc",
146
146
  "format": "prettier . --write",