Seleniumhq Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID seleniumhq Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
0.4 (archives)
Jul 16, 2010
1.366
Source Code
Issue Tracking
Maintainer(s)
Subversion
Open Issues
Pascal Martin (id: pascal_martin)
Usage Installations 2014-Jul 2015
2014-Aug 2043
2014-Sep 2097
2014-Oct 2136
2014-Nov 2108
2014-Dec 2123
2015-Jan 2191
2015-Feb 2201
2015-Mar 2285
2015-Apr 2281
2015-May 2252
2015-Jun 2381

This plugin allows you to run and load HTML Selenese suite result generate by Selenium Server from Seleniumhq.
Jenkins will generate the trend report of test result.

The Seleniumhq plug in can be downloaded here.

Configuring the Seleniumhq Plugin

Global config

  1. Configure Seleniumhq test runner (selenium-server.jar path) (via Manage Jenkins -> Configure System)

Job config

  1. Install the selenium plugin (via Manage Jenkins -> Manage Plugins)
  2. Configure your project's build script to generate Seleniumhq HTML reports (See below for examples with Ant Command, batch Command and Jenkins build step)
  3. Enable the "Publish Selenium Report" publisher
  4. Specify the test file to load
  5. You can use '/' which will be the job workspace folder. The result file should be generated in this folder. You can click on the link "the workspace root" below to see if the report is available in the workspace folder.

Configuring build tools

Here are the configuration details for common build tools. Please feel free to update this with corrections or additions. 

Build Step in Jenkins

You can lauch the HTML Selenese suite with selenium-server with the build step provided by this plugin.
This step makes exactly the same as Batch command (See below) but the plugin offers the possibility to enter an PATH or an URL for the suiteFile parameter.

  1. Add a build step (SeleniumHQ htmlSuite Run) in your job configure page
  2. Fill the mandatory field

  3. browser ex.: *iexplore, *firefox, etc.
  4. startURL: URL of the application to be tested
  5. suiteFile: The suite file with all the test cases. On Selenium IDE you can save a Test Case and a Test Suite. Save both and assign the test suite here. The file name might be needed to don't have spaces.
  6. resultFile: Use the full path with the report name: Ex: C:\Program Files\Jenkins\jobs\ApplicationToTest\workspace\Result.html . The result should be saved on workspace folder. You can have a folder inside to organize. This folder should be same as the Publish Selenium Report will read the report.
  7. other: port information an other options used on selenium server.

Batch command

  1. Add a build step (Execute Windows batch command) in your job configure page
  2. Add command to lauch HTML Selenese suite with selenium-server
    java -jar selenium-server.jar -htmlSuite "*firefox" http://www.google.com
    "c:\absolute\path\to\my\HTMLSuite.html" "%WORKSPACE%\results.htm"
    


Ant

We've also provided an Ant task to make it easier to launch the tests. Run it like this: Seleniumhq doc

<taskdef resource="selenium-ant.properties">
    <classpath>
        <pathelement location="selenium-server.jar"/>
    </classpath>
</taskdef>
<selenese
    suite="c:\absolute\path\to\my\HTMLSuite.html"
    browser="*firefox"
    results="c:\absolute\path\to\my\results.html"
    multiWindow="true"
    timeoutInSeconds="900"
    startURL="http://www.google.com" />

Result

Build summary

Build Report

Project summary

Project Report (Last build selenium report) P.S : If you need save all build report use "Archive the artifacts" in project config

Version History

Version 0.5 (upcoming)

Version 0.4 (2010-07-16)

Version 0.3 (2010-07-10)

  • fix http 500 error thrown whilst saving a job on Jenkins 1.362+ JENKINS-6775
  • Add possibility to use status of test commands instead of suites to determine UNSTABLE/FAILURE/SUCCESS JENKINS-6837
    A checkbox has been added in advance propretie of publisher

Version 0.2 (2009-05-28)

  • Add support for build on slave (Thank to Alexis)
  • Add relative paths support for suite file (relative to the workspace) (Thank to Alexis)
  • New icone (Thank to Erwan)

Version 0.1 (2009-01-23)

  • Initial release. 

Labels

Edit
plugin-builder plugin-builder Delete
plugin-report plugin-report Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Add Comment