StarterTemplate ASP.NET Host

<back to all web services

RequestTestRunItemPut

TestRunItem Service

The following routes are available for this service:
PUT/service/api/v2/projects/{ProjectId}/testruns/{Id}/items/{ItemId}Updates the test run itemThe authenticating user must have the Update privilege for the Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains the test run
IdpathintYesThe ID of the test run that contains the item
ItemIdpathintYesThe ID of the test run item that has the fields you need to update

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/RequestTestRunItemPut HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: text/jsv
Content-Length: length

{
	project_id: 0,
	id: 0,
	item_id: 0,
	critical: False,
	run_time: 0,
	run_by_user_id: 0,
	run_by_host_id: 0,
	save_to_test_library: False,
	status_code: String,
	steps: 
	[
		{
			seq: 0,
			step_name: String,
			step_criteria: String,
			status_code: String,
			test_step_id: 0,
			test_run_result_id: 0,
			expected_result: String,
			actual_result: String,
			critical: False
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	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
}