- This repository is dedicated to the automated testing functionalities on Amazon.com using the Playwright framework.
- The test suite covers various scenarios.The primary test cases include:
Test Objective | Expected Result |
---|---|
Go to Amazon.com | Validate Login |
Product Checkout | Should be able to add product to cart and perform checkout action |
Search Functionality | Validate Search Result |
Wishlist Functionality | Validate Product Wishlist functionality |
- Open a terminal.
- Navigate to your project directory using the
cd
command - Install Playwright using npm:
npm init playwright@latest
That's it! You have successfully installed Playwright in your project. You can explore the Playwright documentation for more advanced features and examples: https://playwright.dev/docs/intro
- By default tests will be run on all 3 browsers, chromium, firefox and webkit using 3 workers. This can be configured in the playwright.config file.
- Tests are run in headless mode meaning no browser will open up when running the tests.
npx playwright test
- If you want to run your Playwright script in headed mode, which means you can see the browser UI while the tests are running, you can do the following
npx playwright test --headed
- To Validate Login Test Case run the below command in terminal
npx playwright test ./tests/validate_login.spec.js --project=chromium --headed
- To run a Playwright script across all browsers, you can use below command in terminal
npx playwright test ./tests/validate_login.spec.js --headed
- View Test Results:
npx playwright show-report
- To Product Checkout Test Case run the below command in terminal
npx playwright test ./tests/product_checkout.spec.js --project=chromium --headed
- To run a Playwright script across all browsers, you can use below command in terminal
npx playwright test ./tests/product_checkout.spec.js --headed
- View Test Results:
npx playwright show-report
- To Search Functionality Test Case run the below command in terminal
npx playwright test ./tests/search_functionality.spec.js --project=chromium --headed
- To run a Playwright script across all browsers, you can use below command in terminal
npx playwright test ./tests/search_functionality.spec.js --headed
- View Test Results:
npx playwright show-report
- To Wishlist Functionality Test Case run the below command in terminal
npx playwright test ./tests/wishlist_functionality.spec.js --project=chromium --headed
- To run a Playwright script across all browsers, you can use below command in terminal
npx playwright test ./tests/wishlist_functionality.spec.js --headed
- View Test Results:
npx playwright show-report
Amazon Help manual: https://docs.google.com/document/d/1SPet-WQnVE2cXd9Axo49ntfmBhWIokUXKj4WhFHNaIY/edit?usp=sharing
rtPanel Test cases: https://docs.google.com/spreadsheets/d/1HUwDLhzqC7ah5Kczcta655QG18KT6Bbbx7mC_db2m30/edit?usp=sharing
rtPanel UI Bug🐛: https://github.com/Dhruvil0302/QA-Assignment-Task/issues