Skip to content

Commit da6fa2c

Browse files
princebaretto99francisf
authored andcommitted
Added w3c comments
1 parent 5383bd8 commit da6fa2c

3 files changed

Lines changed: 63 additions & 12 deletions

File tree

src/test/local/codecept.conf.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ exports.config = {
1313
user: BROWSERSTACK_USERNAME,
1414
key: BROWSERSTACK_ACCESS_KEY,
1515
browser: 'chrome',
16+
//Mentioned below are the capabilities based on JSON Wire Protocol
1617
capabilities: {
1718
"os": "Windows",
1819
"os_version": "10",
@@ -22,6 +23,18 @@ exports.config = {
2223
"build": "Local_Execution",
2324
"name": "Local Test",
2425
}
26+
//For W3C-based scripts, use the following capabilties:
27+
// capabilities: {
28+
// "bstack:options" : {
29+
// "os": "Windows",
30+
// "osVersion": "10",
31+
// "local": "true",
32+
// "projectName": "Codecept + WebdriverIO",
33+
// "buildName": "Local_Execution",
34+
// "sessionName": "Local Test",
35+
// },
36+
// "browserVersion": "latest",
37+
// }
2538
}
2639
},
2740

src/test/parallel/codecept.conf.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,62 @@ exports.config = {
2121
browsers: [
2222
{
2323
browser: "Safari",
24+
//Mentioned below are the capabilities based on JSON Wire Protocol
2425
desiredCapabilities: {
2526
"os": "OS X",
2627
"os_version": "Catalina",
28+
"browser_version": "latest",
2729
"project": "Codecept + WebdriverIO",
2830
"build": "Parallel_Execution",
2931
"name": "Parallel Test Safari",
3032
"browserstack.debug": "true",
3133
'browserstack.networkLogs': 'true',
3234
},
35+
//For W3C-based scripts, use the following capabilties:
36+
/*
37+
desiredCapabilities: {
38+
"bstack:options" : {
39+
"os": "OS X",
40+
"osVersion": "Catalina",
41+
"projectName": "Codecept + WebdriverIO",
42+
"buildName": "Parallel_Execution",
43+
"sessionName": "Parallel Test Safari",
44+
"debug" : "true",
45+
"networkLogs" : "true",
46+
},
47+
"browserVersion": "latest",
48+
},
49+
*/
3350
},
3451

3552
{
3653
browser: "Firefox",
54+
//Mentioned below are the capabilities based on JSON Wire Protocol
3755
desiredCapabilities: {
3856
"os": "Windows",
3957
"os_version": "10",
58+
"browser_version": "latest",
4059
"project": "Codecept + WebdriverIO",
4160
"build": "Parallel_Execution",
4261
"name": "Parallel Test Firefox",
4362
"browserstack.debug": "true",
4463
'browserstack.networkLogs': 'true',
4564
},
65+
//For W3C-based scripts, use the following capabilties:
66+
/*
67+
desiredCapabilities: {
68+
"bstack:options" : {
69+
"os": "Windows",
70+
"osVersion": "10",
71+
"projectName": "Codecept + WebdriverIO",
72+
"buildName": "Parallel_Execution",
73+
"sessionName": "Parallel Test Firefox",
74+
"debug" : "true",
75+
"networkLogs" : "true",
76+
},
77+
"browserVersion": "latest",
78+
},
79+
*/
4680
},
4781
],
4882
},

src/test/single/codecept.conf.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,27 @@ exports.config = {
1616
"os": "Windows",
1717
"os_version": "10",
1818
"browser_version": "latest",
19+
"project": "Codecept + WebdriverIO",
1920
"build": "Single_Execution",
2021
"name": "Single Test Edge",
2122
"browserstack.debug": "true",
2223
'browserstack.networkLogs': 'true',
2324
}
24-
//We can also use capabilities based on W3C protocol as mentioned below:
25-
// capabilities: {
26-
// 'bstack:options' :
27-
// "os": "Windows",
28-
// "osVersion": "10",
29-
// "buildName": "Single_Execution",
30-
// "sessionName": "Single Test Edge",
31-
// "debug" : "true",
32-
// "networkLogs" : "true",
33-
// },
34-
// "browserVersion": "latest",
35-
// }
25+
//For W3C-based scripts, use the following capabilties:
26+
/*
27+
capabilities: {
28+
"bstack:options" : {
29+
"os": "Windows",
30+
"osVersion": "10",
31+
"projectName": "Codecept + WebdriverIO",
32+
"buildName": "Single_Execution",
33+
"sessionName": "Single Test Edge",
34+
"debug" : "true",
35+
"networkLogs" : "true",
36+
},
37+
"browserVersion": "latest",
38+
}
39+
*/
3640
}
3741
},
3842
include: {

0 commit comments

Comments
 (0)