An open API service indexing awesome lists of open source software.

https://github.com/mikesir87/selenium-maven


https://github.com/mikesir87/selenium-maven

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Selenium Maven test helper

## Introduction

This repo demonstrates the ability of being able to use a simple AbstractRemoteSeleniumTest class with some Maven configuration to run Selenium test cases on any available Selenium Remote Server.

## Usage

To run the test cases, one only needs to run Maven with the following profile:

mvn -P selenium-remote

### Configuration options

The available configuration options are available at the command-line for Selenium test case execution:

OptionDescriptionOptionsDefault

selenium.hostthe host that should be used when connecting to the Selenium Remote ServerAny host name or IP Addresslocalhost
selenium.portthe port that should be used when connecting to the Selenium Remote ServerAny number4444
selenium.browsersthe browsers that should be launched during the test case execution. Value is space-limited list of desired browsers
chrome ie firefox opera safari
chrome firefox

## Examples

To run Selenium test cases using a Selenium Remote Server running on your own local machine:

mvn clean install -P selenium-remote

To run Selenium test cases on a remote server at "seleniumRunner.local" and port 1234:

mvn clean install -P selenium-remote -Dselenium.host=seleniumRunner.local -Dselenium.port=1234

To run Selenium test cases on my local machine, but on Internet Explorer, Chrome, and Firefox:

mvn clean install -P selenium-remote -Dselenium.browsers="ie chrome firefox"