- Install the latest stable version of java.
Download link: https://www.java.com/en/download/
- Install the latest stable version of Node.js (NPM will be defaulted).
Download link: https://nodejs.org/en/download/
- Install the latest version of chrome browser.
Download link: https://www.google.com/chrome/
- Install the latest version of git.
Download link: https://git-scm.com/downloads/
- Run the command "node --version" in the terminal to verify the node installation
- Run the command "npm --version" in the terminal to verify the npm installation
- Run the command "java --version" in the terminal to verify the java installation
- Run the command "git --version" in the terminal to verify the git installation
Clone the git-hub repository to your local machine,
Reference link: https://docs.github.com/en/free-pro-team@latest/github/creating-cloning-and-archiving-repositories/cloning-a-repository/
Goto Terminal and Run the command "npm install" to install all the node module dependencies
Goto Explorer --> NPM SCRIPTS--> Click on the script "test" (Run) button to run e2e test script
Goto Terminal and Run the following command,
"npm run test" to run the e2e automated test pack
- The code for the wdio config files are maintained under the root directory
- The code for the base file is maintained under the test/config directory
- The test scenarios for the feature files are maintained under the test/features directory
- The code for the page wise object repositories are maintained under the test/pageObjects directory
- The code for the scenario step implementaions are maintained under the test/stepDefinitions directory
- The contents validation for the test scripts are maintained under the test/contents directory
The html report will be generated under the test/target directory. To view cucumber html report open "test/target/index.html" in a browser
The test execution logs will be generated under the test/logs directory