XebiaLabs | Continuous Delivery and Agile DevOps Tools

XebiaLabs Blog

Subscribe to XebiaLabs Blog: eMailAlertsEmail Alerts
Get XebiaLabs Blog via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

Related Topics: Intel XML, XML Magazine

Blog Feed Post

Dear XL Test, here are my test results!

One of the key features of XL Test is the ability to incorporate test results from many an test automation tool. In most cases, a Jenkins plugin, that can be added as a ‘post-build action’ to a Jenkins test job will do the work for you. But, what if we do not yet have a Jenkins setup available and want to trigger the import e.g. via a shell script? Yes, you could run the import  through a command-line. In this small blog post, we explain how.

Please note that in this blog post we are exposing parts of XL Test’s API. The authoritative source of the API documentation will be available at http://docs.xebialabs.com.

Basically, we need to trigger one of the REST endpoints that XL Test exposes: the /import endpoint. The Jenkins plugin that posts results to XL Test as a post-build action (obviously) makes use of this endpoint by uploading a zipped (set of) result file(s). The endpoint (still) is Jenkins-specific as it requires several Jenkins-specific parameters. However, a generic endpoint will be made available soon. Until then, we should be able to post a zip file with xUnit results to XL Test using curl: 

curl -X POST --verbose -u admin:admin --header "Content-Type: application/zip" --data-binary @result.zip 

Hope this helps those why are dying to get scattered test results imported into XL Test. 

The post Dear XL Test, here are my test results! appeared first on XebiaLabs.

Read the original blog entry...

More Stories By XebiaLabs Blog

XebiaLabs is the technology leader for automation software for DevOps and Continuous Delivery. It focuses on helping companies accelerate the delivery of new software in the most efficient manner. Its products are simple to use, quick to implement, and provide robust enterprise technology.