Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/sim51/maven-testrunner-plugin
- Owner: sim51
- Created: 2011-09-08T09:49:15.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-20T16:41:10.000Z (about 13 years ago)
- Last Synced: 2024-10-14T13:52:19.470Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.75 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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/selenuimMoreover, the plugin is base on the following maven variable :
* ${project.build.directory}