Skip to content

Commit

Permalink
added onprem test, modified keywords.robot (#10)
Browse files Browse the repository at this point in the history
* added onprem test, modified keywords.robot

* readme changes

* Update README.md

Co-authored-by: Princeton Baretto <[email protected]>
  • Loading branch information
adarshTS and princebaretto99 authored Jan 9, 2023
1 parent 1520ce9 commit 82c453a
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 10 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion resources/conf/runners/keywords.robot
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Library Library.py
Library SeleniumLibrary

*** Keywords ***
Start Onprem Test
Start Test
Open Browser https://bstackdemo.com/

Get Password From CSV
Expand Down
2 changes: 1 addition & 1 deletion src/test/suites/e2e/e2e.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/test/suites/login/loginTests.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/test/suites/offers/offers_test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/test/suites/product/filter_test.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down
6 changes: 3 additions & 3 deletions src/test/suites/user/user_tests.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 82c453a

Please sign in to comment.