SpiraTeam: ImportExport SOAP Web Service

See all operations

TestSet_Retrieve

Description

Retrieves a list of testSets in the system that match the provided filter

Example(s)

            spiraImportExport.Connection_Authenticate("fredbloggs", "fredbloggs");
            spiraImportExport.Connection_ConnectToProject(1);
            List<RemoteFilter> remoteFilters = new List<RemoteFilter>();
            RemoteFilter remoteFilter = new RemoteFilter();
            remoteFilter.PropertyName = "OwnerId";
            remoteFilter.MultiValue = new MultiValueFilter();
            List<int> multiValues = remoteFilter.MultiValue.Values;
            multiValues.Add(2);
            multiValues.Add(3);
            remoteFilters.Add(remoteFilter);
            remoteFilter = new RemoteFilter();
            remoteFilter.PropertyName = "TestSetStatusId";
            remoteFilter.MultiValue = new MultiValueFilter();
            multiValues = remoteFilter.MultiValue.Values;
            multiValues.Add((int)Task.TaskStatus.NotStarted);
            multiValues.Add((int)Task.TaskStatus.InProgress);
            remoteFilters.Add(remoteFilter);
            remoteFilter = new RemoteFilter();
            remoteFilter.PropertyName = "PlannedDate";
            remoteFilter.DateRangeValue = new DateRange();
            remoteFilter.DateRangeValue.StartDate = DateTime.Parse("2/1/2007");
            remoteFilter.DateRangeValue.EndDate = DateTime.Parse("2/28/2007");
            remoteFilters.Add(remoteFilter);
            RemoteTestSet[] remoteTestSets = spiraImportExport.TestSet_Retrieve(remoteFilters.ToArray(), 1, 999999);
            

Parameters

Type Name Required
ArrayOfRemoteFilter? remoteFilters - The list of filters to apply
intstartingRow - The first row to return (starting with 1) Yes
intnumberOfRows - The number of rows to return Yes

Return Value

ArrayOfRemoteTestSet - List of testSets