PR from develop to review branch for Reviewing#2
Conversation
README.md
Outdated
| | Module | Test name | Description | | ||
| | --- | --- | --- | | ||
| | E2E | E2E Test | This test scenario verifies successful product purchase lifecycle end-to-end. It demonstrates the [Page Object Model design pattern](https://www.browserstack.com/guide/page-object-model-in-selenium) and is also the default test executed in all the single test run profiles. | | ||
| | Login | Check if Signin opens on clicking on favourites nav item | This test verifies the login workflow with different types of valid login users. | | ||
| | Login | Check Login with locked_user | This test verifies the login workflow error for a locked user. | | ||
| | Offers | Set GPS location to Mumbai and check offers | This test mocks the GPS location for Mumbai and verifies that the product offers applicable for the Mumbai location are shown. | | ||
| | Product | Apply Apple And Samsung Filter | This test verifies that the Apple products are only shown if the Apple vendor filter option is applied. | | ||
| | Product | Apply 'Lowest to Highest' Order By Filter | This test verifies that the product prices are in ascending order when the product sort "Lowest to Highest" is applied. | | ||
| | User | Check Login with image_not_loading_user | This test verifies that the product images load for user: "image_not_loading_user" on the e-commerce application. Since the images do not load, the test case assertion fails.| | ||
| | User | Check Order in existing_orders_user | This test verifies that existing orders are shown for user: "existing_orders_user" | |
There was a problem hiding this comment.
if you are allowing the test execution based on test suites, please update the module name in the table to the exact value required to run the single test.
if you are allowing the test execution based on exact test names, please update the test name in the table to the exact value required to run the single test.
In the sections below, the same will be referred
for e.g.
where, the argument 'test-name' can be any RobotFramework scenario name configured in this repository.
E.g. "Check Login with locked_user", "E2E Test", "Apply 'Lowest to Highest' Order By Filter" or any of the other test scenario names, as outlined in About the tests in this repository section.
[ Not sure the names are right above, you must verify ]
|
|
||
| ${local_instance}= start_local ${access_key} | ||
|
|
||
| Open Browser ${application_endpoint} remote_url=http://${user}:${access_key}@hub-cloud.browserstack.com/wd/hub desired_capabilities=${caps} |
There was a problem hiding this comment.
update http://${user}:${access_key}@hub-cloud.browserstack.com/wd/hub to
https://hub-cloud.browserstack.com/wd/hub
Note the usage of https.
the automate credentials I believe has been provided in caps now.
|
|
||
| ${local_instance}= start_local ${access_key} | ||
|
|
||
| Open Browser ${application_endpoint} remote_url=http://${user}:${access_key}@hub-cloud.browserstack.com/wd/hub desired_capabilities=${caps} |
There was a problem hiding this comment.
also define ${remote_url} at the start of the function
src/test/suites/e2e/e2e.robot
Outdated
| Login From CSV fav_user | ||
|
|
||
| Wait Until Element Is Visible xpath=//p[text() = 'iPhone 12']/../div[@class = 'shelf-item__buy-btn'] | ||
| Click Element xpath=//p[text() = 'iPhone 12']/../div[@class = 'shelf-item__buy-btn'] |
There was a problem hiding this comment.
div[id="1"] > div[class="shelf-item__buy-btn"] if the above doesn't work in Robot.
src/test/suites/e2e/e2e.robot
Outdated
| Wait Until Element Is Visible class=float-cart__close-btn | ||
| Click Element class=float-cart__close-btn | ||
|
|
||
| Click Element xpath=//p[text() = 'iPhone XS']/../div[@class = 'shelf-item__buy-btn'] |
There was a problem hiding this comment.
div[id="7"] > div[class="shelf-item__buy-btn"] if the above doesn't work in Robot.
src/test/suites/e2e/e2e.robot
Outdated
| Wait Until Element Is Visible class=float-cart__close-btn | ||
| Click Element class=float-cart__close-btn | ||
|
|
||
| Click Element xpath=//p[text() = 'Galaxy S20']/../div[@class = 'shelf-item__buy-btn'] |
There was a problem hiding this comment.
div[id="10"] > div[class="shelf-item__buy-btn"] if the above doesn't work in Robot.
No description provided.