https://github.com/pho3nyxx/luma-automation-test
https://github.com/pho3nyxx/luma-automation-test
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pho3nyxx/luma-automation-test
- Owner: Pho3nyxX
- Created: 2022-11-24T02:28:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T16:01:57.000Z (over 2 years ago)
- Last Synced: 2025-01-30T17:59:23.376Z (4 months ago)
- Language: JavaScript
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LUMA Website Test Automation
This is a WebDriverIO Test Automation project for the LUMA website, which can be found at https://magento.softwaretestingboard.com/. It carries out the following workflows:
* Signup
* Adding a Product to your Cart
* Purchasing a Product
* Verify Purchase in Order HistoryAlong with Data-Driven Tests, Negative Test/Unhappy Paths are included. It is also set up for testing across multiple browsers.
---
## Instructions
1. Clone the repository
2. Navigate to the project's root directory in your Terminal.
3. Enter the command **npm install** to install the ***dependencies***.
4. Enter the given command below to run tests.
---## Commands
* To execute individual test, use
```bash
npm run test --spec < path >
```
Examples
```bash
npm run test --spec.\test\specs\addToCart.js
```
```bash
npm run test --spec.\test\specs\checkoutProduct.js
```
```bash
npm run test --spec.\test\specs\signup.js
```
```bash
npm run test --spec.\test\specs\verifyPurchase.js
```
* To execute all test, use
```bash
npm run test
```
---## Cross Browser Testing
All tests are run in Chrome and firefox by default, but they can be configured to run in either browser only. Here's how to do it:
* Open the ***wdio.conf.js file***.
* Go to line 52 - the capabilities section
* Comment the entire object containing the browser you do not want to test on
* Save the file and execute it once more for it to run in the Firefox browser.Do this interchangeably for preferred browser.