SpiraPlan: ImportExport SOAP Web Service

See all operations

TestRun_RecordAutomated2

Description

Records the results of executing an automated test

Use this version of the method for clients that cannot handle session cookies or complex data objects. Unlike the TestRun_RecordAutomated1 it cannot handle custom properties

Example(s)

            int testRunId5 = spiraImportExport.TestRun_RecordAutomated2("aant", "aant", projectId1, userId2, testCaseId1, iterationId2, null, null, DateTime.Now, DateTime.Now.AddSeconds(20), Business.TestCase.ExecutionStatusFailed, "TestSuite", "02_Test_Method", 5, "Expected 1, Found 0", "Error Stack Trace........");
            

Parameters

Type Name Required
string? userName - The username of the user
string? password - The unhashed password of the user
intprojectId - The project to connect to Yes
inttesterUserId - The user id of the person who's running the test (-1 for logged in user) Yes
inttestCaseId - The test case being executed Yes
int? releaseId - The release being executed against (optional)
int? testSetId - The test set being executed against (optional)
int? testSetTestCaseId - The id of the unique test case entry in the test set (if none provided, the first matching test case is used)
dateTimestartDate - When the test run started Yes
dateTimeendDate - When the test run ended Yes
intexecutionStatusId - The status of the test run (pass/fail/not run) Yes
string? runnerName - The name of the automated testing tool
string? runnerTestName - The name of the test case in the external tool
intrunnerAssertCount - The number of assertions Yes
string? runnerMessage - The failure message (if appropriate)
string? runnerStackTrace - The error stack trace (if any)s

Return Value

int - The newly created test run id