appium-xcuitest-driver 10.8.2 → 10.8.4
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 +12 -0
- package/build/lib/commands/app-management.js +1 -1
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/file-movement.d.ts.map +1 -1
- package/build/lib/commands/file-movement.js +4 -4
- package/build/lib/commands/file-movement.js.map +1 -1
- package/build/lib/commands/memory.js +1 -1
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +13 -4
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/xctest-record-screen.js +1 -1
- package/build/lib/commands/xctest-record-screen.js.map +1 -1
- package/build/lib/desired-caps.d.ts +9 -7
- 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/device/device-connections-factory.d.ts +18 -0
- package/build/lib/device/device-connections-factory.d.ts.map +1 -0
- package/build/lib/{device-connections-factory.js → device/device-connections-factory.js} +57 -41
- package/build/lib/device/device-connections-factory.js.map +1 -0
- package/build/lib/device/real-device-management.d.ts +146 -0
- package/build/lib/device/real-device-management.d.ts.map +1 -0
- package/build/lib/device/real-device-management.js +727 -0
- package/build/lib/device/real-device-management.js.map +1 -0
- package/build/lib/device/simulator-management.d.ts +65 -0
- package/build/lib/device/simulator-management.d.ts.map +1 -0
- package/build/lib/{simulator-management.js → device/simulator-management.js} +23 -42
- package/build/lib/device/simulator-management.js.map +1 -0
- package/build/lib/driver.d.ts +4 -1
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +5 -6
- package/build/lib/driver.js.map +1 -1
- package/lib/commands/app-management.js +1 -1
- package/lib/commands/file-movement.js +8 -4
- package/lib/commands/memory.js +1 -1
- package/lib/commands/performance.js +12 -1
- package/lib/commands/xctest-record-screen.js +1 -1
- package/lib/desired-caps.js +1 -0
- package/lib/{device-connections-factory.js → device/device-connections-factory.ts} +96 -60
- package/lib/device/real-device-management.ts +818 -0
- package/lib/{simulator-management.js → device/simulator-management.ts} +68 -61
- package/lib/driver.js +3 -5
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/build/lib/device-connections-factory.d.ts +0 -13
- package/build/lib/device-connections-factory.d.ts.map +0 -1
- package/build/lib/device-connections-factory.js.map +0 -1
- package/build/lib/ios-fs-helpers.d.ts +0 -75
- package/build/lib/ios-fs-helpers.d.ts.map +0 -1
- package/build/lib/ios-fs-helpers.js +0 -370
- package/build/lib/ios-fs-helpers.js.map +0 -1
- package/build/lib/real-device-management.d.ts +0 -53
- package/build/lib/real-device-management.d.ts.map +0 -1
- package/build/lib/real-device-management.js +0 -128
- package/build/lib/real-device-management.js.map +0 -1
- package/build/lib/real-device.d.ts +0 -112
- package/build/lib/real-device.d.ts.map +0 -1
- package/build/lib/real-device.js +0 -352
- package/build/lib/real-device.js.map +0 -1
- package/build/lib/simulator-management.d.ts +0 -96
- package/build/lib/simulator-management.d.ts.map +0 -1
- package/build/lib/simulator-management.js.map +0 -1
- package/build/lib/xcrun.d.ts +0 -3
- package/build/lib/xcrun.d.ts.map +0 -1
- package/build/lib/xcrun.js +0 -17
- package/build/lib/xcrun.js.map +0 -1
- package/lib/ios-fs-helpers.js +0 -355
- package/lib/real-device-management.js +0 -133
- package/lib/real-device.js +0 -347
- package/lib/xcrun.js +0 -16
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @returns {Promise<string[]>}
|
|
3
|
-
*/
|
|
4
|
-
export function getConnectedDevices(): Promise<string[]>;
|
|
5
|
-
/**
|
|
6
|
-
* @typedef {Object} InstallOptions
|
|
7
|
-
* @param {number} [timeoutMs=240000] Application installation timeout in milliseconds
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @typedef {Object} InstallOrUpgradeOptions
|
|
11
|
-
* @property {number} timeout Install/upgrade timeout in milliseconds
|
|
12
|
-
* @property {boolean} isUpgrade Whether it is an app upgrade or a new install
|
|
13
|
-
*/
|
|
14
|
-
export class RealDevice {
|
|
15
|
-
/**
|
|
16
|
-
* @param {string} udid
|
|
17
|
-
* @param {import('@appium/types').AppiumLogger} [logger]
|
|
18
|
-
*/
|
|
19
|
-
constructor(udid: string, logger?: import("@appium/types").AppiumLogger);
|
|
20
|
-
udid: string;
|
|
21
|
-
_log: import("@appium/types").AppiumLogger;
|
|
22
|
-
devicectl: Devicectl;
|
|
23
|
-
/**
|
|
24
|
-
* @returns {import('@appium/types').AppiumLogger}
|
|
25
|
-
*/
|
|
26
|
-
get log(): import("@appium/types").AppiumLogger;
|
|
27
|
-
/**
|
|
28
|
-
* @param {string} bundleId
|
|
29
|
-
*/
|
|
30
|
-
remove(bundleId: string): Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* @param {string} bundleId
|
|
33
|
-
*/
|
|
34
|
-
removeApp(bundleId: string): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param {string} appPath
|
|
38
|
-
* @param {string} bundleId
|
|
39
|
-
* @param {InstallOptions} [opts={}]
|
|
40
|
-
*/
|
|
41
|
-
install(appPath: string, bundleId: string, opts?: InstallOptions): Promise<void>;
|
|
42
|
-
/**
|
|
43
|
-
* @param {string} bundlePathOnPhone
|
|
44
|
-
* @param {InstallOrUpgradeOptions} opts
|
|
45
|
-
*/
|
|
46
|
-
installOrUpgradeApplication(bundlePathOnPhone: string, { isUpgrade, timeout }: InstallOrUpgradeOptions): Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* Alias for {@linkcode install}
|
|
49
|
-
* @param {string} appPath
|
|
50
|
-
* @param {string} bundleId
|
|
51
|
-
* @param {InstallOptions} [opts={}]
|
|
52
|
-
*/
|
|
53
|
-
installApp(appPath: string, bundleId: string, opts?: InstallOptions): Promise<void>;
|
|
54
|
-
/**
|
|
55
|
-
* Return an application object if test app has 'bundleid'.
|
|
56
|
-
* The target bundleid can be User and System apps.
|
|
57
|
-
*
|
|
58
|
-
* @param {string} bundleId The bundleId to ensure it is installed
|
|
59
|
-
* @return {Promise<boolean>} Returns True if the app is installed
|
|
60
|
-
* on the device under test.
|
|
61
|
-
*/
|
|
62
|
-
isAppInstalled(bundleId: string): Promise<boolean>;
|
|
63
|
-
/**
|
|
64
|
-
* Fetches various attributes, like bundle id, version, entitlements etc. of
|
|
65
|
-
* an installed application.
|
|
66
|
-
*
|
|
67
|
-
* @param {string} bundleId the bundle identifier of an app to check
|
|
68
|
-
* @param {string|string[]|undefined} returnAttributes If provided then
|
|
69
|
-
* only fetches the requested attributes of the app into the resulting object.
|
|
70
|
-
* Some apps may have too many attributes, so it makes sense to limit these
|
|
71
|
-
* by default if you don't need all of them.
|
|
72
|
-
* @returns {Promise<Object|undefined>} Either app info as an object or undefined
|
|
73
|
-
* if the app is not found.
|
|
74
|
-
*/
|
|
75
|
-
fetchAppInfo(bundleId: string, returnAttributes?: string | string[] | undefined): Promise<any | undefined>;
|
|
76
|
-
/**
|
|
77
|
-
* @param {string} bundleId
|
|
78
|
-
* @param {string} platformVersion
|
|
79
|
-
* @returns {Promise<boolean>}
|
|
80
|
-
*/
|
|
81
|
-
terminateApp(bundleId: string, platformVersion: string): Promise<boolean>;
|
|
82
|
-
/**
|
|
83
|
-
* @param {string} bundleName The name of CFBundleName in Info.plist
|
|
84
|
-
*
|
|
85
|
-
* @returns {Promise<string[]>} A list of User level apps' bundle ids which has
|
|
86
|
-
* 'CFBundleName' attribute as 'bundleName'.
|
|
87
|
-
*/
|
|
88
|
-
getUserInstalledBundleIdsByBundleName(bundleName: string): Promise<string[]>;
|
|
89
|
-
/**
|
|
90
|
-
* @returns {Promise<string>}
|
|
91
|
-
*/
|
|
92
|
-
getPlatformVersion(): Promise<string>;
|
|
93
|
-
/**
|
|
94
|
-
* @param {import('./driver').XCUITestDriverOpts} opts
|
|
95
|
-
* @returns {Promise<void>}
|
|
96
|
-
*/
|
|
97
|
-
reset({ bundleId, fullReset }: import("./driver").XCUITestDriverOpts): Promise<void>;
|
|
98
|
-
}
|
|
99
|
-
export default RealDevice;
|
|
100
|
-
export type InstallOptions = any;
|
|
101
|
-
export type InstallOrUpgradeOptions = {
|
|
102
|
-
/**
|
|
103
|
-
* Install/upgrade timeout in milliseconds
|
|
104
|
-
*/
|
|
105
|
-
timeout: number;
|
|
106
|
-
/**
|
|
107
|
-
* Whether it is an app upgrade or a new install
|
|
108
|
-
*/
|
|
109
|
-
isUpgrade: boolean;
|
|
110
|
-
};
|
|
111
|
-
import { Devicectl } from 'node-devicectl';
|
|
112
|
-
//# sourceMappingURL=real-device.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"real-device.d.ts","sourceRoot":"","sources":["../../lib/real-device.js"],"names":[],"mappings":"AAcA;;GAEG;AACH,uCAFa,OAAO,CAAC,MAAM,EAAE,CAAC,CAS7B;AAED;;;GAGG;AAEH;;;;GAIG;AAEH;IACE;;;OAGG;IACH,kBAHW,MAAM,WACN,OAAO,eAAe,EAAE,YAAY,EAM9C;IAHC,aAAgB;IAChB,2CAAmC;IACnC,qBAAyC;IAG3C;;OAEG;IACH,WAFa,OAAO,eAAe,EAAE,YAAY,CAIhD;IAED;;OAEG;IACH,iBAFW,MAAM,iBAShB;IAED;;OAEG;IACH,oBAFW,MAAM,iBAIhB;IAED;;;;;OAKG;IACH,iBAJW,MAAM,YACN,MAAM,SACN,cAAc,iBA4CxB;IAED;;;OAGG;IACH,+CAHW,MAAM,0BACN,uBAAuB,iBAsCjC;IAED;;;;;OAKG;IACH,oBAJW,MAAM,YACN,MAAM,SACN,cAAc,iBAIxB;IAED;;;;;;;OAOG;IACH,yBAJW,MAAM,GACL,OAAO,CAAC,OAAO,CAAC,CAK3B;IAED;;;;;;;;;;;OAWG;IACH,uBARW,MAAM,qBACN,MAAM,GAAC,MAAM,EAAE,GAAC,SAAS,GAIvB,OAAO,CAAC,MAAO,SAAS,CAAC,CAgBrC;IAED;;;;OAIG;IACH,uBAJW,MAAM,mBACN,MAAM,GACJ,OAAO,CAAC,OAAO,CAAC,CA+D5B;IAED;;;;;OAKG;IACH,kDALW,MAAM,GAEJ,OAAO,CAAC,MAAM,EAAE,CAAC,CAsB7B;IAED;;OAEG;IACH,sBAFa,OAAO,CAAC,MAAM,CAAC,CAI3B;IAED;;;OAGG;IACH,+BAHW,OAAO,UAAU,EAAE,kBAAkB,GACnC,OAAO,CAAC,IAAI,CAAC,CAuBzB;CAEF;;;;;;;aAvTa,MAAM;;;;eACN,OAAO;;0BA1BK,gBAAgB"}
|
package/build/lib/real-device.js
DELETED
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.RealDevice = void 0;
|
|
40
|
-
exports.getConnectedDevices = getConnectedDevices;
|
|
41
|
-
const support_1 = require("appium/support");
|
|
42
|
-
const path_1 = __importDefault(require("path"));
|
|
43
|
-
const appium_ios_device_1 = require("appium-ios-device");
|
|
44
|
-
const bluebird_1 = __importStar(require("bluebird"));
|
|
45
|
-
const logger_1 = __importDefault(require("./logger"));
|
|
46
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
47
|
-
const app_utils_1 = require("./app-utils");
|
|
48
|
-
const ios_fs_helpers_1 = require("./ios-fs-helpers");
|
|
49
|
-
const node_devicectl_1 = require("node-devicectl");
|
|
50
|
-
const APPLICATION_INSTALLED_NOTIFICATION = 'com.apple.mobile.application_installed';
|
|
51
|
-
const APPLICATION_NOTIFICATION_TIMEOUT_MS = 30 * 1000;
|
|
52
|
-
const INSTALLATION_STAGING_DIR = 'PublicStaging';
|
|
53
|
-
/**
|
|
54
|
-
* @returns {Promise<string[]>}
|
|
55
|
-
*/
|
|
56
|
-
async function getConnectedDevices() {
|
|
57
|
-
if (['yes', 'true', '1'].includes(lodash_1.default.toLower(process.env.APPIUM_XCUITEST_PREFER_DEVICECTL))) {
|
|
58
|
-
return (await new node_devicectl_1.Devicectl('').listDevices())
|
|
59
|
-
.map(({ hardwareProperties }) => hardwareProperties?.udid)
|
|
60
|
-
.filter(Boolean);
|
|
61
|
-
}
|
|
62
|
-
return await appium_ios_device_1.utilities.getConnectedDevices();
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* @typedef {Object} InstallOptions
|
|
66
|
-
* @param {number} [timeoutMs=240000] Application installation timeout in milliseconds
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* @typedef {Object} InstallOrUpgradeOptions
|
|
70
|
-
* @property {number} timeout Install/upgrade timeout in milliseconds
|
|
71
|
-
* @property {boolean} isUpgrade Whether it is an app upgrade or a new install
|
|
72
|
-
*/
|
|
73
|
-
class RealDevice {
|
|
74
|
-
/**
|
|
75
|
-
* @param {string} udid
|
|
76
|
-
* @param {import('@appium/types').AppiumLogger} [logger]
|
|
77
|
-
*/
|
|
78
|
-
constructor(udid, logger) {
|
|
79
|
-
this.udid = udid;
|
|
80
|
-
this._log = logger ?? logger_1.default;
|
|
81
|
-
this.devicectl = new node_devicectl_1.Devicectl(this.udid);
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* @returns {import('@appium/types').AppiumLogger}
|
|
85
|
-
*/
|
|
86
|
-
get log() {
|
|
87
|
-
return this._log;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* @param {string} bundleId
|
|
91
|
-
*/
|
|
92
|
-
async remove(bundleId) {
|
|
93
|
-
const service = await appium_ios_device_1.services.startInstallationProxyService(this.udid);
|
|
94
|
-
try {
|
|
95
|
-
await service.uninstallApplication(bundleId);
|
|
96
|
-
}
|
|
97
|
-
finally {
|
|
98
|
-
service.close();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @param {string} bundleId
|
|
103
|
-
*/
|
|
104
|
-
async removeApp(bundleId) {
|
|
105
|
-
await this.remove(bundleId);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @param {string} appPath
|
|
110
|
-
* @param {string} bundleId
|
|
111
|
-
* @param {InstallOptions} [opts={}]
|
|
112
|
-
*/
|
|
113
|
-
async install(appPath, bundleId, opts = {}) {
|
|
114
|
-
const { timeoutMs = ios_fs_helpers_1.IO_TIMEOUT_MS, } = opts;
|
|
115
|
-
const timer = new support_1.timing.Timer().start();
|
|
116
|
-
const afcService = await appium_ios_device_1.services.startAfcService(this.udid);
|
|
117
|
-
try {
|
|
118
|
-
let bundlePathOnPhone;
|
|
119
|
-
if ((await support_1.fs.stat(appPath)).isFile()) {
|
|
120
|
-
// https://github.com/doronz88/pymobiledevice3/blob/6ff5001f5776e03b610363254e82d7fbcad4ef5f/pymobiledevice3/services/installation_proxy.py#L75
|
|
121
|
-
bundlePathOnPhone = `/${path_1.default.basename(appPath)}`;
|
|
122
|
-
await (0, ios_fs_helpers_1.pushFile)(afcService, appPath, bundlePathOnPhone, {
|
|
123
|
-
timeoutMs,
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
bundlePathOnPhone = `${INSTALLATION_STAGING_DIR}/${bundleId}`;
|
|
128
|
-
await (0, ios_fs_helpers_1.pushFolder)(afcService, appPath, bundlePathOnPhone, {
|
|
129
|
-
enableParallelPush: true,
|
|
130
|
-
timeoutMs,
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
await this.installOrUpgradeApplication(bundlePathOnPhone, {
|
|
134
|
-
timeout: Math.max(timeoutMs - timer.getDuration().asMilliSeconds, 60000),
|
|
135
|
-
isUpgrade: await this.isAppInstalled(bundleId),
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
catch (err) {
|
|
139
|
-
this.log.debug(err.stack);
|
|
140
|
-
let errMessage = `Cannot install the ${bundleId} application`;
|
|
141
|
-
if (err instanceof bluebird_1.TimeoutError) {
|
|
142
|
-
errMessage += `. Consider increasing the value of 'appPushTimeout' capability (the current value equals to ${timeoutMs}ms)`;
|
|
143
|
-
}
|
|
144
|
-
errMessage += `. Original error: ${err.message}`;
|
|
145
|
-
throw new Error(errMessage);
|
|
146
|
-
}
|
|
147
|
-
finally {
|
|
148
|
-
afcService.close();
|
|
149
|
-
}
|
|
150
|
-
this.log.info(`The installation of '${bundleId}' succeeded after ${timer.getDuration().asMilliSeconds.toFixed(0)}ms`);
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* @param {string} bundlePathOnPhone
|
|
154
|
-
* @param {InstallOrUpgradeOptions} opts
|
|
155
|
-
*/
|
|
156
|
-
async installOrUpgradeApplication(bundlePathOnPhone, { isUpgrade, timeout }) {
|
|
157
|
-
const notificationService = await appium_ios_device_1.services.startNotificationProxyService(this.udid);
|
|
158
|
-
const installationService = await appium_ios_device_1.services.startInstallationProxyService(this.udid);
|
|
159
|
-
const appInstalledNotification = new bluebird_1.default((resolve) => {
|
|
160
|
-
notificationService.observeNotification(APPLICATION_INSTALLED_NOTIFICATION, {
|
|
161
|
-
notification: resolve,
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
const clientOptions = { PackageType: 'Developer' };
|
|
165
|
-
try {
|
|
166
|
-
if (isUpgrade) {
|
|
167
|
-
this.log.debug(`An upgrade of the existing application is going to be performed. ` +
|
|
168
|
-
`Will timeout in ${timeout.toFixed(0)} ms`);
|
|
169
|
-
await installationService.upgradeApplication(bundlePathOnPhone, clientOptions, timeout);
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
this.log.debug(`A new application installation is going to be performed. ` +
|
|
173
|
-
`Will timeout in ${timeout.toFixed(0)} ms`);
|
|
174
|
-
await installationService.installApplication(bundlePathOnPhone, clientOptions, timeout);
|
|
175
|
-
}
|
|
176
|
-
try {
|
|
177
|
-
await appInstalledNotification.timeout(APPLICATION_NOTIFICATION_TIMEOUT_MS, `Could not get the application installed notification within ` +
|
|
178
|
-
`${APPLICATION_NOTIFICATION_TIMEOUT_MS}ms but we will continue`);
|
|
179
|
-
}
|
|
180
|
-
catch (e) {
|
|
181
|
-
this.log.warn(e.message);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
finally {
|
|
185
|
-
installationService.close();
|
|
186
|
-
notificationService.close();
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Alias for {@linkcode install}
|
|
191
|
-
* @param {string} appPath
|
|
192
|
-
* @param {string} bundleId
|
|
193
|
-
* @param {InstallOptions} [opts={}]
|
|
194
|
-
*/
|
|
195
|
-
async installApp(appPath, bundleId, opts = {}) {
|
|
196
|
-
return await this.install(appPath, bundleId, opts);
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Return an application object if test app has 'bundleid'.
|
|
200
|
-
* The target bundleid can be User and System apps.
|
|
201
|
-
*
|
|
202
|
-
* @param {string} bundleId The bundleId to ensure it is installed
|
|
203
|
-
* @return {Promise<boolean>} Returns True if the app is installed
|
|
204
|
-
* on the device under test.
|
|
205
|
-
*/
|
|
206
|
-
async isAppInstalled(bundleId) {
|
|
207
|
-
return Boolean(await this.fetchAppInfo(bundleId));
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Fetches various attributes, like bundle id, version, entitlements etc. of
|
|
211
|
-
* an installed application.
|
|
212
|
-
*
|
|
213
|
-
* @param {string} bundleId the bundle identifier of an app to check
|
|
214
|
-
* @param {string|string[]|undefined} returnAttributes If provided then
|
|
215
|
-
* only fetches the requested attributes of the app into the resulting object.
|
|
216
|
-
* Some apps may have too many attributes, so it makes sense to limit these
|
|
217
|
-
* by default if you don't need all of them.
|
|
218
|
-
* @returns {Promise<Object|undefined>} Either app info as an object or undefined
|
|
219
|
-
* if the app is not found.
|
|
220
|
-
*/
|
|
221
|
-
async fetchAppInfo(bundleId, returnAttributes = ['CFBundleIdentifier', 'CFBundleVersion']) {
|
|
222
|
-
const service = await appium_ios_device_1.services.startInstallationProxyService(this.udid);
|
|
223
|
-
try {
|
|
224
|
-
return (await service.lookupApplications({
|
|
225
|
-
bundleIds: bundleId,
|
|
226
|
-
// https://github.com/appium/appium/issues/18753
|
|
227
|
-
returnAttributes,
|
|
228
|
-
}))[bundleId];
|
|
229
|
-
}
|
|
230
|
-
finally {
|
|
231
|
-
service.close();
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* @param {string} bundleId
|
|
236
|
-
* @param {string} platformVersion
|
|
237
|
-
* @returns {Promise<boolean>}
|
|
238
|
-
*/
|
|
239
|
-
async terminateApp(bundleId, platformVersion) {
|
|
240
|
-
let instrumentService;
|
|
241
|
-
let installProxyService;
|
|
242
|
-
try {
|
|
243
|
-
installProxyService = await appium_ios_device_1.services.startInstallationProxyService(this.udid);
|
|
244
|
-
const apps = await installProxyService.listApplications({
|
|
245
|
-
returnAttributes: ['CFBundleIdentifier', 'CFBundleExecutable']
|
|
246
|
-
});
|
|
247
|
-
if (!apps[bundleId]) {
|
|
248
|
-
this.log.info(`The bundle id '${bundleId}' did not exist`);
|
|
249
|
-
return false;
|
|
250
|
-
}
|
|
251
|
-
const executableName = apps[bundleId].CFBundleExecutable;
|
|
252
|
-
this.log.debug(`The executable name for the bundle id '${bundleId}' was '${executableName}'`);
|
|
253
|
-
// 'devicectl' has overhead (generally?) than the instrument service via appium-ios-device,
|
|
254
|
-
// so hre uses the 'devicectl' only for iOS 17+.
|
|
255
|
-
if (support_1.util.compareVersions(platformVersion, '>=', '17.0')) {
|
|
256
|
-
this.log.debug(`Calling devicectl to kill the process`);
|
|
257
|
-
const pids = (await this.devicectl.listProcesses())
|
|
258
|
-
.filter(({ executable }) => executable.endsWith(`/${executableName}`))
|
|
259
|
-
.map(({ processIdentifier }) => processIdentifier);
|
|
260
|
-
if (lodash_1.default.isEmpty(pids)) {
|
|
261
|
-
this.log.info(`The process of the bundle id '${bundleId}' was not running`);
|
|
262
|
-
return false;
|
|
263
|
-
}
|
|
264
|
-
await this.devicectl.sendSignalToProcess(pids[0], 2);
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
instrumentService = await appium_ios_device_1.services.startInstrumentService(this.udid);
|
|
268
|
-
// The result of "runningProcesses" includes `bundle_id` key in iOS 16+ (possibly a specific 16.x+)
|
|
269
|
-
// then here may not be necessary to find a process with `CFBundleExecutable`
|
|
270
|
-
// after dropping older iOS version support.
|
|
271
|
-
const processes = await instrumentService.callChannel(appium_ios_device_1.INSTRUMENT_CHANNEL.DEVICE_INFO, 'runningProcesses');
|
|
272
|
-
const process = processes.selector.find((process) => process.name === executableName);
|
|
273
|
-
if (!process) {
|
|
274
|
-
this.log.info(`The process of the bundle id '${bundleId}' was not running`);
|
|
275
|
-
return false;
|
|
276
|
-
}
|
|
277
|
-
await instrumentService.callChannel(appium_ios_device_1.INSTRUMENT_CHANNEL.PROCESS_CONTROL, 'killPid:', `${process.pid}`);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
catch (err) {
|
|
281
|
-
this.log.warn(`Failed to kill '${bundleId}'. Original error: ${err.stderr || err.message}`);
|
|
282
|
-
return false;
|
|
283
|
-
}
|
|
284
|
-
finally {
|
|
285
|
-
if (installProxyService) {
|
|
286
|
-
installProxyService.close();
|
|
287
|
-
}
|
|
288
|
-
if (instrumentService) {
|
|
289
|
-
instrumentService.close();
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
return true;
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* @param {string} bundleName The name of CFBundleName in Info.plist
|
|
296
|
-
*
|
|
297
|
-
* @returns {Promise<string[]>} A list of User level apps' bundle ids which has
|
|
298
|
-
* 'CFBundleName' attribute as 'bundleName'.
|
|
299
|
-
*/
|
|
300
|
-
async getUserInstalledBundleIdsByBundleName(bundleName) {
|
|
301
|
-
const service = await appium_ios_device_1.services.startInstallationProxyService(this.udid);
|
|
302
|
-
try {
|
|
303
|
-
const applications = await service.listApplications({
|
|
304
|
-
applicationType: 'User', returnAttributes: ['CFBundleIdentifier', 'CFBundleName']
|
|
305
|
-
});
|
|
306
|
-
return lodash_1.default.reduce(applications, (acc, { CFBundleName }, key) => {
|
|
307
|
-
if (CFBundleName === bundleName) {
|
|
308
|
-
acc.push(key);
|
|
309
|
-
}
|
|
310
|
-
return acc;
|
|
311
|
-
},
|
|
312
|
-
/** @type {string[]} */ ([]));
|
|
313
|
-
}
|
|
314
|
-
finally {
|
|
315
|
-
service.close();
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* @returns {Promise<string>}
|
|
320
|
-
*/
|
|
321
|
-
async getPlatformVersion() {
|
|
322
|
-
return await appium_ios_device_1.utilities.getOSVersion(this.udid);
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* @param {import('./driver').XCUITestDriverOpts} opts
|
|
326
|
-
* @returns {Promise<void>}
|
|
327
|
-
*/
|
|
328
|
-
async reset({ bundleId, fullReset }) {
|
|
329
|
-
if (!bundleId || !fullReset || bundleId === app_utils_1.SAFARI_BUNDLE_ID) {
|
|
330
|
-
// Safari cannot be removed as system app.
|
|
331
|
-
// Safari process handling will be managed by WDA
|
|
332
|
-
// with noReset, forceAppLaunch or shouldTerminateApp capabilities.
|
|
333
|
-
return;
|
|
334
|
-
}
|
|
335
|
-
this.log.debug(`Reset: fullReset requested. Will try to uninstall the app '${bundleId}'.`);
|
|
336
|
-
if (!(await this.isAppInstalled(bundleId))) {
|
|
337
|
-
this.log.debug('Reset: app not installed. No need to uninstall');
|
|
338
|
-
return;
|
|
339
|
-
}
|
|
340
|
-
try {
|
|
341
|
-
await this.remove(bundleId);
|
|
342
|
-
}
|
|
343
|
-
catch (err) {
|
|
344
|
-
this.log.error(`Reset: could not remove '${bundleId}' from device: ${err.message}`);
|
|
345
|
-
throw err;
|
|
346
|
-
}
|
|
347
|
-
this.log.debug(`Reset: removed '${bundleId}'`);
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
exports.RealDevice = RealDevice;
|
|
351
|
-
exports.default = RealDevice;
|
|
352
|
-
//# sourceMappingURL=real-device.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
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|
4
|
-
* @this {import('./driver').XCUITestDriver}
|
|
5
|
-
* @returns {Promise<object>} Simulator object associated with the udid passed in.
|
|
6
|
-
*/
|
|
7
|
-
export function createSim(this: import("./driver").XCUITestDriver): Promise<object>;
|
|
8
|
-
/**
|
|
9
|
-
* @typedef {Object} SimulatorLookupOptions
|
|
10
|
-
* @property {string} [deviceName] - The name of the device to lookup
|
|
11
|
-
* @property {string} platformVersion - The platform version string
|
|
12
|
-
* @property {string} [simulatorDevicesSetPath] - The full path to the simulator devices set
|
|
13
|
-
* @property {string} [udid] - Simulator udid
|
|
14
|
-
* @property {string} [platformName] The name of the current platform
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Get an existing simulator matching the provided capabilities.
|
|
18
|
-
*
|
|
19
|
-
* @this {import('./driver').XCUITestDriver}
|
|
20
|
-
* @returns {Promise<import('./driver').Simulator|null>} The matched Simulator instance or `null` if no matching device is found.
|
|
21
|
-
*/
|
|
22
|
-
export function getExistingSim(this: import("./driver").XCUITestDriver): Promise<import("./driver").Simulator | null>;
|
|
23
|
-
/**
|
|
24
|
-
* @this {import('./driver').XCUITestDriver}
|
|
25
|
-
*/
|
|
26
|
-
export function shutdownSimulator(this: import("./driver").XCUITestDriver): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* @this {import('./driver').XCUITestDriver}
|
|
29
|
-
* @property {boolean} [enforceSimulatorShutdown=false]
|
|
30
|
-
* @returns {Promise<void>}
|
|
31
|
-
*/
|
|
32
|
-
export function runSimulatorReset(this: import("./driver").XCUITestDriver, enforceSimulatorShutdown?: boolean): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* @typedef {Object} InstallOptions
|
|
35
|
-
*
|
|
36
|
-
* @property {boolean} [skipUninstall] Whether to skip app uninstall before installing it
|
|
37
|
-
* @property {boolean} [newSimulator=false] Whether the simulator is brand new
|
|
38
|
-
*/
|
|
39
|
-
/**
|
|
40
|
-
* @this {import('./driver').XCUITestDriver}
|
|
41
|
-
* @param {string} app The app to the path
|
|
42
|
-
* @param {string} [bundleId] The bundle id to ensure it is already installed and uninstall it
|
|
43
|
-
* @param {InstallOptions} [opts={}]
|
|
44
|
-
*/
|
|
45
|
-
export function installToSimulator(this: import("./driver").XCUITestDriver, app: string, bundleId?: string, opts?: InstallOptions): Promise<void>;
|
|
46
|
-
/**
|
|
47
|
-
* @this {import('./driver').XCUITestDriver}
|
|
48
|
-
*/
|
|
49
|
-
export function shutdownOtherSimulators(this: import("./driver").XCUITestDriver): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* Configures Safari options based on the given session capabilities
|
|
52
|
-
*
|
|
53
|
-
* @this {import('./driver').XCUITestDriver}
|
|
54
|
-
* @return {Promise<boolean>} true if any preferences have been updated
|
|
55
|
-
*/
|
|
56
|
-
export function setSafariPrefs(this: import("./driver").XCUITestDriver): Promise<boolean>;
|
|
57
|
-
/**
|
|
58
|
-
* Changes Simulator localization preferences
|
|
59
|
-
*
|
|
60
|
-
* @this {import('./driver').XCUITestDriver}
|
|
61
|
-
* @returns {Promise<boolean>} True if preferences were changed
|
|
62
|
-
*/
|
|
63
|
-
export function setLocalizationPrefs(this: import("./driver").XCUITestDriver): Promise<boolean>;
|
|
64
|
-
export type SimulatorLookupOptions = {
|
|
65
|
-
/**
|
|
66
|
-
* - The name of the device to lookup
|
|
67
|
-
*/
|
|
68
|
-
deviceName?: string | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* - The platform version string
|
|
71
|
-
*/
|
|
72
|
-
platformVersion: string;
|
|
73
|
-
/**
|
|
74
|
-
* - The full path to the simulator devices set
|
|
75
|
-
*/
|
|
76
|
-
simulatorDevicesSetPath?: string | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* - Simulator udid
|
|
79
|
-
*/
|
|
80
|
-
udid?: string | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* The name of the current platform
|
|
83
|
-
*/
|
|
84
|
-
platformName?: string | undefined;
|
|
85
|
-
};
|
|
86
|
-
export type InstallOptions = {
|
|
87
|
-
/**
|
|
88
|
-
* Whether to skip app uninstall before installing it
|
|
89
|
-
*/
|
|
90
|
-
skipUninstall?: boolean | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* Whether the simulator is brand new
|
|
93
|
-
*/
|
|
94
|
-
newSimulator?: boolean | undefined;
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=simulator-management.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simulator-management.d.ts","sourceRoot":"","sources":["../../lib/simulator-management.js"],"names":[],"mappings":"AAUA;;;;;GAKG;AACH,oEAFa,OAAO,CAAC,MAAM,CAAC,CAiC3B;AAED;;;;;;;GAOG;AAEH;;;;;GAKG;AACH,yEAFa,OAAO,CAAC,OAAO,UAAU,EAAE,SAAS,GAAC,IAAI,CAAC,CA4DtD;AAED;;GAEG;AACH,0FAKC;AAED;;;;GAIG;AACH,gHAFa,OAAO,CAAC,IAAI,CAAC,CAyEzB;AAED;;;;;GAKG;AAEH;;;;;GAKG;AACH,iFAJW,MAAM,aACN,MAAM,SACN,cAAc,iBAwBxB;AAED;;GAEG;AACH,gGA0BC;AAED;;;;;GAKG;AACH,yEAFY,OAAO,CAAC,OAAO,CAAC,CAW3B;AAED;;;;;GAKG;AACH,+EAFa,OAAO,CAAC,OAAO,CAAC,CAsB5B;;;;;;;;;qBA/Qa,MAAM"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simulator-management.js","sourceRoot":"","sources":["../../lib/simulator-management.js"],"names":[],"mappings":";;;;;AAgBA,8BA+BC;AAiBD,wCA0DC;AAKD,8CAKC;AAOD,8CAuEC;AAeD,gDAsBC;AAKD,0DA0BC;AAQD,wCASC;AAQD,oDAoBC;AAnUD,+DAAkD;AAClD,6CAAmC;AACnC,iEAAyD;AACzD,oDAAuB;AACvB,4CAA4C;AAC5C,mCAAyD;AACzD,2CAAmD;AAEnD,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAE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AAU,CAAC,QAAQ,GAAG,EAAC,IAAI,EAAE,QAAQ,EAAE,2BAA2B,EAAE,CAAC;IACvE,CAAC;IACD,IAAI,MAAM,EAAE,CAAC;QACX,UAAU,CAAC,MAAM,GAAG,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;QACnC,IAAI,cAAc,EAAE,CAAC;YACnB,UAAU,CAAC,MAAM,CAAC,QAAQ,GAAG,cAAc,CAAC;QAC9C,CAAC;IACH,CAAC;IACD,IAAI,gBAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QAC1B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6CAA6C,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IAC1F,MAAM,2CAA2C,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAClG,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/build/lib/xcrun.d.ts
DELETED
package/build/lib/xcrun.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xcrun.d.ts","sourceRoot":"","sources":["../../lib/xcrun.js"],"names":[],"mappings":"AAIA,gDASC;AAXD,oBAAc,OAAO,CAAC"}
|
package/build/lib/xcrun.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XCRUN = void 0;
|
|
4
|
-
exports.requireXcrun = requireXcrun;
|
|
5
|
-
const support_1 = require("appium/support");
|
|
6
|
-
const XCRUN = 'xcrun';
|
|
7
|
-
exports.XCRUN = XCRUN;
|
|
8
|
-
async function requireXcrun() {
|
|
9
|
-
try {
|
|
10
|
-
return await support_1.fs.which(XCRUN);
|
|
11
|
-
}
|
|
12
|
-
catch {
|
|
13
|
-
throw new Error(`${XCRUN} has not been found in PATH. ` +
|
|
14
|
-
`Please make sure XCode development tools are installed`);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=xcrun.js.map
|
package/build/lib/xcrun.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xcrun.js","sourceRoot":"","sources":["../../lib/xcrun.js"],"names":[],"mappings":";;;AAeQ,oCAAY;AAfpB,4CAAkC;AAElC,MAAM,KAAK,GAAG,OAAO,CAAC;AAaA,sBAAK;AAX3B,KAAK,UAAU,YAAY;IACzB,IAAI,CAAC;QACH,OAAO,MAAM,YAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACP,MAAM,IAAI,KAAK,CACb,GAAG,KAAK,+BAA+B;YACrC,wDAAwD,CAC3D,CAAC;IACJ,CAAC;AACH,CAAC"}
|