StarterTemplate ASP.NET Host

<back to all web services

RequestTestsAllPostV2

The following routes are available for this service:
POST/service/api/v2/projects/{ProjectId}/tests/searchReturns the list of tests in a projectThe authenticating user must have the Read privilege for the Test Library. This method fully equivalent to GET method, but this one allows you to send large filter string.
Parameters:
NameParameterData TypeRequiredDescription
ProjectIdpathintYesThe ID of the project that contains tests
OffsetqueryintNoThe number of tests to skip before counting the returned tests
LimitqueryintNoThe maximum number of tests to return

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

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

{
	results: 
	[
		{
			id: 0,
			title: String,
			status: String,
			project_id: 0,
			__permissions: 
			{
				acl: 0
			},
			active: False,
			assigned_to_name: String,
			assignee_user_id: 0,
			avg_run_time: 0,
			avg_run_time_formatted: String,
			create_user_id: 0,
			date_created: 0001-01-01,
			date_last_escalated: 0001-01-01,
			date_updated: 0001-01-01,
			description: String,
			execution_type: String,
			folder_id: 0,
			folder_name: String,
			import_id: 0,
			last_escalation_rule: String,
			last_escalation_rule_id: 0,
			last_run_by_name: String,
			last_run_by_user_id: 0,
			last_run_date: 0001-01-01,
			last_run_status: String,
			last_run_test_set: 0,
			last_run_test_set_title: String,
			nbr_escalations: 0,
			nbr_events: 0,
			nbr_fail_status: 0,
			nbr_files: 0,
			nbr_notes: 0,
			nbr_pass_status: 0,
			nbr_steps: 0,
			nbr_times_run: 0,
			notes_description: String,
			original_id: 0,
			owner_name: String,
			owner_user_id: 0,
			priority: String,
			test_steps: 
			[
				{
					id: 0,
					__permissions: 
					{
						acl: 0
					},
					create_user_id: 0,
					date_created: 0001-01-01,
					date_updated: 0001-01-01,
					expected_result: String,
					is_stopped_on_fail: False,
					nbr_files: 0,
					seq: 0,
					step: String,
					step_criteria: String,
					update_user_id: 0,
					call_to_test_id: 0,
					call_to_test_title: String,
					type: String,
					call_to_test_params: 
					[
						{
							name: String,
							value: String
						}
					]
				}
			],
			test_type: String,
			update_user_id: 0,
			user_name: String,
			version: 0,
			default_host_id: 0,
			default_host_name: String
		}
	]
}