StarterTemplate ASP.NET Host

<back to all web services

RequestRunItemPatchV2

The following routes are available for this service:
PATCH/service/automation/v2/hosts/{HostId}/runs/{RunId}/items/{SequenceNumber}Updates the test run statusThe authenticating user must have Read access to Test Hosts.
    RequestRunItemPatchV2: Updated information about the test run.
  • Status: ['Passed' or 'Failed' or 'Blocked' or 'Skipped' or 'NA']: The test status.
  • DateStarted: The UTC date and time the test started, in the ISO 8601 format.
  • DateFinished: The UTC date and time the test finished, in the ISO 8601 format.
  • RunTime: The test's run time in seconds.
  • TestRunResults: The test step results.

    RequestRunResultPatch
  • Status: ['Passed' or 'Failed' or 'Blocked' or 'Skipped' or 'NA']: The test step status.
  • ActualResult: The actual results of the test step.
  • Step: The test step description.
  • ExpectedResult: The expected results of the test step.
Parameters:
NameParameterData TypeRequiredDescription
SequenceNumberpathintYesThe 1-based index of the item in the test run
RunIdpathintYesThe ID of the test run that contains the script you need to get
HostIdpathintYesThe ID of the host computer

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

{
	status: String,
	date_started: 0001-01-01,
	date_finished: 0001-01-01,
	run_time: 0,
	test_run_results: 
	[
		{
			status: String,
			actual_result: String,
			step: String,
			step_criteria: String,
			expected_result: String
		}
	],
	sequence_number: 0,
	run_id: 0,
	host_id: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	sequence_number: 0,
	stop_on_fail: False,
	status: String,
	date_started: 0001-01-01,
	date_finished: 0001-01-01,
	run_time: 0,
	test_run_results: 
	[
		{
			sequence_number: 0,
			stop_on_fail: False,
			status: String,
			step: String,
			expected_result: String,
			actual_result: String
		}
	]
}