List Test Results
9 min
the endpoint retrieves a paginated list of test results for a specific test execution id, starting from the first page (default page 1) for the authenticated user's company endpoint information url \<custom env url>/testinium restapi/api/testresults/executionid/{execid} method get authentication bearer token is required path parameters parameter type required description execid long yes the unique id of the test execution response body the response contains a paginatedtestresultlist object with details on pagination and a list of testresultdto objects for the requested page { "pagination" { "current page" 1, "total count" 1, "page limit" 50 }, "test result list" \[ { "id" 435, "level" "error", "start date" 1722511864000, "end date" 1722511864000, "runtime" 42, "session id" "dummy 38824800783936853956", "message" "test report could not be found please check your executor log ", "screen shot type" "yes", "video enabled" false, "performance data enabled" false, "test key" "test c1 p5 e102 s6 env\ win10 chrome latest", "test scenario" { "id" 6 }, "test plan" { "id" 5 }, "project" { "id" 5 }, "video format" "flv", "environment" { "id" 8 }, "test execution" { "id" 102 }, "node log path" "https //dev testinium com//storage?key=1/2024/08/01/dummy 38824800783936853956/node log", "executor log path" "https //dev testinium com//storage?key=1/2024/08/01/dummy 38824800783936853956/testresult log" } ] } pagination object field type description current page int the current page number total count int total count of items available for pagination page limit int number of items displayed per page test result object field type description id long the unique id of the test result level string status of the test result (e g , success ) start date long start timestamp of the test execution in milliseconds end date long end timestamp of the test execution in milliseconds runtime int execution time of the test in milliseconds session id string the session identifier of the test result video enabled boolean indicates if video recording is enabled performance data enabled boolean indicates if performance data is available test scenario id long id of the test scenario test plan id long id of the test plan project id long id of the associated project video format string format of the video, if recorded (e g , flv ) test execution id long id of the test execution associated with the result node log path string url path to the node log file executor log path string url path to the executor log file error codes http code error message description 400 invalid request the request was malformed or contained errors 401 unauthorized user authentication failed 403 access denied user does not have access to this test execution 404 test execution not found no test execution was found for the given id 500 internal server error an unexpected error occurred on the server side example request curl location '\<custom env url>/testinium restapi/api/testresults/executionid/{execid}' \\ \ header 'authorization bearer \<your access token>'