@mablhq/mabl-cli 1.62.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/basicApiClient.js +10 -10
- package/api/mablApiClient.js +39 -1
- package/browserLauncher/playwrightBrowserLauncher/playwrightBrowser.js +6 -6
- package/cli.js +1 -0
- package/commands/app-files/app-files.js +5 -0
- package/commands/app-files/app-files_cmds/create.js +98 -0
- package/commands/app-files/app-files_cmds/delete.js +31 -0
- package/commands/app-files/app-files_cmds/download.js +50 -0
- package/commands/app-files/app-files_cmds/list.js +72 -0
- package/commands/config/config_cmds/install.js +92 -0
- package/commands/constants.js +9 -2
- package/commands/tests/testsUtil.js +9 -1
- package/commands/tests/tests_cmds/run-mobile.js +218 -0
- package/commands/tests/tests_cmds/run.js +1 -1
- package/core/util.js +36 -2
- package/env/defaultEnv.js +2 -1
- package/env/dev.js +2 -1
- package/env/env.js +3 -1
- package/env/local.js +2 -1
- package/env/prod.js +2 -1
- package/execution/index.js +13 -1
- package/execution/runAppiumServer.js +133 -0
- package/http/MablHttpAgent.js +1 -4
- package/http/RequestFilteringHttpAgent.js +3 -3
- package/http/axiosProxyConfig.js +10 -7
- package/http/httpUtil.js +10 -6
- package/index.js +3 -2
- package/mablApi/index.js +1 -1
- package/mablscript/MablAction.js +6 -2
- package/mablscript/MablStep.js +41 -5
- package/mablscript/MablStepV2.js +57 -0
- package/mablscript/MablSymbol.js +6 -2
- package/mablscript/actions/AwaitDownloadAction.js +1 -1
- package/mablscript/actions/ConditionAction.js +1 -1
- package/mablscript/actions/CountAction.js +1 -1
- package/mablscript/actions/ExtractAction.js +12 -7
- package/mablscript/actions/FindAction.js +6 -6
- package/mablscript/actions/GenerateEmailAddressAction.js +1 -1
- package/mablscript/actions/GenerateRandomStringAction.js +1 -1
- package/mablscript/actions/GetUrlAction.js +1 -1
- package/mablscript/actions/GetVariableValue.js +1 -1
- package/mablscript/actions/JavaScriptAction.js +25 -14
- package/mablscript/importer.js +99 -16
- package/mablscript/mobile/steps/CreateVariableMobileStep.js +53 -0
- package/mablscript/mobile/steps/EnterTextStep.js +41 -0
- package/mablscript/mobile/steps/NavigateBackStep.js +20 -0
- package/mablscript/mobile/steps/NavigateHomeStep.js +21 -0
- package/mablscript/mobile/steps/ScrollStep.js +37 -0
- package/mablscript/mobile/steps/SetOrientationStep.js +20 -0
- package/mablscript/mobile/steps/TapStep.js +37 -0
- package/mablscript/mobile/steps/actions/MobileFindAction.js +23 -0
- package/mablscript/mobile/steps/stepUtil.js +74 -0
- package/mablscript/mobile/tests/StepTestsUtil.js +20 -0
- package/mablscript/mobile/tests/TestMobileFindDescriptors.js +215 -0
- package/mablscript/mobile/tests/steps/CreateVariableMobileStep.mobiletest.js +298 -0
- package/mablscript/mobile/tests/steps/EnterTextStep.mobiletest.js +79 -0
- package/mablscript/mobile/tests/steps/GeneralHumanization.mobiletest.js +167 -0
- package/mablscript/mobile/tests/steps/NavigateBackStep.mobiletest.js +27 -0
- package/mablscript/mobile/tests/steps/NavigateHomeStep.mobiletest.js +27 -0
- package/mablscript/mobile/tests/steps/ScrollStep.mobiletest.js +121 -0
- package/mablscript/mobile/tests/steps/SetOrientationStep.mobiletest.js +32 -0
- package/mablscript/mobile/tests/steps/TapStep.mobiletest.js +57 -0
- package/mablscript/steps/AccessibilityCheck.js +20 -9
- package/mablscript/steps/AssertStep.js +54 -39
- package/mablscript/steps/AssertStepOld.js +35 -4
- package/mablscript/steps/AwaitTabStep.js +5 -2
- package/mablscript/steps/AwaitUploadsStep.js +6 -4
- package/mablscript/steps/ClearCookiesStep.js +6 -4
- package/mablscript/steps/ClickAndHoldStep.js +10 -3
- package/mablscript/steps/ClickStep.js +10 -3
- package/mablscript/steps/CreateVariableStep.js +25 -8
- package/mablscript/steps/DoubleClickStep.js +10 -3
- package/mablscript/steps/DownloadStep.js +4 -2
- package/mablscript/steps/EchoStep.js +8 -5
- package/mablscript/steps/ElseIfConditionStep.js +14 -4
- package/mablscript/steps/ElseStep.js +8 -5
- package/mablscript/steps/EndStep.js +8 -5
- package/mablscript/steps/EnterAuthCodeStep.js +10 -3
- package/mablscript/steps/EnterTextStep.js +8 -2
- package/mablscript/steps/EvaluateFlowStep.js +5 -2
- package/mablscript/steps/EvaluateJavaScriptStep.js +15 -4
- package/mablscript/steps/HoverStep.js +10 -3
- package/mablscript/steps/IfConditionStep.js +25 -12
- package/mablscript/steps/NavigateStep.js +5 -2
- package/mablscript/steps/OpenEmailStep.js +5 -2
- package/mablscript/steps/ReleaseStep.js +10 -3
- package/mablscript/steps/RemoveCookieStep.js +5 -2
- package/mablscript/steps/RightClickStep.js +10 -3
- package/mablscript/steps/SelectStep.js +9 -3
- package/mablscript/steps/SendHttpRequestStep.js +8 -4
- package/mablscript/steps/SendKeyStep.js +10 -3
- package/mablscript/steps/SetCookieStep.js +5 -2
- package/mablscript/steps/SetFilesStep.js +9 -3
- package/mablscript/steps/SetViewportStep.js +5 -3
- package/mablscript/steps/SwitchContextStep.js +14 -3
- package/mablscript/steps/SyntheticStep.js +1 -1
- package/mablscript/steps/VisitUrlStep.js +5 -2
- package/mablscript/steps/WaitStep.js +8 -4
- package/mablscript/steps/WaitUntilStep.js +6 -3
- package/mablscript/types/GetVariableDescriptor.js +8 -3
- package/mablscript/types/mobile/CreateVariableMobileStepDescriptor.js +9 -0
- package/mablscript/types/mobile/EnterTextStepDescriptor.js +2 -0
- package/mablscript/types/mobile/NavigateBackStepDescriptor.js +2 -0
- package/mablscript/types/mobile/NavigateHomeStepDescriptor.js +2 -0
- package/mablscript/types/mobile/ScrollStepDescriptor.js +2 -0
- package/mablscript/types/mobile/SetOrientationStepDescriptor.js +8 -0
- package/mablscript/types/mobile/StepWithMobileFindDescriptor.js +2 -0
- package/mablscript/types/mobile/TapStepDescriptor.js +8 -0
- package/mablscriptFind/index.js +1 -1
- package/observers/ObserverBase.js +9 -0
- package/observers/mockObserver.js +3 -3
- package/package.json +11 -6
- package/resources/webdriver.js +21 -0
- package/upload/index.js +5 -0
- package/util/FileCache.js +180 -0
- package/util/Lazy.js +90 -0
- package/util/MobileAppFileCache.js +102 -0
- package/util/RichPromise.js +3 -1
- package/util/javaScriptStepMigration.js +1 -0
- package/webdriver/index.js +41 -0
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildObserverBaseOptions = exports.OBSERVER_TIMEOUT_MILLIS = void 0;
|
|
4
|
+
exports.OBSERVER_TIMEOUT_MILLIS = 300000;
|
|
5
|
+
function buildObserverBaseOptions(executionContext) {
|
|
6
|
+
return {
|
|
7
|
+
executionContext,
|
|
8
|
+
executionIndex: executionContext.executionIndexTracker.getExecutionIndex(),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
exports.buildObserverBaseOptions = buildObserverBaseOptions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FakeBrowserObserver = exports.noopPageLifecycleCallback = exports.noopObserveAfterFunction = exports.noopObserveDeferredFunction = void 0;
|
|
4
4
|
const noopObserveDeferredFunction = () => Promise.resolve();
|
|
5
5
|
exports.noopObserveDeferredFunction = noopObserveDeferredFunction;
|
|
6
6
|
const noopObserveAfterFunction = () => Promise.resolve();
|
|
@@ -9,7 +9,7 @@ exports.noopPageLifecycleCallback = {
|
|
|
9
9
|
onPageCreated: () => { },
|
|
10
10
|
onPageDestroyed: () => { },
|
|
11
11
|
};
|
|
12
|
-
class
|
|
12
|
+
class FakeBrowserObserver {
|
|
13
13
|
constructor() {
|
|
14
14
|
this.observationType = 'test';
|
|
15
15
|
this._hitCount = 0;
|
|
@@ -44,4 +44,4 @@ class FakeObserver {
|
|
|
44
44
|
this._sendObservationMessageHitCount += 1;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
exports.
|
|
47
|
+
exports.FakeBrowserObserver = FakeBrowserObserver;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mablhq/mabl-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "The official mabl command line interface tool",
|
|
6
6
|
"main": "index.js",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"node": ">=16.0.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
+
"@aws-crypto/crc32c": "5.1.0",
|
|
23
24
|
"@google-cloud/storage": "6.11.0",
|
|
24
25
|
"@mablhq/newman-reporter-mabl-console": "0.1.0",
|
|
25
26
|
"@playwright/test": "1.38.0",
|
|
@@ -27,19 +28,21 @@
|
|
|
27
28
|
"@types/serve-handler": "6.1.0",
|
|
28
29
|
"@types/tmp": "0.2.0",
|
|
29
30
|
"@types/tough-cookie": "4.0.2",
|
|
30
|
-
"agent-base": "
|
|
31
|
+
"agent-base": "6.0.2",
|
|
31
32
|
"analytics-node": "3.5.0",
|
|
33
|
+
"appium": "2.1.2",
|
|
32
34
|
"async-mutex": "0.3.1",
|
|
33
35
|
"async-retry": "1.3.3",
|
|
34
36
|
"axe-core": "4.3.3",
|
|
35
37
|
"axios": "0.27.2",
|
|
36
38
|
"axios-cookiejar-support": "1.0.1",
|
|
39
|
+
"cachedir": "2.4.0",
|
|
37
40
|
"cd": "0.3.3",
|
|
38
41
|
"chalk": "2.4.2",
|
|
39
42
|
"change-case": "4.1.1",
|
|
40
43
|
"chrome-launcher": "0.14.2",
|
|
41
44
|
"cli-table3": "0.6.1",
|
|
42
|
-
"conf": "
|
|
45
|
+
"conf": "10.2.0",
|
|
43
46
|
"csv-parser": "3.0.0",
|
|
44
47
|
"csv-stringify": "6.2.3",
|
|
45
48
|
"decompress-zip": "0.2.2",
|
|
@@ -55,9 +58,9 @@
|
|
|
55
58
|
"glob": "7.1.6",
|
|
56
59
|
"hpagent": "1.0.0",
|
|
57
60
|
"http-mitm-proxy": "1.0.0",
|
|
58
|
-
"https-proxy-agent": "
|
|
61
|
+
"https-proxy-agent": "5.0.0",
|
|
59
62
|
"humanize-duration": "3.23.0",
|
|
60
|
-
"inquirer": "
|
|
63
|
+
"inquirer": "8.2.5",
|
|
61
64
|
"js-yaml": "4.1.0",
|
|
62
65
|
"jsesc": "3.0.2",
|
|
63
66
|
"jwt-decode": "2.2.0",
|
|
@@ -66,6 +69,7 @@
|
|
|
66
69
|
"markdown-table": "2.0.0",
|
|
67
70
|
"mime-types": "2.1.27",
|
|
68
71
|
"minimist": "1.2.8",
|
|
72
|
+
"mjpeg-consumer": "2.0.0",
|
|
69
73
|
"mochawesome-report-generator": "6.2.0",
|
|
70
74
|
"moment": "2.29.4",
|
|
71
75
|
"murmurhash": "1.0.0",
|
|
@@ -84,7 +88,7 @@
|
|
|
84
88
|
"serve-handler": "6.1.5",
|
|
85
89
|
"set-cookie-parser": "2.5.1",
|
|
86
90
|
"simple-update-notifier": "1.1.0",
|
|
87
|
-
"socks-proxy-agent": "
|
|
91
|
+
"socks-proxy-agent": "6.1.1",
|
|
88
92
|
"stoppable": "1.1.0",
|
|
89
93
|
"strip-ansi": "6.0.0",
|
|
90
94
|
"tldts": "6.0.12",
|
|
@@ -93,6 +97,7 @@
|
|
|
93
97
|
"triple-beam": "1.3.0",
|
|
94
98
|
"uuid": "9.0.0",
|
|
95
99
|
"v8-compile-cache": "2.1.1",
|
|
100
|
+
"webdriverio": "7.30.0",
|
|
96
101
|
"winston": "3.7.2",
|
|
97
102
|
"winston-transport": "4.4.0",
|
|
98
103
|
"y18n": "4.0.1",
|