Selenium with Java Testing a Website
This video shows the Eclipse IDE running a web test written with Selenium, Java, JUnit, Log4j2, Maven and other packages. It tests against my own website: schorrmedia.com which is also known as schorrmedia.com/wordpress
The tests are run with JUnit, so each test stands on its own and can be run independently of the others. Each test launches a fresh instance of FireFox with Selenium WebDriver. The tests use Maven and a Maven pom.xml file to specify dependencies. The entire suite was written in and runs with Eclipse on a Windows 7 PC.
The source code can be viewed on GitHub at: https://git.io/vC7wp
This demo was done with inverted color on a Windows 7 machine. I’m using inverted color a lot lately because it’s easier on the eyes.
The script also includes full Maven Surefire site test result reporting which I hope to share in a future video. To read more about Selenium, see: www.seleniumhq.org