Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
'device': 'iPhone 11',
'realMobile': 'true',
'os_version': '14.0',
'name': 'BStack-[Python] Sample Test', # test name
'build': 'BStack Build Number 1', # CI/CD job or build name
'name': 'BStack local python', # test name
'build': 'browserstack-build-1', # CI/CD job or build name
'browserstack.local': 'true',
'browserstack.user': BROWSERSTACK_USERNAME,
'browserstack.key': BROWSERSTACK_ACCESS_KEY
}

desired_cap['browserstack.source']= 'python:sample-selenium-3:v1.0'
driver = webdriver.Remote(
command_executor=URL,
desired_capabilities=desired_cap)
Expand Down
21 changes: 11 additions & 10 deletions scripts/parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,41 +21,42 @@
'os': 'Windows',
'browser': 'chrome',
'browser_version': 'latest',
'name': 'Parallel Test1', # test name
'build': 'BStack-[Python] Sample Build' # Your tests will be organized within this build
'name': 'BStack parallel python', # test name
'build': 'browserstack-build-1' # Your tests will be organized within this build
},
{
'os_version': '10',
'os': 'Windows',
'browser': 'Edge',
'browser_version': 'latest',
'name': 'Parallel Test2', # test name
'build': 'BStack-[Python] Sample Build'
'name': 'BStack parallel python',
'build': 'browserstack-build-1'
},
{
'os_version': 'Big Sur',
'os': 'OS X',
'browser': 'Safari',
'browser_version': 'latest',
'name': 'Parallel Test3', # test name
'build': 'BStack-[Python] Sample Build'
'name': 'BStack parallel python',
'build': 'browserstack-build-1'
},
{
'device': 'Samsung Galaxy S20',
'os_browser': '11.0',
'real_mobile': 'true',
'name': 'Parallel Test4',
'build': 'BStack-[Python] Sample Build'
'name': 'BStack parallel python',
'build': 'browserstack-build-1'
},
{
'device': 'iPhone 12 Pro',
'os_browser': '14',
'real_mobile': 'true',
'name': 'Parallel Test5',
'build': 'BStack-[Python] Sample Build'
'name': 'BStack parallel python',
'build': 'browserstack-build-1'
}]
#run_session function adds a product in cart bstackdemo.com
def run_session(desired_cap):
desired_cap['browserstack.source']= 'python:sample-selenium-3:v1.0'
driver = webdriver.Remote(
command_executor=URL,
desired_capabilities=desired_cap)
Expand Down
6 changes: 3 additions & 3 deletions scripts/single.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
'device': 'iPhone 11',
'realMobile': 'true',
'os_version': '14.0',
'name': 'BStack-[Python] Sample Test', # test name
'build': 'BStack Build Number 1', # CI/CD job or build name
'name': 'BStack single python', # test name
'build': 'browserstack-build-1', # CI/CD job or build name
'browserstack.user': BROWSERSTACK_USERNAME,
'browserstack.key': BROWSERSTACK_ACCESS_KEY
}

desired_cap['browserstack.source']= 'python:sample-selenium-3:v1.0'
driver = webdriver.Remote(
command_executor=URL,
desired_capabilities=desired_cap)
Expand Down