-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotractor.config.js
More file actions
55 lines (55 loc) · 1.62 KB
/
protractor.config.js
File metadata and controls
55 lines (55 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tsNode = require("ts-node");
var path = require("path");
var serverAddress = 'http://localhost:4723/wd/hub';
var testFilePAtterns = [
'../tests/**/*/*.e2e-spec.ts'
];
var iPhoneXCapability = {
browserName: '',
autoWebview: true,
autoWebviewTimeout: 20000,
app: path.resolve(__dirname, '../platforms/ios/build/emulator/superApp.app'),
version: '11.4',
platform: 'iOS',
deviceName: 'iPhone X',
platformName: 'iOS',
name: 'My First Mobile Test',
automationName: 'XCUITest',
nativeWebTap: 'true'
};
var androidPixel2XLCapability = {
browserName: '',
autoWebview: true,
autoWebviewTimeout: 20000,
platformName: 'Android',
deviceName: 'pixel',
// app: path.resolve(__dirname, '../platforms/android/build/outputs/apk/armv7/debug/android-armv7-debug.apk'),
app: path.resolve(__dirname, '../platforms/android/build/outputs/apk/x86/debug/android-x86-debug.apk'),
'app-package': 'com.xendbit',
'app-activity': 'MainActivity',
autoAcceptAlerts: 'true',
autoGrantPermissions: 'true',
newCommandTimeout: 300000
};
exports.config = {
allScriptsTimeout: 11000,
specs: testFilePAtterns,
baseUrl: '',
multiCapabilities: [
androidPixel2XLCapability,
],
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
},
seleniumAddress: serverAddress,
onPrepare: function () {
tsNode.register({
project: 'e2e/tsconfig.e2e.json'
});
}
};
//# sourceMappingURL=protractor.config.js.map