List test cases
curl --request GET \
--url https://api.qa.tech/v1/test-cases \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qa.tech/v1/test-cases"
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/test-cases', 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/test-cases",
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/test-cases"
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/test-cases")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qa.tech/v1/test-cases")
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{
"testCases": [
{
"id": "<string>",
"name": "<string>",
"isEnabled": true,
"labels": [
"<string>"
],
"references": [
{
"kind": "<string>",
"key": "<string>",
"url": "<string>",
"title": "<string>"
}
],
"classification": "<string>",
"applicationShortId": "<string>",
"applicationName": "<string>",
"goal": "<string>",
"expectedResult": "<string>",
"createdAt": "<string>",
"lastRun": {
"shortId": "<string>",
"status": "<string>",
"result": "<string>",
"completedAt": "<string>"
},
"steps": [
{
"instruction": "<string>",
"expectedResult": "<string>"
}
]
}
],
"total": 123,
"limit": 123,
"offset": 123
}Test Cases
List test cases
Lists test cases for the project, optionally filtered by application, labels, enabled state, or scenario.
To find tests by their wording, pass query instead of listing everything and filtering client-side. It is database websearch across name, goal, expected result, steps, and scenario name — unquoted terms are ANDed, quoted phrases match as a phrase, OR is alternation, and -term excludes.
GET
/
v1
/
test-cases
List test cases
curl --request GET \
--url https://api.qa.tech/v1/test-cases \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.qa.tech/v1/test-cases"
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/test-cases', 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/test-cases",
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/test-cases"
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/test-cases")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.qa.tech/v1/test-cases")
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{
"testCases": [
{
"id": "<string>",
"name": "<string>",
"isEnabled": true,
"labels": [
"<string>"
],
"references": [
{
"kind": "<string>",
"key": "<string>",
"url": "<string>",
"title": "<string>"
}
],
"classification": "<string>",
"applicationShortId": "<string>",
"applicationName": "<string>",
"goal": "<string>",
"expectedResult": "<string>",
"createdAt": "<string>",
"lastRun": {
"shortId": "<string>",
"status": "<string>",
"result": "<string>",
"completedAt": "<string>"
},
"steps": [
{
"instruction": "<string>",
"expectedResult": "<string>"
}
]
}
],
"total": 123,
"limit": 123,
"offset": 123
}Was this page helpful?