SpiraPlan: ImportExport SOAP Web Service

See all operations

TestRun_CreateForAutomationHost

Description

Creates a shell set of test runs for an external automated test runner based on the provided automation host token and the specified date range

Example(s)

            spiraImportExport.Connection_Authenticate2(userName, password, engineName);
            spiraImportExport.Connection_ConnectToProject(projectId);
            DateRange dateRange = new DateRange();
            dateRange.StartDate = DateTime.UtcNow.AddHours(-1);
            dateRange.EndDate = DateTime.UtcNow.AddHours(1);
            RemoteAutomatedTestRun[] remoteTestRuns = spiraImportExport.TestRun_CreateForAutomationHost(automationHostToken, dateRange);
            

Parameters

Type Name Required
string? automationHostToken - The unique token that identifies this host
DateRange? dateRange - The range of planned dates that we want to include test sets for

Return Value

ArrayOfRemoteAutomatedTestRun - The list of test run objects