You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"The programming language used in the project. Supports Java and C#. Example: 'java', 'csharp'",
50
50
),
51
51
52
-
desiredPlatforms: z
53
-
.array(z.nativeEnum(AppSDKSupportedPlatformEnum))
52
+
devices: z
53
+
.array(
54
+
z.union([
55
+
// Android: [android, deviceName, osVersion]
56
+
z.tuple([
57
+
z
58
+
.literal(AppSDKSupportedPlatformEnum.android)
59
+
.describe("Platform identifier: 'android'"),
60
+
z
61
+
.string()
62
+
.describe(
63
+
"Device name, e.g. 'Samsung Galaxy S24', 'Google Pixel 8'",
64
+
),
65
+
z.string().describe("Android version, e.g. '14', '16', 'latest'"),
66
+
]),
67
+
// iOS: [ios, deviceName, osVersion]
68
+
z.tuple([
69
+
z
70
+
.literal(AppSDKSupportedPlatformEnum.ios)
71
+
.describe("Platform identifier: 'ios'"),
72
+
z.string().describe("Device name, e.g. 'iPhone 15', 'iPhone 14 Pro'"),
73
+
z.string().describe("iOS version, e.g. '17', '16', 'latest'"),
74
+
]),
75
+
]),
76
+
)
77
+
.max(3)
78
+
.default([])
54
79
.describe(
55
-
"The mobile platforms the user wants to test on. Always ask this to the user, do not try to infer this. Example: ['android', 'ios']",
80
+
"Tuples describing target mobile devices. Add device only when user asks explicitly for it. Defaults to [] . Example: [['android', 'Samsung Galaxy S24', '14'], ['ios', 'iPhone 15', '17']]",
exportconstRUN_APP_AUTOMATE_DESCRIPTION=`Execute pre-built native mobile test suites (Espresso for Android, XCUITest for iOS) by direct upload to BrowserStack. ONLY for compiled .apk/.ipa test files. This is NOT for SDK integration or Appium tests. For Appium-based testing with SDK setup, use 'setupBrowserStackAppAutomateTests' instead.`;
"If in other directory, provide existing test file path",
30
31
),
31
32
devices: z
32
-
.array(z.string())
33
+
.array(
34
+
z.union([
35
+
// Android: [android, deviceName, osVersion]
36
+
z.tuple([
37
+
z
38
+
.literal(AppSDKSupportedPlatformEnum.android)
39
+
.describe("Platform identifier: 'android'"),
40
+
z
41
+
.string()
42
+
.describe(
43
+
"Device name, e.g. 'Samsung Galaxy S24', 'Google Pixel 8'",
44
+
),
45
+
z.string().describe("Android version, e.g. '14', '16', 'latest'"),
46
+
]),
47
+
// iOS: [ios, deviceName, osVersion]
48
+
z.tuple([
49
+
z
50
+
.literal(AppSDKSupportedPlatformEnum.ios)
51
+
.describe("Platform identifier: 'ios'"),
52
+
z.string().describe("Device name, e.g. 'iPhone 15', 'iPhone 14 Pro'"),
53
+
z.string().describe("iOS version, e.g. '17', '16', 'latest'"),
54
+
]),
55
+
]),
56
+
)
57
+
.max(3)
58
+
.default([])
33
59
.describe(
34
-
"List of devices to run the test on, e.g., ['Samsung Galaxy S20-10.0', 'iPhone 12 Pro-16.0'].",
60
+
"Tuples describing target mobile devices. Add device only when user asks explicitly for it. Defaults to [] . Example: [['android', 'Samsung Galaxy S24', '14'], ['ios', 'iPhone 15', '17']]",
0 commit comments