Re-run the scenarios from a completed test result
curl --request POST \
--url https://api.cekura.ai/test_framework/v1/results/{id}/rerun/ \
--header 'X-CEKURA-API-KEY: <api-key>'import requests
url = "https://api.cekura.ai/test_framework/v1/results/{id}/rerun/"
headers = {"X-CEKURA-API-KEY": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-CEKURA-API-KEY': '<api-key>'}};
fetch('https://api.cekura.ai/test_framework/v1/results/{id}/rerun/', 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.cekura.ai/test_framework/v1/results/{id}/rerun/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-CEKURA-API-KEY: <api-key>"
],
]);
$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.cekura.ai/test_framework/v1/results/{id}/rerun/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cekura.ai/test_framework/v1/results/{id}/rerun/")
.header("X-CEKURA-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/v1/results/{id}/rerun/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"id": 123,
"agent": 123,
"agent_name": "<string>",
"agent_inbound": true,
"status": "pending",
"success_rate": 0,
"run_as_text": false,
"is_cronjob": "<string>",
"created_via": "<string>",
"created_by": {
"name": "<string>",
"id": 123,
"email": "jsmith@example.com"
},
"api_key": {
"id": 123,
"name": "<string>",
"created_by": {
"name": "<string>",
"id": 123,
"email": "jsmith@example.com"
}
},
"runs": {},
"met_expected_outcome_count": "<string>",
"total_expected_outcome_count": "<string>",
"total_runs_count": "<string>",
"completed_runs_count": "<string>",
"success_runs_count": "<string>",
"failed_runs_count": "<string>",
"scenarios": {},
"run_type": "<string>",
"agent_version": {
"history_id": 123,
"version_id": "<string>",
"version_name": "<string>",
"is_current": true
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Results
Rerun Results
Re-run a test result evaluation
POST
/
test_framework
/
v1
/
results
/
{id}
/
rerun
/
Re-run the scenarios from a completed test result
curl --request POST \
--url https://api.cekura.ai/test_framework/v1/results/{id}/rerun/ \
--header 'X-CEKURA-API-KEY: <api-key>'import requests
url = "https://api.cekura.ai/test_framework/v1/results/{id}/rerun/"
headers = {"X-CEKURA-API-KEY": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'X-CEKURA-API-KEY': '<api-key>'}};
fetch('https://api.cekura.ai/test_framework/v1/results/{id}/rerun/', 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.cekura.ai/test_framework/v1/results/{id}/rerun/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"X-CEKURA-API-KEY: <api-key>"
],
]);
$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.cekura.ai/test_framework/v1/results/{id}/rerun/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.cekura.ai/test_framework/v1/results/{id}/rerun/")
.header("X-CEKURA-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/v1/results/{id}/rerun/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"name": "<string>",
"id": 123,
"agent": 123,
"agent_name": "<string>",
"agent_inbound": true,
"status": "pending",
"success_rate": 0,
"run_as_text": false,
"is_cronjob": "<string>",
"created_via": "<string>",
"created_by": {
"name": "<string>",
"id": 123,
"email": "jsmith@example.com"
},
"api_key": {
"id": 123,
"name": "<string>",
"created_by": {
"name": "<string>",
"id": 123,
"email": "jsmith@example.com"
}
},
"runs": {},
"met_expected_outcome_count": "<string>",
"total_expected_outcome_count": "<string>",
"total_runs_count": "<string>",
"completed_runs_count": "<string>",
"success_runs_count": "<string>",
"failed_runs_count": "<string>",
"scenarios": {},
"run_type": "<string>",
"agent_version": {
"history_id": 123,
"version_id": "<string>",
"version_name": "<string>",
"is_current": true
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}Authorizations
api_keyoauth2embedded_sessionshareable_linksupabase_session
Response
200 - application/json
Current status of the result
running- Runningcompleted- Completedfailed- Failedpending- Pendingin_progress- In Progressevaluating- Evaluatingin_queue- In Queuetimeout- Timeoutcancelled- Cancelledscaling_up- Scaling Up
Available options:
running, completed, failed, pending, in_progress, evaluating, in_queue, timeout, cancelled, scaling_up