e-commerce Final Project as part of automated testing and BDD training.
Develop two end-to-end tests that use Cucumber and Selenium WebDriver.
The test will login to an e-commerence site as a registered user, purchase an item of clothing, apply a discount code and check that the total is correct after the discounnt & shipping is applied.
The test case will login to an e-commerece site as a registered user, purchase an item of clothing and go through checkout. It will capture the order number and check the order is also present in the 'My Orders' section of the site.
- Java 11 is required to run the tests.
- Use git clone https://github.com/maciejfec2i/eCommerceFinalProject.git to clone the directory.
- Install all the dependancies via the pom.xml file.
- Open the loginDetails.csv file and replace "your username/email" with a valid username or email, and replcae "your password" with a valid password.
If Maven is installed, the test can be ran from the command line using mvn clean test.
To test using firefox or edge use mvn clean test -Dbrowser=firefox or mvn clean test -Dbrowser=edge