JUnit is one of the leading frameworks for Java-based applications. In recent times, it has also been used to perform automation testing. Test automation involves writing test cases with JUnit annotations and Selenium Webdriver to simulate user interactions with a website’s UI.
- Intellij Idea
- JDK-11
- Gradle
- JUnit
-
- Brevity: A report should be short and concise. It should reveal the total no. of successes as well as failures.
-
- Trackability: Captures all the footprints that could lead to the root cause of a failure.
-
- Traceability: It must provide the ability to review the following. Historical data for test cases and failures Age of a particular defect
-
- Sharable: It should support a format that you can share through email or integrate with CI tools like Jenkins/Bamboo.
-
- Test coverage: It should highlight the test coverage for the following. Test coverage of the module under test. Test coverage of the application under test.
- 1.You must have install jdk 1.8 or above
- 2.You must have set JAVA_HOME and GRADLE_HOME Steps:
- 3.Clone the project
- 4.Open terminal inside the project folder
- 5.Give following command:
- Gradle clean test