Skip to content

Commit f2d88e6

Browse files
committed
update: config
1 parent baff346 commit f2d88e6

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

config/local.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"bstack:options": {
66
"projectName": "Pytest Browserstack",
77
"buildName": "browserstack-build-1",
8+
"sessionName": "Bstack Local Test",
89
"local": true,
910
"debug": "true",
1011
"networkLogs": "true"

config/sample.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"bstack:options": {
66
"projectName": "Pytest Browserstack",
77
"buildName": "browserstack-build-1",
8+
"sessionName": "BStack pytest sample",
89
"local": false,
910
"debug": "true",
1011
"networkLogs": "true"
11-
},
12-
"name":"BStack pytest sample"
12+
}
1313
},
1414
"environments": [
1515
{

conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def stop_local():
2929
@pytest.fixture(scope='session')
3030
def session_capabilities():
3131
capabilities = merge(CONFIG['environments'][TASK_ID],CONFIG["capabilities"])
32+
if capabilities['bstack:options'] and "sessionName" in capabilities['bstack:options']:
33+
capabilities['name'] = capabilities["bstack:options"]["sessionName"]
3234
capabilities['bstack:options']['userName'] = BROWSERSTACK_USERNAME
3335
capabilities['bstack:options']['accessKey'] = BROWSERSTACK_ACCESS_KEY
3436
if "local" in capabilities['bstack:options'] and capabilities['bstack:options']['local']:

0 commit comments

Comments
 (0)