Selenium example in Java
This is a project created for discussing some problems and recommended options described in the blog(Work in progress) This is using Selenium. This project tests some of the functionalities of the active admin demo app. This app is hosted as a Java WAR (with embedded Jetty).
Running this example
The tests are run on Chrome by default.
Prerequisites
This example requires the following softwares to run.
- Java 1.7 or above
- Chrome
Setting up the System Under Test (SUT)
- Download activeadmin-demo.war
- Bring up the SUT by executing the below command
java -jar activeadmin-demo.war
- The SUT should now be available at http://localhost:8080/
Setting up Maven
Run specs
If you already have Maven installed, you can execute specs as mvn test
This uses Chrome as default browser for specs execution. Make sure Chrome is installed in your machine and chromedriver is in PATH.
Copyright
Copyright 2016, ThoughtWorks Inc.