From adbe146ac96c04c77bc5f324173d2f2ddb2f9743 Mon Sep 17 00:00:00 2001 From: Neha Agarwal Date: Thu, 16 Mar 2023 20:13:09 +0530 Subject: [PATCH 1/5] Added keep_alive --- features/environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/features/environment.py b/features/environment.py index 1995b5f..88f6e1b 100644 --- a/features/environment.py +++ b/features/environment.py @@ -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): From 3d09387d14b8e655cd7e29aef7c2101c1906ccca Mon Sep 17 00:00:00 2001 From: Neha Agarwal Date: Fri, 17 Mar 2023 14:12:45 +0530 Subject: [PATCH 2/5] Added selenium version --- .gitignore | 1 + requirements.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ab8c1e0..2a6252d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ local.log **.pyc +node_modules/ 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 From 6f97bbb21a3e2d81fe491de39293700a0c57656a Mon Sep 17 00:00:00 2001 From: Neha Agarwal Date: Mon, 20 Mar 2023 12:29:32 +0530 Subject: [PATCH 3/5] Correction --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2a6252d..ab8c1e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ local.log **.pyc -node_modules/ From 818f9f71be0546230e9f7f0cf3c3c50dd206ac1c Mon Sep 17 00:00:00 2001 From: Neha Agarwal Date: Thu, 23 Mar 2023 16:38:07 +0530 Subject: [PATCH 4/5] Made parallel test as default --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) From c497c131a546113d30e4cac51cba8636a2b517e4 Mon Sep 17 00:00:00 2001 From: Neha Agarwal Date: Wed, 29 Mar 2023 17:16:01 +0530 Subject: [PATCH 5/5] Add source --- features/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/environment.py b/features/environment.py index 88f6e1b..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]