Returns information on a specific test run item from QAComplete.
Use the operation to get information on the test run item specified by its ID, the ID of the test run, and the ID of the project to which the test run belongs.
To get information on all items the test run contains, use the …/testruns/{Id}/items (GET)
operation.
Authentication
Basic authentication using a user’s login and password. See Authentication for details.
Security Rights
The authenticating user must belong to a security group that has the Read privilege for Test Library.
Request Format
To get information on a test run item, send a GET request to the following URL:
ProjectId : integer, required
The ID of the project, to which the test run belongs.
Id : integer, required
The ID of the test run whose item you want to get.
ItemId : integer, required
The ID of the test run item you want to get
A sample request:
GET http://yourserver.com/rest-api/service/api/v2/projects/98429/testruns/663528/items/3623363 HTTP/1.1
Host: yourserver.com
Connection: keep-alive
Accept: application/json
Authorization: Basic am9obkBleGFtcGxlLmNvbTpwQHNzd29yZA==
A sample request made by using cURL:
curl -u [email protected]:p@ssword -H "Accept: application/json" http://yourserver.com/service/api/v2/projects/98429/testruns/647894/items/3623363
Response Format
If successful, the operation responds with HTTP status code 200 and returns a JSON object with the test run item information.
A sample response:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 1354
{
"id": 3623363,
"test_set_id": 277294,
"project_id": 98393,
"test_run_id": 647894,
"test_id": 3218458,
"test_name": "Add new user with valid name and details",
"version": 2,
"sequence_number": 1,
"seq_token": 0,
"status_code": "Passed",
"date_started": "2015-07-29T12:35:44.0200000",
"date_finished": "2015-07-29T12:35:44.0200000",
"run_time": 57,
"run_time_formated": "00:00:57",
"is_stopped_on_fail": false,
"last_run_by_name": "Smith, John "
"release_id": 112537,
"release_name": "eCommerce Application: Release 1.0/Sprint 1",
"test_config_id": 57081,
"configuration_name": "IE10, Win 8",
"test_set_name": "User Login Processes",
"avg_run_time": 57,
"avg_run_time_formated": "00:00:57",
"folder_name": "eCommerce Tests/Log in page",
"test_description": "Add new user with valid name and details",
"last_run_date": "2015-07-29T12:35:44.0200000",
"is_tokenized": false,
"test_run_started": "2015-07-29T12:34:41.1170000",
"run_by_user_id": 130457,
"last_run_status": "Passed",
"status_updated_by": 130457,
"status_updated_by_user_name: "Smith, John "
"test_run_results": [],
"file_report": "",
"file_log": "",
"automated": false,
"test_host": ""
"update_user_id": 0
}
The ID of the test run item.
The ID of the test set the test run item belongs to.
The ID of the project the test run item belongs to.
The ID of the test run.
The ID of the QAComplete test corresponding to the test run item.
The name of the QAComplete test corresponding to the test run item.
The version of the test.
The number of the test run item in a test set sequence.
The sequence token of the test run item.
The current status code of the test run item.
The date the run of the test run item was started.
The date the run of the test run item was finished.
The total run time of the test run item (in seconds).
The run time value in the HH:MM:SS format.
Shows whether the run of the test run item stopped on error.
The name of the user who ran the test run item last time.
The ID of the release the test run item belongs to.
The name of the release the test run item belongs to.
The ID of the configuration used to run the test run item.
The name of the configuration used to run the test run item.
The name of the test set the test run item belongs to.
The average run time of the test run item (in seconds).
The average run time of the test run item in the HH:MM:SS format.
The name of the folder the test run item is located in.
The description of the test corresponding to the test run item.
The date the test run item was running last time.
The status of the last run.
Shows whether the test run item is tokenized.
The date the test run with this item started last time.
The ID of the user who ran the test run item.
The ID of the user who updated the status of the test run item last time.
The name of the user who updated the status of the test run item last time.
The results of the test run.
The file containing the report about the test run.
The file containing the test run log.
Shows whether the test run item is automated.
The test host used to run the test run item.
The ID of the user who updated the test run item last time.
Error responses
If the operation fails, it returns the appropriate status code and (optionally) the error description in the response body.
If the project with the specified ProjectId does not exist or the authenticating user does not have rights to access the project, the operation returns the Access is denied
error.
If the test run item with the specified Id does not exist, the operation returns the File or directory not found
error.