Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sim51/maven-testrunner-plugin

A maven to plugin to launch selenium test
https://github.com/sim51/maven-testrunner-plugin

Last synced: 29 days ago
JSON representation

A maven to plugin to launch selenium test

Awesome Lists containing this project

README

        

=============================================
Description
=============================================
A maven plugin that help to do selenium test.
This module is a port of selenium testrunner of playframework. It use the same technology, and there is some code in commons...

=============================================
Why a new Selenium plugin ?
=============================================
* this module is headless, so it can be run on a server
* this module embeds the testrunner selenium server
* you can test your selenium script directly on your develoment 's plateform (no need of a selenium server)

=============================================
How to use it ?
=============================================
* Add this repository into your pom.xml :

logisima-releases
https://github.com/logisima/maven-repository/releases

* Add this to your build phase into your pom.xml

logisima
maven-testrunner-plugin
1.3

http://localhost:8080/monApp


Where "http://localhost:8080/monApp" is the url of your application to test.

* Create your selenium script using the same syntax as play! (@see http://www.playframework.org/documentation/1.2.3/cheatsheet/tests) :
- your selenium script must be into the ./src/test/selenium folder ! (@see plugin configuration)
- your selenium script must have name like *.html

* then you can use those two commands :
- mvn testrunner:run : launch the testrunner server (by default port is 7777), so if you open your browser at http://localhost:7777/ you will see the list of yours selenium script and run it.
- mvn testrunner:auto-run : launch in command line all your selenium test, and if one failed, the build failed !

==============================================
Plugin configuration
==============================================
* baseApplicationUrl : the url of the application to test.
* port : the port of the selenium server that the plugin start (default: 7777)
* seleniumSourceDirectory : folder where you put yuour selenium script. By default it's ./src/test/selenuim

Moreover, the plugin is base on the following maven variable :
* ${project.build.directory}