The instructions for running the Online Shopping Store can be found here https://github.com/zhulinn/SpringBoot-Angular7-Online-Shopping-Store#how-to--run
To run Selenium:
- Import the CucumberSelenium project
- Download the appropriate WebDriver for your browser https://www.selenium.dev/downloads/#:~:text=Platforms%20Supported%20by%20Selenium
- Put the WebDriver in CucumberSelenium/src/test/resources/Drivers/ (note: If you are not using ChromeDriver, you will need to update the StepDefinitions classes accordingly)
- Make sure the Online Shopping Store application is running locally on your machine
- Right-click the CucumberSelenium project and do Run As JUnit Test
To generate Maven Cucumber Report (Windows):
- Make sure the Online Shopping Store application is running locally on your machine
- In your terminal, change to the CucumberSelenium directory
- Run "mvn clean verify" without any quotes and the report will be generated in target/cucumber-report-html/cucumber-html-reports/
Angular test
- DownLoad the frontend project in visual studio
- Download node 16 version
- In visual studio terminal ==> npm install
- ng serve
- to test the file ==> ng test