File tree Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,18 @@ npx @maxmattone/browserstack-side-runner -w 2 test.side
9
9
Don't forget to use the config file ` .side.yml ` like so:
10
10
``` yml
11
11
# this is how your .side.yml should look like
12
- capabilities :
13
- browserName : " Chrome"
14
- browser_version : ' 81.0'
15
- os : " Windows"
16
- os_version : ' 10'
17
- resolution : ' 1024x768'
18
- build : ' Selenium IDE automate test'
19
- browserstack.debug : true
20
- browserstack.console : " verbose"
21
- browserstack.networkLogs : true
22
- server : " https://<bs_username>:<bs_accesskey>@hub-cloud.browserstack.com/wd/hub"
12
+ capabilities :
13
+ browserName : " Chrome"
14
+ ' bstack:options ' :
15
+ browserVersion : ' latest'
16
+ os : " Windows"
17
+ osVersion : ' 10'
18
+ resolution : " 3840x2160" ,
19
+ projectName : ' My Selenium IDE Project'
20
+ buildName : " My Seleenium IDE Test Suite"
21
+ debug : true
22
+ networkLogs : true
23
+ consoleLogs : " verbose"
24
+ server : " https://<bs_username>:<bs_accesskey>@hub-cloud.browserstack.com/wd/hub"
23
25
` ` `
24
26
Original file line number Diff line number Diff line change @@ -91,6 +91,11 @@ projects.forEach(project => {
91
91
promises . push ( new Promise ( async ( resolve , reject ) => {
92
92
var _config = clone ( config ) ;
93
93
_config . capabilities [ 'name' ] = test . name
94
+ if ( _config . capabilities [ 'bstack:options' ] == undefined )
95
+ {
96
+ _config . capabilities [ 'bstack:options' ] = [ ]
97
+ }
98
+ _config . capabilities [ 'bstack:options' ] [ 'sessionName' ] = test . name
94
99
var packageJson = JSON . parse ( fs . readFileSync ( __dirname + '/package.json' ) ) ;
95
100
_config . capabilities [ 'browserstack-side-runner-version' ] = packageJson . version
96
101
const result = await emitTest ( {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @maxmattone/browserstack-side-runner" ,
3
3
"repository" : " git@github.com:mattonem/browserstack-side-runner.git" ,
4
- "version" : " 1.4 .0" ,
4
+ "version" : " 1.5 .0" ,
5
5
"main" : " index.mjs" ,
6
6
"homepage" : " https://github.com/mattonem/browserstack-side-runner#readme" ,
7
7
"repository" : {
18
18
"license" : " ISC" ,
19
19
"description" : " " ,
20
20
"dependencies" : {
21
- "@maxmattone/code-export-browserstack-mocha" : " ^1.2.0-beta.5 " ,
21
+ "@maxmattone/code-export-browserstack-mocha" : " ^1.2.0" ,
22
22
"@mochajs/json-file-reporter" : " ^1.3.0" ,
23
23
"cli-logger" : " ^0.5.40" ,
24
24
"commander" : " ^8.0.0" ,
You can’t perform that action at this time.
0 commit comments