-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathsingle.conf.js
More file actions
23 lines (21 loc) · 896 Bytes
/
single.conf.js
File metadata and controls
23 lines (21 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
exports.config = {
'specs': [ '../specs/single.js' ],
'browserstackUser': process.env.BROWSERSTACK_USERNAME || 'BROWSERSTACK_USERNAME',
'browserstackKey': process.env.BROWSERSTACK_ACCESS_KEY || 'BROWSERSTACK_ACCESS_KEY',
'capabilities': {
'build': 'browserstack-build-1',
'name': 'single_test',
'browserName': 'chrome',
'resolution': '1024x768',
'browserstack.debug': 'true'
},
// Code to mark the status of test on BrowserStack based on test assertions
onComplete: function (passed) {
if (!passed) {
browser.executeScript('browserstack_executor: {"action": "setSessionStatus", "arguments": {"status":"failed","reason": "At least 1 assertion has failed"}}');
}
if (passed) {
browser.executeScript('browserstack_executor: {"action": "setSessionStatus", "arguments": {"status":"passed","reason": "All assertions passed"}}');
}
}
};