-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsingle.conf.js
41 lines (33 loc) · 1.04 KB
/
single.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
username= process.env.LT_USERNAME || "<your username>",
accessKey= process.env.LT_ACCESS_KEY || "<your accessKey>",
exports.config = {
'specs': ['./specs/single.js'],
seleniumAddress: 'https://'+ username +':'+ accessKey +'@hub.lambdatest.com/wd/hub',
'capabilities': {
'build': 'protractor-LambdaTest-Single',
'browserName': 'chrome',
'version':'67.0',
'platform': 'WIN10',
'video': true,
'network': true,
'console': true,
'visual': true
},
onPrepare: () => {
myReporter = {
specStarted: function(result) {
specStr= result.id
spec_id = parseInt(specStr[specStr.length -1])
browser.getProcessedConfig().then(function (config) {
var fullName = config.specs[spec_id];
//var fileName = fullName.substring(fullName.lastIndexOf('/')+1);
browser.executeScript("lambda-name="+fullName.split(/(\\|\/)/g).pop())
});
}
};
jasmine.getEnv().addReporter(myReporter);
},
onComplete: () => {
browser.quit();
}
};