Ruby Framework Plugin

Ruby Framework plugin for uploading test results to your QA Touch Testrun.

Code

require "uri"
require "net/http"

url = URI("https://api.qatouch.com/api/v1/testRunResults
/add/results?status=Passed&project=PROJECTKEY&test_run=TESTRUNKEY&
run_result[]=RUNRESULTKEY&
comments=Updated from API - Ruby bindings&time_spent=5")

https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true

request = Net::HTTP::Post.new(url)
request["api-token"] = "******API Token********"
request["domain"] = "******Malar********"

response = https.request(request)
puts response.read_body

image