Skip to content
Chris Caspanello edited this page Nov 5, 2015 · 1 revision

Welcome to the SeleniumExample wiki!

Goal

Give developers a working example on how to use Selenium. Examples highlight the following:

  • Ability to run web tests in a Continuous Integration environment while still being able to debug tests in Netbeans.
  • Perform tests across multiple browsers in parallel.
  • Demonstrate use of the PageObject model to encapsulate page driving logic and reduce the need to refactor tests.
  • Minimize the time it takes to run tests by asserting static content once and minimizing page loads.

Required Software

In order to run the example you will to install Maven and

Maven

Go to the Maven website (http://maven.apache.org/download.cgi) and follow the simple install instructions. This is as easy as unzipping the binary to a directory and adding it to your operating system path.

Glassfish

Go to the Glassfish website (https://glassfish.java.net/download.html) and download Glassfish4 Full profile. Unzip it to the C drive. Note: It is possible to unzip it anywhere; but if so changes will need to be made to the glassfish directory property located in the root pom.xml file.

Command Line Excecution

Running from the command line is very simple. Simply run: mvn clean install -Pci This command will do the following:

  • Compile source and test files
  • Run unit tests
  • Create a new Glassfish domain
  • Start the domain
  • Deploy built application
  • Run Integration Tests

Debugging with Netbeans

  • TODO
Clone this wiki locally