StarterTemplate ASP.NET Host

<back to all web services

RequestTestsAllPost

The following routes are available for this service:
POST/service/api/v1/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 .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/RequestTestsAllPost HTTP/1.1 
Host: rest.qacomplete.smartbear.com 
Content-Type: application/json
Content-Length: length

{"project_id":0,"offset":0,"limit":0,"filter":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
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_formated":"String","create_user_id":0,"date_created":"0001-01-01T00:00:00.0000000","date_last_escalated":"0001-01-01T00:00:00.0000000","date_updated":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","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-01T00:00:00.0000000","date_updated":"0001-01-01T00:00:00.0000000","expected_result":"String","is_stopped_on_fail":false,"nbr_files":0,"seq":0,"step":"String","update_user_id":0,"call_to_test_params":[{"name":"String","value":"String"}]}],"test_type":"String","update_user_id":0,"user_name":"String","version":0}]}