This was one of my projects maintained while I was in Planit bootcamp training. Due to the very limited number in Planit Git, I have to move it here.
I can use this script as a template for all my automation test script in Java.
- First we need to set the path for Java JDK and Maven in system variables;
- Click here to find more details
- Then we need to go to the directory that contains our pom.xml file and Run
mvn install
;- Click here to find more details
Update the "groupId" and the "artifactId" in "pom.xml" file, as incorrect value for those XML elements will lead to failure.
Click here to find more about POM.
One major drawback of this design is that it can only run in windows, as I use a webdriver that is only compatible with browsers in windows. Same drawback also exists in the design of "DemoWorkShopTestScript" and "JUnit-Cucumber-Demo".
Another major drawback of this design is that I need to manually update the webdriver file whenever my browser is updated to a new version.
Important TODO: the use of "this" seems to be wrong in my "HomePage.java" and "LoginPage.java". I need to fix it when I have time.