-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprotractor.config.ts
More file actions
56 lines (54 loc) · 1.5 KB
/
protractor.config.ts
File metadata and controls
56 lines (54 loc) · 1.5 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
56
import {Config} from 'protractor';
import * as tsNode from 'ts-node';
import * as path from 'path';
const serverAddress = 'http://localhost:4723/wd/hub';
const testFilePAtterns: Array<string> = [
'../tests/**/*/*.e2e-spec.ts'
];
const 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'
};
const 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
};
export let config: Config = {
allScriptsTimeout: 11000,
specs: testFilePAtterns,
baseUrl: '',
multiCapabilities: [
androidPixel2XLCapability,
// iPhoneXCapability
],
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
},
seleniumAddress: serverAddress,
onPrepare: () => {
tsNode.register({
project: 'e2e/tsconfig.e2e.json'
});
}
};