As a Test Management service provider we believe that we should help our customers to maintain their preferred other testing tools – be it bug trackers or automation tools. There are many great tools out there, and each of our many users has their own reasons to select one of them, which best fits their needs.

Testuff tries to enable simple integration to all of these tools. For years now, we have been adding integration to bug trackers and automation tools, usually upon request of customers. You can find the major and more popular tools on the list, but at the same time some less known ones.

New addition to our automation tools list

Testuff has an automation API to support many different automation tools.
It allows your automation to update test results in Testuff. Automation can also be used to automatically export your data.

The API enable us to integrate any tool that supports HTTP requests from a script, so we can integrate with virtually any tool on the market.
We have already successfully integrated Testuff with the following leading automation tools:

And now we’ve added Watir to the list. This open source tool seems to be popular in a few Asian countries, but also in Europe and to some extent in the US (at least by what we hear from our customers).

How does it work?
Via HTTP POST over SSL. Each company has a custom URL and a unique token for identification. Each test has a unique ID. Test results are POSTed to the relevant URL and include as parameters the token, test ID, lab name, and test result. Following the request, Testuff updates the test result accordingly.
The set up is very easy. The automation URL can be found on the Settings link at the top of the Testuff window.

Sample: Watir

require 'watir'  ie = Watir::IE.new  ie.goto(http://google.com)
ie.text_field(:name, "q").flash  ie.text_field(:name, "q").set("Testuff")
ie.button(:name, "btnG").click  require 'net/http'  require 'net/https'
# Replace host name with values from Testuff API settings screen
http = Net::HTTP.new('serviceX.testuff.com',443)
http.use_ssl = true
# Replace company_id and token with values from the
# Testuff API settings screen
path = '/company_id/automation?token=01234567890abcdefghijkl'
# replace test ID with correct value from Testuff
data = 'status=passed&lab_name=sanity&test_id=abcdef&
tester_name=john&comment=comment text'
resp, data = http.post(path, data)
# Output response code to the screen (we should get 201)
puts 'Code = ' + resp.code  puts 'Message = ' + resp.message