-
Notifications
You must be signed in to change notification settings - Fork 1
/
wdio.native.conf.js
79 lines (71 loc) · 1.71 KB
/
wdio.native.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
exports.config = {
/**
* server configurations
*/
host: 'localhost',
port: 4723,
/**
* specify test files
*/
specs: [
'./test/**/*.js'
],
/**
* capabilities*/
capabilities: [{
browserName: '',
'appium-version': '1.4.13',
//port: 4723,
platformName: 'iOS',
platformVersion: '9.2',
udid: '{your udid}',
bundleId: 'io.appium.TestApp',
deviceName: 'qualityworks\'s iPhone',
app: './app/TestApp.app',
name: 'Native Mobile Testing - qualityworks\'s iPhone'
}
// ,
// {
// browserName: '',
// 'appium-version': '1.4.13',
// platformName: 'iOS',
// //port: 4724,
// platformVersion: '8.3',
// udid: '{your udid}',
// bundleId: 'io.appium.TestApp',
// deviceName: 'Tester\'s iPhone',
// app: '/Users/admin/Desktop/TestApp.app',
// name: 'Native Mobile Testing - qualityworks\'s iPhone'
// }
],
/**
* test configurations
*/
waitforTimeout: 10000,
framework: 'mocha',
reporter: 'spec',
reporterOptions: {
outputDir: './'
},
mochaOpts: {
ui: 'bdd'
},
/**
* hooks
*/
before: function() {
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
var common = require("./common/commonLib");
chai.Should();
chai.use(chaiAsPromised);
chaiAsPromised.transferPromiseness = this.transferPromiseness;
// bind commands
//browser.addCommand('verifyElementName', common.verifyElementName.bind(browser));
browser.addCommand('verifySum', common.verifySum.bind(browser));
browser.addCommand('wait', common.wait.bind(browser));
},
after: function(failures, pid, done) {
this.end(done);
}
};