-
Notifications
You must be signed in to change notification settings - Fork 0
/
nightwatch.conf.js
76 lines (74 loc) · 2.27 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
66
67
68
69
70
71
72
73
74
75
76
const seleniumServer = require('selenium-server');
const phantomjs = require('phantomjs-prebuilt');
const chromedriver = require('chromedriver');
const geckodriver = require('geckodriver');
require('nightwatch-cucumber')({
cucumberArgs: [ '--require','timeout.js',
'--require', 'hooks.js',
'--require', 'create-html-report.js',
'--require','features/step_definitions',
'--format', 'json:reports/cucumber.json',
'--format', 'pretty',
'features']
});
module.exports = {
output_folder: './reports',
custom_assertions_path: '',
live_output: false,
disable_colors: false,
page_objects_path: 'page-objects',
selenium: {
start_process: true,
server_path: seleniumServer.path,
log_path: '',
host: '127.0.0.1',
port: 4444
},
test_settings: {
default: {
launch_url: 'https://www.google.com',
selenium_port: 4444,
selenium_host: '127.0.0.1',
screenshots: {
enabled: false,
on_error: false,
on_failure: false,
path: './reports/screens'
},
desiredCapabilities: {
browserName: 'phantomjs',
javascriptEnabled: true,
acceptSslCerts: true,
acceptInsecureCerts : true,
'phantomjs.binary.path': phantomjs.path,
"phantomjs.cli.args" : ["--ignore-ssl-errors=true"]
}
},
chrome: {
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true
},
selenium: {
cli_args: {
'webdriver.chrome.driver': chromedriver.path
}
}
},
firefox: {
desiredCapabilities: {
browserName: 'firefox',
javascriptEnabled: false,
marionette: true,
acceptSslCerts : true,
acceptInsecureCerts : true
},
selenium: {
cli_args: {
'webdriver.gecko.driver': geckodriver.path
}
}
}
}
};