Skip to main content

Posts

Showing posts with the label hudson

How to get upstream job status in Hudson from downstream jobs statuses

This is step-by-step instruction based on this blog: http://fatalfailure.wordpress.com/2011/06/14/jenkins-hudson-getting-the-overall-status-in-the-upstream-job-from-the-downstream-jobs/ Upstream job configuration 1. Adding downstream jobs a) In 'Post-build Actions' section set 'Build other projects' checkbox b) Add downstream jobs in 'Build other projects', separated by comma c) Set 'Trigger even if the build is unstable' 2. Setting up fingerprinting to connect upstream job with downstream jobs a) In 'Post-build Actions' section set 'Record fingerprints of files to track usage' checkbox b) Set '**' in 'Files to fingerprint' field c) Set 'Keep the build logs of dependencies' checkbox Downstream jobs configuration 1. Setting up fingerprinting to connect upstream job with downstream jobs a) In 'Post-build Actions' section set 'Record fingerprints of files to track usage' checkbox b) Set 

Integration of your test suite with Hudson using Apache Ant

The quick, dirty and painless guide to integrate your test automation suite with Hudson. Prerequisites 1. It is assumed that you already have test automation suite that produces test results in JUnit XML format. For example this can be a bundle of Selenium RC and JUnit. Or Watir and Cucumber with JUnit-style reporter. 2. You need to create Ant project build.xml script that executes your test suite. Materials: http://varun-qa.blogspot.com/2010/03/ant-script-for-generating-junit-report.html Example (execution of Watir/Cucumber test suite on Windows): 3. It is assumed that your test automation suite is stored to Subversion or CVS server. 4. Download hudson.war from here: http://hudson-ci.org/latest/hudson.war Steps 1. Go to the directory with downloaded hudson.war and run the following command: java -jar hudson.war 2. Open your browser and go to: http://localhost:8080/ 3. Click "New Job" link on the left panel of Hudson dashboard 4. Enter job name (this can be any

Jmeter and Maven Chronos plugin

There are several different approaches to integrate JMeter and Maven. We needed to use one of them to integrate our JMeter test automation suite with our continuous integration server. There are two plugins available: JMeter Maven Plugin Chronos Maven Plugin I decided to use Chronos Maven plugin. It requires explicit installation of JMeter. I've successfully configured pom.xml for running our test automation suite and reporting of the test results. You need to perform the following steps: 1. Install Apache Maven 2. Create pom.xml file and put it in a directory of your choice 3. Set your local JMeter installation directory path in jmeter.home in pom.xml file 4. Set the path to your JMeter script in pom.xml 5. Set assertions in pom.xml file if required (I didn't need this, so they are not present in the example below) 6. Create a JMeter project and copy it to test subdirectory of the directory where you stored pom.xml file. Your directory structure should