StarterTemplate ASP.NET Host

<back to all web services

RequestTestRunItemGet

TestRunItem Service

The following routes are available for this service:
GET/service/api/v2/projects/{ProjectId}/testruns/{Id}/itemsReturns a list of test run itemsThe authenticating user must have the Read privilege for the Test Library.
Parameters:
NameParameterData TypeRequiredDescription
OffsetqueryintNoThe number of test run items to skip before counting the returned test run items
LimitqueryintNoThe maximum number of test run items to return
ProjectIdpathintYesThe ID of the project that contains the test run
FilterquerystringNoThe filter expression to apply to the list of test run items
IdpathintYesThe ID of the test run that contains the items you need to get

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/RequestTestRunItemGet HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/jsv
Content-Length: length

{
	offset: 0,
	limit: 0,
	project_id: 0,
	filter: String,
	id: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	results: 
	[
		{
			id: 0,
			test_set_id: 0,
			project_id: 0,
			test_run_id: 0,
			test_id: 0,
			test_name: String,
			version: 0,
			sequence_number: 0,
			seq_token: 0,
			status_code: String,
			date_started: 0001-01-01,
			date_finished: 0001-01-01,
			run_time: 0,
			run_time_formatted: String,
			is_stopped_on_fail: False,
			last_run_by_name: String,
			release_id: 0,
			release_name: String,
			test_config_id: 0,
			configuration_name: String,
			test_set_name: String,
			avg_run_time: 0,
			avg_run_time_formatted: String,
			folder_name: String,
			test_description: String,
			last_run_date: 0001-01-01,
			iteration_cnt: 0,
			is_tokenized: False,
			test_run_started: 0001-01-01,
			run_by_user_id: 0,
			run_by_user_name: String,
			last_run_status: String,
			status_updated_by: 0,
			status_updated_by_user_name: String,
			test_run_results: 
			[
				{
					id: 0,
					test_run_item_id: 0,
					seq: 0,
					is_stopped_on_fail: False,
					status_code: String,
					step: String,
					step_criteria: String,
					expected_result: String,
					actual_result: String,
					test_step_id: 0,
					project_id: 0,
					iteration_cnt: 0,
					is_tokenized: False
				}
			],
			run_by_host_id: 0,
			file_report: String,
			file_log: String,
			automated: False,
			test_host: String
		}
	]
}