-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
65 lines (61 loc) · 1.75 KB
/
nightwatch.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
/**
* @file 自动测试配置文件
* @author muzhilong
* 参考:
* http://nightwatchjs.org/guide#settings-file
* https://github.com/vuejs/vue/blob/dev/test/e2e/nightwatch.config.js
*/
/* eslint-disable */
module.exports = {
src_folders: ['test'],
output_folder: 'test/reports',
// page_objects_path: 'test/page_objects_path',
custom_commands_path: ['src/commands'],
custom_assertions_path: ['src/assertions'],
selenium: {
start_process: true,
server_path: require('selenium-server').path,
log_path: 'test/reports/',
host: '127.0.0.1',
port: 4444,
cli_args: {
'webdriver.chrome.driver': require('chromedriver').path
// , 'webdriver.gecko.driver': require('geckodriver').path
}
},
test_settings: {
'default': {
selenium_port: 4444,
selenium_host: 'localhost',
silent: true,
screenshots: {
enabled: true,
on_failure: true,
on_error: true,
path: 'test/reports/screenshots'
}
},
'chrome': {
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true
}
},
'firefox': {
desiredCapabilities: {
browserName: 'firefox',
javascriptEnabled: true,
acceptSslCerts: true,
marionette: true
}
},
'phantomjs': {
desiredCapabilities: {
browserName: 'phantomjs',
javascriptEnabled: true,
acceptSslCerts: true
}
}
}
};