diff --git a/README.md b/README.md index 5d27e95..2078254 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,30 @@ The Selenium tests in this repo are run on BrowserStack real device/browser usin --- +## Running your tests on an On-Prem Browser + +### Running a single test on an On-Prem Browser + + To execute a single test run the below command: + ```sh + robot /path/to/test.robot + ``` + For eg: + ```sh + robot ./src/test/suites/e2e/e2e.robot + ``` + +### Running parallel tests on On-Prem Browsers + + To execute a single test run the below command: + ```sh + pabot path/to/testsuiteFolder + ``` + For eg: + ```sh + pabot ./src/test/suites + ``` + ## Running Your Tests on Browserstack ## Prerequisites to run your tests on Browserstack diff --git a/resources/conf/runners/keywords.robot b/resources/conf/runners/keywords.robot index 7cc52d7..e41a598 100644 --- a/resources/conf/runners/keywords.robot +++ b/resources/conf/runners/keywords.robot @@ -3,7 +3,7 @@ Library Library.py Library SeleniumLibrary *** Keywords *** -Start Onprem Test +Start Test Open Browser https://bstackdemo.com/ Get Password From CSV diff --git a/src/test/suites/e2e/e2e.robot b/src/test/suites/e2e/e2e.robot index c804c0a..0ba8afa 100644 --- a/src/test/suites/e2e/e2e.robot +++ b/src/test/suites/e2e/e2e.robot @@ -15,7 +15,7 @@ Resource ${CURDIR}/../../../app/pages/Favourites.robot *** Test Cases *** #Test Case 8 E2E Test - Start Onprem Test + Start Test Login From CSV fav_user diff --git a/src/test/suites/login/loginTests.robot b/src/test/suites/login/loginTests.robot index 26aca8e..22726af 100644 --- a/src/test/suites/login/loginTests.robot +++ b/src/test/suites/login/loginTests.robot @@ -15,7 +15,7 @@ Resource ${CURDIR}/../../../app/pages/Favourites.robot *** Test Cases *** #Test Case 3 Check if Signin opens on clicking on favourites nav item - Start Onprem Test + Start Test Click On Favourites @@ -26,7 +26,7 @@ Check if Signin opens on clicking on favourites nav item #Test Case 4 Check Login with locked_user - Start Onprem Test + Start Test Login.Login locked_user testingisfun99 diff --git a/src/test/suites/offers/offers_test.robot b/src/test/suites/offers/offers_test.robot index ed05904..7bc21a7 100644 --- a/src/test/suites/offers/offers_test.robot +++ b/src/test/suites/offers/offers_test.robot @@ -15,7 +15,7 @@ Resource ${CURDIR}/../../../app/pages/Favourites.robot #Test Case 9 Set GPS location to Mumbai and check offers - Start Onprem Test + Start Test Set Location 19.043192 72.86305240000002 diff --git a/src/test/suites/product/filter_test.robot b/src/test/suites/product/filter_test.robot index 1d88610..040cb37 100644 --- a/src/test/suites/product/filter_test.robot +++ b/src/test/suites/product/filter_test.robot @@ -16,7 +16,7 @@ Resource ${CURDIR}/../../../app/pages/Favourites.robot # Test Case 1 Apply 'Lowest to Highest' Order By Filter - Start Onprem Test + Start Test Select Lowest To Highest Filter @@ -27,7 +27,7 @@ Apply 'Lowest to Highest' Order By Filter # Test Case 2 Apply Apple And Samsung Filter - Start Onprem Test + Start Test ${total_elements_before}= Get Total Products diff --git a/src/test/suites/user/user_tests.robot b/src/test/suites/user/user_tests.robot index fac24f5..4b03e78 100644 --- a/src/test/suites/user/user_tests.robot +++ b/src/test/suites/user/user_tests.robot @@ -16,7 +16,7 @@ Resource ${CURDIR}/../../../app/pages/Favourites.robot # Test case 5 Check Login with image_not_loading_user - Start Onprem Test + Start Test Login.Login image_not_loading_user testingisfun99 @@ -27,7 +27,7 @@ Check Login with image_not_loading_user # Test Case 6 Check Order in existing_orders_user - Start Onprem Test + Start Test Login.Login existing_orders_user testingisfun99 @@ -38,7 +38,7 @@ Check Order in existing_orders_user # Test Case 7 Add fav and check fav count - Start Onprem Test + Start Test Login.Login existing_orders_user testingisfun99