This repository contains the example code for running tests web and mobile automation tests using cucumber.
- Application under Test: Amazon Website and Amazon Android app.
Steps:
- Navigate to
https://www.amazon.in
/ Open the amazon app in mobile device. - Search for "Samsung Galaxy S20" mobile phone.
- On the Search result page, save the title and price of the product.
- On the Search result page, click on the first result.
- In the product detail page, verify the title and price.
- In the product detail page, click on the "Add to Cart" button.
- In the side popup window, click on the "Cart" button.
- Check for title and price in the shopping cart.
Programming Language: Java Test Framework: Cucumber JVM, Selenium WebDriver and Appium.
- Right-click on the feature file in the
src\test\resources\features
folder and selectRun Feature:
Mobile tests are currently not in working state due to challenges in getting the locators.