appium-xcuitest-driver 7.14.0 → 7.15.1
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/CHANGELOG.md +14 -0
- package/build/lib/app-infos-cache.d.ts +46 -0
- package/build/lib/app-infos-cache.d.ts.map +1 -0
- package/build/lib/app-infos-cache.js +156 -0
- package/build/lib/app-infos-cache.js.map +1 -0
- package/build/lib/app-utils.d.ts +32 -52
- package/build/lib/app-utils.d.ts.map +1 -1
- package/build/lib/app-utils.js +327 -219
- package/build/lib/app-utils.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +5 -4
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +14 -7
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/app-strings.d.ts +5 -2
- package/build/lib/commands/app-strings.d.ts.map +1 -1
- package/build/lib/commands/app-strings.js +6 -3
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/file-movement.js +1 -1
- package/build/lib/commands/file-movement.js.map +1 -1
- package/build/lib/commands/types.d.ts +1 -0
- package/build/lib/commands/types.d.ts.map +1 -1
- package/build/lib/commands/xctest-record-screen.d.ts +1 -1
- package/build/lib/desired-caps.d.ts +2 -0
- package/build/lib/desired-caps.d.ts.map +1 -1
- package/build/lib/desired-caps.js +1 -0
- package/build/lib/desired-caps.js.map +1 -1
- package/build/lib/driver.d.ts +30 -27
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +12 -12
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts +1 -1
- package/build/lib/execute-method-map.js +1 -1
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/ios-fs-helpers.d.ts +30 -15
- package/build/lib/ios-fs-helpers.d.ts.map +1 -1
- package/build/lib/ios-fs-helpers.js +54 -21
- package/build/lib/ios-fs-helpers.js.map +1 -1
- package/build/lib/real-device-management.d.ts +0 -5
- package/build/lib/real-device-management.d.ts.map +1 -1
- package/build/lib/real-device-management.js +8 -5
- package/build/lib/real-device-management.js.map +1 -1
- package/build/lib/real-device.d.ts +13 -9
- package/build/lib/real-device.d.ts.map +1 -1
- package/build/lib/real-device.js +49 -75
- package/build/lib/real-device.js.map +1 -1
- package/lib/app-infos-cache.js +159 -0
- package/lib/app-utils.js +357 -239
- package/lib/commands/app-management.js +20 -9
- package/lib/commands/app-strings.js +6 -3
- package/lib/commands/file-movement.js +1 -1
- package/lib/commands/types.ts +1 -0
- package/lib/desired-caps.js +1 -0
- package/lib/driver.js +12 -15
- package/lib/execute-method-map.ts +1 -1
- package/lib/ios-fs-helpers.js +57 -23
- package/lib/real-device-management.js +7 -5
- package/lib/real-device.js +62 -88
- package/npm-shrinkwrap.json +13 -5
- package/package.json +1 -1
package/build/lib/driver.d.ts
CHANGED
|
@@ -260,7 +260,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
260
260
|
};
|
|
261
261
|
readonly safariGlobalPreferences: {
|
|
262
262
|
readonly isObject: true;
|
|
263
|
-
};
|
|
263
|
+
}; /** @type {import('@appium/types').RouteMatcher[]} */
|
|
264
264
|
readonly safariLogAllCommunication: {
|
|
265
265
|
readonly isBoolean: true;
|
|
266
266
|
};
|
|
@@ -328,13 +328,15 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
328
328
|
readonly resultBundlePath: {
|
|
329
329
|
readonly isString: true;
|
|
330
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* @type {boolean|undefined}
|
|
333
|
+
*/
|
|
331
334
|
readonly resultBundleVersion: {
|
|
332
335
|
readonly isNumber: true;
|
|
333
336
|
};
|
|
334
337
|
readonly safariIgnoreWebHostnames: {
|
|
335
338
|
readonly isString: true;
|
|
336
|
-
};
|
|
337
|
-
/** @type {string|null} */
|
|
339
|
+
}; /** @type {string|null} */
|
|
338
340
|
readonly disableAutomaticScreenshots: {
|
|
339
341
|
readonly isBoolean: true;
|
|
340
342
|
};
|
|
@@ -348,10 +350,10 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
348
350
|
readonly isBoolean: true;
|
|
349
351
|
};
|
|
350
352
|
readonly appInstallStrategy: {
|
|
353
|
+
readonly deprecated: true;
|
|
351
354
|
readonly isString: true;
|
|
352
355
|
readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
|
|
353
356
|
};
|
|
354
|
-
/** @type {number|undefined} */
|
|
355
357
|
readonly enforceAppInstall: {
|
|
356
358
|
readonly isBoolean: true;
|
|
357
359
|
};
|
|
@@ -629,7 +631,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
629
631
|
};
|
|
630
632
|
readonly safariGlobalPreferences: {
|
|
631
633
|
readonly isObject: true;
|
|
632
|
-
};
|
|
634
|
+
}; /** @type {import('@appium/types').RouteMatcher[]} */
|
|
633
635
|
readonly safariLogAllCommunication: {
|
|
634
636
|
readonly isBoolean: true;
|
|
635
637
|
};
|
|
@@ -697,13 +699,15 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
697
699
|
readonly resultBundlePath: {
|
|
698
700
|
readonly isString: true;
|
|
699
701
|
};
|
|
702
|
+
/**
|
|
703
|
+
* @type {boolean|undefined}
|
|
704
|
+
*/
|
|
700
705
|
readonly resultBundleVersion: {
|
|
701
706
|
readonly isNumber: true;
|
|
702
707
|
};
|
|
703
708
|
readonly safariIgnoreWebHostnames: {
|
|
704
709
|
readonly isString: true;
|
|
705
|
-
};
|
|
706
|
-
/** @type {string|null} */
|
|
710
|
+
}; /** @type {string|null} */
|
|
707
711
|
readonly disableAutomaticScreenshots: {
|
|
708
712
|
readonly isBoolean: true;
|
|
709
713
|
};
|
|
@@ -717,10 +721,10 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
717
721
|
readonly isBoolean: true;
|
|
718
722
|
};
|
|
719
723
|
readonly appInstallStrategy: {
|
|
724
|
+
readonly deprecated: true;
|
|
720
725
|
readonly isString: true;
|
|
721
726
|
readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
|
|
722
727
|
};
|
|
723
|
-
/** @type {number|undefined} */
|
|
724
728
|
readonly enforceAppInstall: {
|
|
725
729
|
readonly isBoolean: true;
|
|
726
730
|
};
|
|
@@ -1062,7 +1066,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1062
1066
|
readonly command: "mobileInstallApp";
|
|
1063
1067
|
readonly params: {
|
|
1064
1068
|
readonly required: readonly ["app"];
|
|
1065
|
-
readonly optional: readonly ["
|
|
1069
|
+
readonly optional: readonly ["timeoutMs", "checkVersion"];
|
|
1066
1070
|
};
|
|
1067
1071
|
};
|
|
1068
1072
|
readonly 'mobile: isAppInstalled': {
|
|
@@ -1127,7 +1131,6 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1127
1131
|
readonly command: "getViewportRect";
|
|
1128
1132
|
};
|
|
1129
1133
|
readonly 'mobile: startPerfRecord': {
|
|
1130
|
-
/** @type {string|null|undefined} */
|
|
1131
1134
|
readonly command: "mobileStartPerfRecord";
|
|
1132
1135
|
readonly params: {
|
|
1133
1136
|
readonly optional: readonly ["timeout", "profileName", "pid"];
|
|
@@ -1143,7 +1146,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1143
1146
|
readonly command: "mobileInstallCertificate";
|
|
1144
1147
|
readonly params: {
|
|
1145
1148
|
readonly required: readonly ["content"];
|
|
1146
|
-
readonly optional: readonly ["commonName", "isRoot"];
|
|
1149
|
+
readonly optional: readonly ["commonName", "isRoot"]; /** @type {((logRecord: {message: string}) => void)|null} */
|
|
1147
1150
|
};
|
|
1148
1151
|
};
|
|
1149
1152
|
readonly 'mobile: removeCertificate': {
|
|
@@ -1154,16 +1157,14 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1154
1157
|
};
|
|
1155
1158
|
readonly 'mobile: listCertificates': {
|
|
1156
1159
|
readonly command: "mobileListCertificates";
|
|
1157
|
-
};
|
|
1158
|
-
* @type {any|null}
|
|
1159
|
-
* @privateRemarks needs types
|
|
1160
|
-
**/
|
|
1160
|
+
};
|
|
1161
1161
|
readonly 'mobile: startLogsBroadcast': {
|
|
1162
1162
|
readonly command: "mobileStartLogsBroadcast";
|
|
1163
1163
|
};
|
|
1164
1164
|
readonly 'mobile: stopLogsBroadcast': {
|
|
1165
1165
|
readonly command: "mobileStopLogsBroadcast";
|
|
1166
1166
|
};
|
|
1167
|
+
/** @type {boolean|undefined} */
|
|
1167
1168
|
readonly 'mobile: batteryInfo': {
|
|
1168
1169
|
readonly command: "mobileGetBatteryInfo";
|
|
1169
1170
|
};
|
|
@@ -1174,6 +1175,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1174
1175
|
};
|
|
1175
1176
|
};
|
|
1176
1177
|
readonly 'mobile: deviceInfo': {
|
|
1178
|
+
/** @type {import('./commands/record-audio').AudioRecorder|null} */
|
|
1177
1179
|
readonly command: "mobileGetDeviceInfo";
|
|
1178
1180
|
};
|
|
1179
1181
|
readonly 'mobile: getDeviceTime': {
|
|
@@ -1184,16 +1186,13 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1184
1186
|
};
|
|
1185
1187
|
readonly 'mobile: activeAppInfo': {
|
|
1186
1188
|
readonly command: "mobileGetActiveAppInfo";
|
|
1187
|
-
};
|
|
1189
|
+
}; /** @type {Simulator|RealDevice} */
|
|
1188
1190
|
readonly 'mobile: deviceScreenInfo': {
|
|
1189
1191
|
readonly command: "getScreenInfo";
|
|
1190
1192
|
};
|
|
1191
1193
|
readonly 'mobile: pressButton': {
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
* @param {XCUITestDriverOpts} opts
|
|
1195
|
-
* @param {boolean} shouldValidateCaps
|
|
1196
|
-
*/
|
|
1194
|
+
/** @type {WebDriverAgent} */
|
|
1195
|
+
readonly command: "mobilePressButton";
|
|
1197
1196
|
readonly params: {
|
|
1198
1197
|
readonly required: readonly ["name"];
|
|
1199
1198
|
readonly optional: readonly ["durationSeconds"];
|
|
@@ -1517,6 +1516,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1517
1516
|
pageSourceExcludedAttributes: string;
|
|
1518
1517
|
}>;
|
|
1519
1518
|
logs: {};
|
|
1519
|
+
appInfosCache: AppInfosCache;
|
|
1520
1520
|
onSettingsUpdate(key: any, value: any): Promise<unknown>;
|
|
1521
1521
|
resetIos(): void;
|
|
1522
1522
|
jwpProxyActive: boolean | undefined;
|
|
@@ -1797,7 +1797,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1797
1797
|
};
|
|
1798
1798
|
readonly safariGlobalPreferences: {
|
|
1799
1799
|
readonly isObject: true;
|
|
1800
|
-
};
|
|
1800
|
+
}; /** @type {import('@appium/types').RouteMatcher[]} */
|
|
1801
1801
|
readonly safariLogAllCommunication: {
|
|
1802
1802
|
readonly isBoolean: true;
|
|
1803
1803
|
};
|
|
@@ -1865,13 +1865,15 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1865
1865
|
readonly resultBundlePath: {
|
|
1866
1866
|
readonly isString: true;
|
|
1867
1867
|
};
|
|
1868
|
+
/**
|
|
1869
|
+
* @type {boolean|undefined}
|
|
1870
|
+
*/
|
|
1868
1871
|
readonly resultBundleVersion: {
|
|
1869
1872
|
readonly isNumber: true;
|
|
1870
1873
|
};
|
|
1871
1874
|
readonly safariIgnoreWebHostnames: {
|
|
1872
1875
|
readonly isString: true;
|
|
1873
|
-
};
|
|
1874
|
-
/** @type {string|null} */
|
|
1876
|
+
}; /** @type {string|null} */
|
|
1875
1877
|
readonly disableAutomaticScreenshots: {
|
|
1876
1878
|
readonly isBoolean: true;
|
|
1877
1879
|
};
|
|
@@ -1885,10 +1887,10 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
1885
1887
|
readonly isBoolean: true;
|
|
1886
1888
|
};
|
|
1887
1889
|
readonly appInstallStrategy: {
|
|
1890
|
+
readonly deprecated: true;
|
|
1888
1891
|
readonly isString: true;
|
|
1889
1892
|
readonly inclusionCaseInsensitive: readonly ["serial", "parallel", "ios-deploy"];
|
|
1890
1893
|
};
|
|
1891
|
-
/** @type {number|undefined} */
|
|
1892
1894
|
readonly enforceAppInstall: {
|
|
1893
1895
|
readonly isBoolean: true;
|
|
1894
1896
|
};
|
|
@@ -2003,7 +2005,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
2003
2005
|
}) => Promise<void>;
|
|
2004
2006
|
getAlertButtons: (this: XCUITestDriver) => Promise<string[]>;
|
|
2005
2007
|
mobileHandleAlert: (this: XCUITestDriver, action: import("./commands/alert").AlertAction, buttonLabel?: string | undefined) => Promise<void | string[]>;
|
|
2006
|
-
mobileInstallApp: (this: XCUITestDriver, app: string, timeoutMs?: number | undefined,
|
|
2008
|
+
mobileInstallApp: (this: XCUITestDriver, app: string, timeoutMs?: number | undefined, checkVersion?: boolean | undefined) => Promise<void>;
|
|
2007
2009
|
mobileIsAppInstalled: (this: XCUITestDriver, bundleId: string) => Promise<boolean>;
|
|
2008
2010
|
mobileRemoveApp: (this: XCUITestDriver, bundleId: string) => Promise<boolean>;
|
|
2009
2011
|
mobileLaunchApp: (this: XCUITestDriver, bundleId: string, args?: string | string[] | undefined, environment?: any) => Promise<void>;
|
|
@@ -3593,7 +3595,7 @@ export class XCUITestDriver extends BaseDriver<{
|
|
|
3593
3595
|
mobileListXCTestsInTestBundle: (this: XCUITestDriver, bundle: string) => Promise<string[]>;
|
|
3594
3596
|
mobileStartXctestScreenRecording: (this: XCUITestDriver, fps?: number | undefined, codec?: number | undefined) => Promise<import("./commands/xctest-record-screen").XcTestScreenRecordingInfo>;
|
|
3595
3597
|
mobileGetXctestScreenRecordingInfo: () => Promise<import("./commands/xctest-record-screen").XcTestScreenRecordingInfo | null>;
|
|
3596
|
-
mobileStopXctestScreenRecording: (this: XCUITestDriver, remotePath?: string | undefined, user?: string | undefined, pass?: string | undefined, headers?: import("@appium/types").HTTPHeaders | undefined, fileFieldName?: string | undefined, formFields?: [string, any][] | Record<string, any> | undefined, method?: "
|
|
3598
|
+
mobileStopXctestScreenRecording: (this: XCUITestDriver, remotePath?: string | undefined, user?: string | undefined, pass?: string | undefined, headers?: import("@appium/types").HTTPHeaders | undefined, fileFieldName?: string | undefined, formFields?: [string, any][] | Record<string, any> | undefined, method?: "POST" | "PUT" | "PATCH" | undefined) => Promise<import("./commands/xctest-record-screen").XcTestScreenRecording>;
|
|
3597
3599
|
}
|
|
3598
3600
|
export default XCUITestDriver;
|
|
3599
3601
|
export type ExternalDriver<C extends import("@appium/types").Constraints, Ctx = string> = import('@appium/types').ExternalDriver<C, Ctx>;
|
|
@@ -3618,6 +3620,7 @@ import { LRUCache } from 'lru-cache';
|
|
|
3618
3620
|
import { RealDevice } from './real-device';
|
|
3619
3621
|
import { WebDriverAgent } from 'appium-webdriveragent';
|
|
3620
3622
|
import { DeviceSettings } from 'appium/driver';
|
|
3623
|
+
import { AppInfosCache } from './app-infos-cache';
|
|
3621
3624
|
import { mjpeg } from 'appium/support';
|
|
3622
3625
|
import { desiredCapConstraints } from './desired-caps';
|
|
3623
3626
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.js"],"names":[],"mappings":"AA6KA;;;;;GAKG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA5B0B,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAC;0BAC7D,OAAO,kBAAkB,EAAE,WAAW;2BACtC,OAAO,cAAc,EAAE,YAAY;wBACnC,OAAO,sBAAsB,EAAE,SAAS;2BA9nEJ,eAAe;yBAMzC,WAAW;2BA0B3B,eAAe;+BAjCO,uBAAuB;+BACH,eAAe;8BA2DlC,mBAAmB;sBA1DX,gBAAgB;sCAiBlB,gBAAgB"}
|
package/build/lib/driver.js
CHANGED
|
@@ -28,6 +28,7 @@ const real_device_management_1 = require("./real-device-management");
|
|
|
28
28
|
const real_device_1 = require("./real-device");
|
|
29
29
|
const simulator_management_1 = require("./simulator-management");
|
|
30
30
|
const utils_1 = require("./utils");
|
|
31
|
+
const app_infos_cache_1 = require("./app-infos-cache");
|
|
31
32
|
const SHUTDOWN_OTHER_FEAT_NAME = 'shutdown_other_sims';
|
|
32
33
|
const CUSTOMIZE_RESULT_BUNDLE_PATH = 'customize_result_bundle_path';
|
|
33
34
|
const defaultServerCaps = {
|
|
@@ -541,6 +542,7 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
541
542
|
}
|
|
542
543
|
this.lifecycleData = {};
|
|
543
544
|
this._audioRecorder = null;
|
|
545
|
+
this.appInfosCache = new app_infos_cache_1.AppInfosCache(this.log);
|
|
544
546
|
}
|
|
545
547
|
async onSettingsUpdate(key, value) {
|
|
546
548
|
// skip sending the update request to the WDA nor saving it in opts
|
|
@@ -743,7 +745,7 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
743
745
|
if (this.opts.app) {
|
|
744
746
|
await (0, utils_1.checkAppPresent)(this.opts.app);
|
|
745
747
|
if (!this.opts.bundleId) {
|
|
746
|
-
this.opts.bundleId = await
|
|
748
|
+
this.opts.bundleId = await this.appInfosCache.extractBundleId(this.opts.app);
|
|
747
749
|
}
|
|
748
750
|
}
|
|
749
751
|
await this.runReset();
|
|
@@ -1542,7 +1544,7 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1542
1544
|
skipUninstall: !wasAppInstalled,
|
|
1543
1545
|
};
|
|
1544
1546
|
}
|
|
1545
|
-
const candidateBundleVersion = await
|
|
1547
|
+
const candidateBundleVersion = await this.appInfosCache.extractBundleVersion(app);
|
|
1546
1548
|
this.log.debug(`CFBundleVersion from Info.plist: ${candidateBundleVersion}`);
|
|
1547
1549
|
if (!candidateBundleVersion) {
|
|
1548
1550
|
return {
|
|
@@ -1592,17 +1594,13 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1592
1594
|
if (this.isSafari() || !this.opts.app) {
|
|
1593
1595
|
return;
|
|
1594
1596
|
}
|
|
1595
|
-
await
|
|
1596
|
-
isSimulator: this.isSimulator(),
|
|
1597
|
-
isTvOS: (0, utils_1.isTvOs)(this.opts.platformName),
|
|
1598
|
-
});
|
|
1597
|
+
await app_utils_1.verifyApplicationPlatform.bind(this)();
|
|
1599
1598
|
const { install, skipUninstall } = await this.checkAutInstallationState();
|
|
1600
1599
|
if (install) {
|
|
1601
1600
|
if (this.isRealDevice()) {
|
|
1602
1601
|
await real_device_management_1.installToRealDevice.bind(this)(this.opts.app, this.opts.bundleId, {
|
|
1603
1602
|
skipUninstall,
|
|
1604
1603
|
timeout: this.opts.appPushTimeout,
|
|
1605
|
-
strategy: this.opts.appInstallStrategy,
|
|
1606
1604
|
});
|
|
1607
1605
|
}
|
|
1608
1606
|
else {
|
|
@@ -1638,15 +1636,18 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1638
1636
|
return;
|
|
1639
1637
|
}
|
|
1640
1638
|
/** @type {string[]} */
|
|
1641
|
-
const appPaths = await bluebird_1.default.all(appsList.map((app) => this.helpers.configureApp(app,
|
|
1639
|
+
const appPaths = await bluebird_1.default.all(appsList.map((app) => this.helpers.configureApp(app, {
|
|
1640
|
+
onPostProcess: app_utils_1.onPostConfigureApp.bind(this),
|
|
1641
|
+
onDownload: app_utils_1.onDownloadApp.bind(this),
|
|
1642
|
+
supportedExtensions: app_utils_1.SUPPORTED_EXTENSIONS,
|
|
1643
|
+
})));
|
|
1642
1644
|
/** @type {string[]} */
|
|
1643
|
-
const appIds = await bluebird_1.default.all(appPaths.map((appPath) =>
|
|
1645
|
+
const appIds = await bluebird_1.default.all(appPaths.map((appPath) => this.appInfosCache.extractBundleId(appPath)));
|
|
1644
1646
|
for (const [appId, appPath] of lodash_1.default.zip(appIds, appPaths)) {
|
|
1645
1647
|
if (this.isRealDevice()) {
|
|
1646
1648
|
await real_device_management_1.installToRealDevice.bind(this)(appPath, appId, {
|
|
1647
1649
|
skipUninstall: true, // to make the behavior as same as UIA2
|
|
1648
1650
|
timeout: this.opts.appPushTimeout,
|
|
1649
|
-
strategy: this.opts.appInstallStrategy,
|
|
1650
1651
|
});
|
|
1651
1652
|
}
|
|
1652
1653
|
else {
|
|
@@ -1703,7 +1704,7 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1703
1704
|
if (!this.opts.prebuiltWDAPath) {
|
|
1704
1705
|
return;
|
|
1705
1706
|
}
|
|
1706
|
-
const candidateBundleId = await
|
|
1707
|
+
const candidateBundleId = await this.appInfosCache.extractBundleId(this.opts.prebuiltWDAPath);
|
|
1707
1708
|
this.wda.updatedWDABundleId = candidateBundleId.replace('.xctrunner', '');
|
|
1708
1709
|
this.log.info(`Installing prebuilt WDA at '${this.opts.prebuiltWDAPath}'. ` +
|
|
1709
1710
|
`Bundle identifier: ${candidateBundleId}.`);
|
|
@@ -1713,7 +1714,6 @@ class XCUITestDriver extends driver_1.BaseDriver {
|
|
|
1713
1714
|
await real_device_management_1.installToRealDevice.bind(this)(this.opts.prebuiltWDAPath, candidateBundleId, {
|
|
1714
1715
|
skipUninstall: true,
|
|
1715
1716
|
timeout: this.opts.appPushTimeout,
|
|
1716
|
-
strategy: this.opts.appInstallStrategy,
|
|
1717
1717
|
});
|
|
1718
1718
|
}
|
|
1719
1719
|
else {
|