Exercises done using automationpractice.com.
Following are the Exercises completed:
- Add any product to cart and complete the checkout journey by placing an order : CompleteShoppingTest
- Fill in the Contact us form and Submit it. Submit the form without entering email and verify if the error message shown is "Invalid email address." : ContactUsFormTest
- Subscribe to the newsletter : SubscribeToNewsletterTest
- On search results page, verify any one sorting option : SearchResultPageTest
How to run:
Import the project into IDE (intelliJ IDEA in my case) {You might have to select maven as the project type}
[Ignore if Mac] Download and copy chromedriver to driver directory {Download host specific chromedriver } Please correct the name of driver in test files.
Right click on AllTests.xml and select Run.