diff --git a/scripts/local.py b/scripts/local.py index 0840e27..4d68bc4 100644 --- a/scripts/local.py +++ b/scripts/local.py @@ -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) diff --git a/scripts/parallel.py b/scripts/parallel.py index b325b51..96499a6 100644 --- a/scripts/parallel.py +++ b/scripts/parallel.py @@ -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) diff --git a/scripts/single.py b/scripts/single.py index 2f2aacf..6d5a965 100644 --- a/scripts/single.py +++ b/scripts/single.py @@ -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)