diff --git a/README.md b/README.md index a8c3875..b7791c0 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,8 @@ * Update `*.json` files inside the `config/` directory with your [BrowserStack Username and Access Key](https://www.browserstack.com/accounts/settings) ## Running your tests -* To run a single test, run `paver run single` +* To run tests, run `paver run parallel` * To run local tests, run `paver run local` -* To run parallel tests, run `paver run parallel` Understand how many parallel sessions you need by using our [Parallel Test Calculator](https://www.browserstack.com/automate/parallel-calculator?ref=github) diff --git a/features/environment.py b/features/environment.py index 1995b5f..81553ed 100644 --- a/features/environment.py +++ b/features/environment.py @@ -29,7 +29,7 @@ def stop_local(): def before_feature(context, feature): desired_capabilities = CONFIG['environments'][TASK_ID] - desired_capabilities['browserstack.source'] = 'behave:sample-master:v1.0' + desired_capabilities['browserstack.source'] = 'behave:sample-master:v1.1' for key in CONFIG["capabilities"]: if key not in desired_capabilities: desired_capabilities[key] = CONFIG["capabilities"][key] @@ -39,7 +39,8 @@ def before_feature(context, feature): context.browser = webdriver.Remote( desired_capabilities=desired_capabilities, - command_executor="https://%s:%s@hub.browserstack.com/wd/hub" % (BROWSERSTACK_USERNAME, BROWSERSTACK_ACCESS_KEY) + command_executor="https://%s:%s@hub.browserstack.com/wd/hub" % (BROWSERSTACK_USERNAME, BROWSERSTACK_ACCESS_KEY), + keep_alive=True ) def after_feature(context, feature): diff --git a/requirements.txt b/requirements.txt index 6a00679..7385b0a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ behave browserstack-local paver -selenium +selenium==3.141.0 psutil