Get run
curl --request GET \
--url https://api.qa.tech/v1/run/{shortId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qa.tech/v1/run/{shortId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qa.tech/v1/run/{shortId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qa.tech/v1/run/{shortId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qa.tech/v1/run/{shortId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qa.tech/v1/run/{shortId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qa.tech/v1/run/{shortId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"shortId": "<string>",
"status": "<string>",
"result": "<string>",
"id": "<string>",
"runTestCases": [
{
"id": "<string>",
"shortId": "<string>",
"name": "<string>",
"status": "<string>",
"result": "<string>",
"resultTitle": "<string>",
"evaluationThought": "<string>",
"errorCode": "<string>",
"classification": "<string>",
"promptGoal": "<string>",
"promptExamples": "<string>"
}
],
"issues": [
{
"id": "<string>",
"shortId": "<string>",
"title": "<string>",
"description": "<string>",
"severity": "<string>",
"issueType": "<string>",
"helpUrl": "<string>",
"tags": [
"<string>"
],
"status": "<string>",
"testCases": [
{
"shortId": "<string>",
"name": "<string>"
}
]
}
]
}Runs
Get run
Fetches a run by its short ID. Pass testCases: "all" or "failed" to include nested test-case results, and issues to include detected issues (all or a category such as accessibility; omitted by default). Use get_run_issues to fetch only the issues.
GET
/
v1
/
run
/
{shortId}
Get run
curl --request GET \
--url https://api.qa.tech/v1/run/{shortId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qa.tech/v1/run/{shortId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.qa.tech/v1/run/{shortId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qa.tech/v1/run/{shortId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.qa.tech/v1/run/{shortId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.qa.tech/v1/run/{shortId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qa.tech/v1/run/{shortId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"shortId": "<string>",
"status": "<string>",
"result": "<string>",
"id": "<string>",
"runTestCases": [
{
"id": "<string>",
"shortId": "<string>",
"name": "<string>",
"status": "<string>",
"result": "<string>",
"resultTitle": "<string>",
"evaluationThought": "<string>",
"errorCode": "<string>",
"classification": "<string>",
"promptGoal": "<string>",
"promptExamples": "<string>"
}
],
"issues": [
{
"id": "<string>",
"shortId": "<string>",
"title": "<string>",
"description": "<string>",
"severity": "<string>",
"issueType": "<string>",
"helpUrl": "<string>",
"tags": [
"<string>"
],
"status": "<string>",
"testCases": [
{
"shortId": "<string>",
"name": "<string>"
}
]
}
]
}Path Parameters
Query Parameters
Show child attributes
Show child attributes
Response
200 - application/json
The request has succeeded.
Run lifecycle status: INITIATED, RUNNING, COMPLETED, ERROR, or CANCELLED.
Run outcome once status is COMPLETED: PASSED, FAILED, or SKIPPED. null while the run is still in progress.
Show child attributes
Show child attributes
Issues detected during the run, deduplicated across its test cases. Only present when requested via the issues query parameter.
Show child attributes
Show child attributes
Was this page helpful?
⌘I