This is a Maven project that has Cucumber tests that validate Universal Pictures box office data using the following technologies:
- Java 1.8
- Maven
- TestNG
- Gson
- Cucumber
- Selenium
- WebDriver
The test grabs box office data from a dynamic web table, converts it to a JSON structure, and performs validations based on the feature files. The test shows the behavior of TestNG and Cucumber during pass and fail states. There are 2 scenarios with 12 steps, one will fail as expected to show the test failures in the report.
- Install Java 1.8 or higher.
- Install Maven.
- Clone this repository.
- For Mac and Linux users, open up Terminal/Command Prompt, navigate to this project, and then execute the command, "sudo chmod a+x chromedriver" (for Mac) or "sudo chmod a+x chromedriver_linux" (for Linux).
- Open up Terminal/Command Prompt, navigate to this project, and then execute the command, "mvn clean test".
- The reports can be found at target/cucumber-html-report/index.html.