This article relates to the New Job Scheduling, which provides enhanced performance and support for different testing frameworks. For the original Job Scheduling, see Job Scheduling.
Get test execution report
Description
Gets a specific test execution's report.
HTTP method
GET
Request
 URL
URL
                                        http://{Job Scheduling API IP}:[port#]/api/spaces/{space_name}/TestExecution/{id}/Report Headers
Headers
                                        Example header format for the blueprint identifier method:
Authorization: Basic <authorization token returned from the login method>
                                            
Content-Type: application/json
                                            
 Body
Body
                                        | Parameter | Description/Comments | 
|---|---|
| space_name | Domain in which the test was executed. | 
| id | Unique test execution id – included in Get suite execution. | 
Response
 Response example
Response example
                                        {
  "testResult": 1,
  "name": "new_test (1).robot",
  "path": "demo_tests1",
  "startTime": "2020-10-28T20:05:07.472Z",
  "endTime": "2020-10-28T20:05:37.653Z",
  "testExecutionServerName": "My TES2",
  "executedBy": "steven.g",
  "report": "Test request data: {\"domainName\": \"Test Lab\", \"test\": \"demo_tests1/new_test (1).robot\", \"reportsFullPath\": \"/home/jrobot/app/nfs/quali/archive/e1a812cd-192d-4617-8046-be5c5861d46c_steven.g\", \"reservationID\": \"e1a812cd192d46178046be5c5861d46c\", \"executionID\": \"9dc164b376004515ac94da4b933d1d7c\", \"testInactivityTimeoutInMinutes\": 2, \"username\": \"steven.g\", \"job\": null, \"parameters\": \"\", \"suite\": null, \"robot\": null, \"inputs\": null}",
  "errorCode": 0,
  "errorMessage": ""
} Response summary
Response summary
                                        | Parameter | Description/Comments | 
|---|---|
| testResult | Test result code. (numeric) For details, see Statuses and results. | 
| name | Test name. (string) | 
| path | Test's folder path on the online test repository. (string) | 
| startTime | Test execution's start time. (ISO 8601 Date/Time format) | 
| endTime | Test execution's completion time. (ISO 8601 Date/Time format) | 
| testExecutionServerName | Test Execution Service used to execute the test. (string) | 
| executedBy | CloudShell user who executed the test. (string) | 
| report | Test execution report. (json) | 
| errorCode | Test execution's error code. (numeric) For details, see Statuses and results. | 
| errorMessage | Test execution's error message. (string) For details, see Statuses and results. | 


 
                                    



