-
Notifications
You must be signed in to change notification settings - Fork 1
/
protractor-android.conf.js
55 lines (46 loc) · 1.38 KB
/
protractor-android.conf.js
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
exports.config = {
seleniumAddress: 'http://localhost:4723/wd/hub',
specs: [
'./e2e/**/*.e2e-spec.ts'
],
exclude: [],
framework: 'jasmine2',
allScriptsTimeout: 110000,
jasmineNodeOpts: {
showTiming: true,
showColors: true,
isVerbose: false,
includeStackTrace: false,
autoWebview: true,
defaultTimeoutInterval: 400000
},
capabilities: {
browserName: '',
'appium-version': '1.6.5',
platformName: 'android',
platformVersion: '7.1.1',
deviceName: 'emulator-5584',
autoWebview: true,
avd: 'Nexus_5X_API_25',
nativeInstrumentsLib: true,
app: "/Users/user/Documents/code/clicker/platforms/android/build/outputs/apk/android-debug.apk"
},
baseUrl: 'http://10.0.2.2:' + (process.env.HTTP_PORT || '8100'),
onPrepare: function () {
const SpecReporter = require('jasmine-spec-reporter').SpecReporter;
var wd = require('wd'),
protractor = require('protractor'),
wdBridge = require('wd-bridge')(protractor, wd);
wdBridge.initFromProtractor(exports.config);
// add jasmine spec reporter
jasmine.getEnv().addReporter(new SpecReporter({spec: {displayStacktrace: true} }));
browser.ignoreSynchronization = false;
browser.get = function() { };
},
beforeLaunch: function() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
},
useAllAngular2AppRoots: true
};