-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the SeleniumExample wiki!
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.
In order to run the example you will to install Maven and
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.
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.
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
- TODO