-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnightwatch.conf.js
55 lines (49 loc) · 1.3 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
const seleniumServer = require("selenium-server");
const chromedriver = require("chromedriver");
const SELENIUM_CONFIGURATION = {
start_process: true,
server_path: seleniumServer.path,
host: '127.0.0.1',
port: 4444,
cli_args : {
"webdriver.chrome.driver" : chromedriver.path
},
};
const CHROME_CONFIGURATION = {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
args: [
'--proxy-server=http://127.0.0.1:8090',
'--no-sandbox'
]
}
};
const DEFAULT_CONFIGURATION = {
launch_url: 'http://localhost:9000',
selenium_port: 4444,
selenium_host: 'localhost',
desiredCapabilities: CHROME_CONFIGURATION,
globals: {
asyncHookTimeout: 50000
}
};
const ENVIRONMENTS = {
default: DEFAULT_CONFIGURATION
};
//These are ZAP Specific Settings
const OTHER_SETTINGS = {
zap_jrpc_server: "http://localhost:4000/jsonrpc",
zap_report_path: "report.json",
zap_report_format: "json",
test_report_title: "ZAP Test for weCare Application",
test_report_author: "Abhay Bhargav",
zap_policy_name: "Light"
};
module.exports = {
src_folders: ['tests'],
selenium: SELENIUM_CONFIGURATION,
test_settings: ENVIRONMENTS,
other_settings: OTHER_SETTINGS
};