Features

Jenkins Automated Testing

Jenkins is a Java-based, open-source continuous integration (CI) system.

We've created a Plugin for Jenkins with lots of features, more information on this page

With Jenkins you can run your tests at the frequency you desire.
You could for example run your Selenium tests every hour, or after each xx commits to your version control system.

You can download Jenkins from the official Jenkins page.

Below you will find a tutorial on how to integrate Jenkins with Selenium. We'll set up a basic example where a simple Selenium test will run on Jenkins and the TestingBot Selenium grid.
Once you've followed this setup, you'll be able to run your Selenium tests on our remote server.

1. Specify API credentials

To identify to our Selenium grid, you need to specify your API Key and Secret.

Download credentials file

Download the credential file and copy it to your home directory (~/.testingbot) on your Jenkins machine.

2. Set up a new job

set up a new Jenkins job

Click the "New Job" button from the main Jenkins dashboard.

3. Specify job settings

specify job settings

Specify a name for the job and pick the option "Build a free-style software project" in the Jenkins configuration.

4. Git settings

git settings

Pick Git for Source Code Management and enter the repository URL for this demo:
git://github.com/testingbot/Jenkins-Demo.git
This means Jenkins will each time fetch the latest code from our GitHub repository and run the tests from that code.

5. Build Step

build step

In the next step we'll specify how Jenkins needs to build or test project.

Our test project contains a build.xml, so we can use Ant to build the project. Pick Ant from the build menu.

ant

The Ant target is: test

6. Publish JUnit results

publish junit results

Make sure to publish the JUnit test results report to test-reports/*.xml

7. Run Jenkins job

run Jenkins job

You are now ready to run your first Jenkins job. Click the Build Now button.

Results should be available in a minute.

8. Jenkins test results

Jenkins Test Results

Now you can see the test results in Jenkins. The blue circle means the test was successful!
You can also see the status of your tests in the console output of the Jenkins job.

You will now see your test and its screenshots/video in our TestingBot.com member area.

9. TestingBot Integration

Jenkins TestingBot integration

With our Jenkins plugin you can easily see a video/screenshots of your test from inside Jenkins.

Once the plugin is installed, it will report the test success/failures to TestingBot and embed the TestingBot test report inside your Jenkins installation.