Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rtyler/jenkins-selenium-tests
Selenium Tests for the Jenkins CI Server
https://github.com/rtyler/jenkins-selenium-tests
Last synced: 2 months ago
JSON representation
Selenium Tests for the Jenkins CI Server
- Host: GitHub
- URL: https://github.com/rtyler/jenkins-selenium-tests
- Owner: rtyler
- Created: 2011-09-30T06:01:31.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-08-01T00:52:17.000Z (over 12 years ago)
- Last Synced: 2024-05-01T22:48:54.414Z (8 months ago)
- Language: Ruby
- Homepage: https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Test+Cases
- Size: 300 KB
- Stars: 18
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Selenium tests for Jenkins
This is a project to flesh out some of the [manual test cases for
Jenkins LTS](https://wiki.jenkins-ci.org/display/JENKINS/LTS+1.409.x+RC+Testing) in an automated fashion.Right now the project is in a very early state, and is in dire need of some
[Page Objects](https://code.google.com/p/selenium/wiki/PageObjects) for the
more standard components of Jenkins such as the:* Root actions link listing (top left sidebar)
* New Job control
* Various plugin configuration sections on the `job/configure` page
* Node configuration
* etcDrop me a line (`rtyler` on [Freenode](http://freenode.net)) if you're
interested in helping out## Current test matrix
The tests cases that have been completed or nede to be completed can be found
on the [Selenium Test
Cases](https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Test+Cases) page on
the Jenkins wikiFor historical reasons, there are older tests that are written for `test/unit` (in the `test` directory)
and newer tests that are written for cucumber (in the `features` directory.)## Running tests
To run the test, `JENKINS_WAR=path/to/your/jenkins.war bundle exec rake`. This will run both
the older `test/unit` tests as well as cucumber tests in one go.There is a bit of a delay since we bring up Jenkins for every single test, with
it's own sandboxed workspace as well:![](http://strongspace.com/rtyler/public/selenium-jenkins.png)
### Choosing the JenkinsController
This test harness has an abstraction called `JenkinsController` that allows you to use different logic
for starting/stopping Jenkins. We use this to reuse the same set of tests for testing stand-alone `jenkins.war`
to testing packages.See [the source code](tree/master/lib/controller/) for the list of available controllers. If you see a line like
`register :remote_sysv`, that means the ID of that controller is `remote_sysv`.To select a controller, run the test with the 'type' environment variable set to the controller ID, such as:
`type=remote_sysv bundle exec rake`. Controllers take their configurations from environment variables. Again,
see the controller source code for details until we document them here.### Running one test
You can run a single cucumber test by pointing to a test scenario in terms of its file name and line number like
`bundle exec cucumber features/freestyle_build.feature:6`If someone knows how to run a single `test/unit` test case, please update this document.