This repository primarily contains tests written in two styes viz. using the traditional approach with Selenium (Java) + TestNG and using Applitools Selenium JAVA SDK.
- The path for Chromedriver is set in your system. In
TradtionalTests.java
, modify the line #41 to reflect the path from your system. - Certified on Chrome 78 and the corresponding Chromedriver https://chromedriver.chromium.org/downloads.
- Ensure TestNG plugin is enabled for your workspace so that you can run them as TestNG test/suite from your IDE, or else you can run them using the command line too.
- Clone the repository.
- Open the project in your favorite editor (Eclipse, IntelliJ IDEA).
- If using Eclipse, select the project in Project Explorer and click Project -> Clean.
- To run the complete test suite, right click on the
testng.xml
-> Run As -> TestNG Suite. Otherwise, run the Traditional and Visual AI tests, by right clicking on theTraditionalTests.java
andVisualAITests.java
respectively -> Run As -> TestNG Test (Feel free to use the shortcut when you figure it out). - Observe that the Chrome browser opens up and all methods annotated as @Test start executing.
- The test results summary will be displayed in the console. Alternatively, it can also be viewed in the browser by accessing the html files created in the test-output directory.
- Navigate to Applitools dashboard to view the results.
- For both the approaches, I have created a TestNG test (@Test) for each of the 5 tasks mentioned on the Hackathon instructions page.
- For Visual AI tests, I have captured both baseline and checkpoint screenshots and annotated bugs and used Layout region wherever appropriate.