See all operations
POST: projects/{project_id}/test-runs/search/automated?starting_row={starting_row}&number_of_rows={number_of_rows}&sort_field={sort_field}&sort_direction={sort_direction}
Description
Retrieves a list of automated test runs in the system that match the provided filter/sort
Doesn't include the test run steps
How to Execute
To access this REST web service, you need to use the following URL (make sure to replace any parameters (eg {project_id}) with the relevant value (eg 1):
https://api.inflectra.com/Spira/Services/v5_0/RestService.svc/projects/{project_id}/test-runs/search/automated?starting_row={starting_row}&number_of_rows={number_of_rows}&sort_field={sort_field}&sort_direction={sort_direction}
Request Parameters
Name
|
Description
|
project_id
|
|
starting_row
|
The first row to return (starting with 1)
|
number_of_rows
|
The number of rows to return
|
sort_field
|
The field we want to sort on
|
sort_direction
|
The direction of the sorting (asc|desc)
|
Request Body
<ArrayOfRemoteFilter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v5_0.DataObjects">
<RemoteFilter>
<DateRangeValue i:nil="true" />
<IntValue i:nil="true" />
<MultiValue i:nil="true" />
<PropertyName i:nil="true" />
<StringValue i:nil="true" />
</RemoteFilter>
</ArrayOfRemoteFilter>
[{"DateRangeValue":null,
"IntValue":null,
"MultiValue":null,
"PropertyName":null,
"StringValue":null}]
Return Data
The JSON and XML examples below show the shape of one entry that will be returned. It does not show an example of how that entry will be populated.
<ArrayOfRemoteAutomatedTestRun xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inflectra.SpiraTest.Web.Services.v5_0.DataObjects">
<RemoteAutomatedTestRun>
<ArtifactTypeId>0</ArtifactTypeId>
<ConcurrencyDate>0001-01-01T00:00:00</ConcurrencyDate>
<CustomProperties i:nil="true" />
<IsAttachments>false</IsAttachments>
<ProjectId i:nil="true" />
<ActualDuration i:nil="true" />
<BuildId i:nil="true" />
<EndDate i:nil="true" />
<EstimatedDuration i:nil="true" />
<ExecutionStatusId>0</ExecutionStatusId>
<Name i:nil="true" />
<ReleaseId i:nil="true" />
<StartDate>0001-01-01T00:00:00</StartDate>
<TestCaseId>0</TestCaseId>
<TestRunId i:nil="true" />
<TestRunTypeId>0</TestRunTypeId>
<TestSetId i:nil="true" />
<TestSetTestCaseId i:nil="true" />
<TesterId i:nil="true" />
<AutomationAttachmentId i:nil="true" />
<AutomationEngineId i:nil="true" />
<AutomationEngineToken i:nil="true" />
<AutomationHostId i:nil="true" />
<Parameters i:nil="true" />
<RunnerAssertCount i:nil="true" />
<RunnerMessage i:nil="true" />
<RunnerName i:nil="true" />
<RunnerStackTrace i:nil="true" />
<RunnerTestName i:nil="true" />
<ScheduledDate i:nil="true" />
<TestRunFormatId>0</TestRunFormatId>
<TestRunSteps i:nil="true" />
</RemoteAutomatedTestRun>
</ArrayOfRemoteAutomatedTestRun>
[{"ArtifactTypeId":0,
"ConcurrencyDate":"\/Date(-62135578800000-0500)\/",
"CustomProperties":null,
"IsAttachments":false,
"ProjectId":null,
"ActualDuration":null,
"BuildId":null,
"EndDate":null,
"EstimatedDuration":null,
"ExecutionStatusId":0,
"Name":null,
"ReleaseId":null,
"StartDate":"\/Date(-62135578800000-0500)\/",
"TestCaseId":0,
"TestRunId":null,
"TestRunTypeId":0,
"TestSetId":null,
"TestSetTestCaseId":null,
"TesterId":null,
"AutomationAttachmentId":null,
"AutomationEngineId":null,
"AutomationEngineToken":null,
"AutomationHostId":null,
"Parameters":null,
"RunnerAssertCount":null,
"RunnerMessage":null,
"RunnerName":null,
"RunnerStackTrace":null,
"RunnerTestName":null,
"ScheduledDate":null,
"TestRunFormatId":0,
"TestRunSteps":null}]