StarterTemplate ASP.NET Host

<back to all web services

RequestTestRunPost

TestRun Service

The following routes are available for this service:
POST/service/api/v2/projects/{ProjectId}/testrunsAdds a new test runThe authenticating user must have the Add privilege for the Test Library.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project you want to add the test run to

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

{
	project_id: 0,
	test_id: 0,
	test_set_id: 0,
	test_config_id: 0,
	release_id: 0,
	run_by_host_id: 0,
	force_new_run_creation: False,
	is_sequential: False,
	parameters: 
	[
		{
			name: String,
			value: String
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	test_set_id: 0,
	test_set_name: String,
	run_by_host_id: 0,
	test_config_id: 0,
	configuration_name: String,
	release_id: 0,
	project_id: 0,
	run_by_user_id: 0,
	run_by_user_name: String,
	is_sequential: False,
	status_code: String,
	execution_type: String,
	date_started: 0001-01-01,
	date_finished: 0001-01-01,
	nbr_tests: 0,
	nbr_passed: 0,
	nbr_failed: 0,
	nbr_blocked: 0,
	nbr_awaiting_run: 0,
	run_time: 0,
	run_time_formatted: String,
	release_name: String,
	agents: String,
	schedule_id: String,
	running_since: 0001-01-01,
	test_host: String
}