Thread

Skip Navigation LinksForums > SpiraTeam Forums > SpiraTeam Issues & Questi... > How to update the Test St...

How to update the Test Step status using the SpiraImportExport webservice reference RSS Feed

Friday, November 30, 2012
//to retrieve list of test cases
                RemoteTestCase[] rtcList = spiraExport.TestCase_RetrieveByTestSetId(automatedTestRun.TestSetId.Value);
                int? a = rtcList[0].TestCaseId;
                int b = a.Value;
                //RemoteTestStep[] rtst =  rtcList[0].TestSteps ;
                try
                {
                    RemoteTestCase remoteTestCase = spiraExport.TestCase_RetrieveById(b);
                    RemoteTestStep[] remoteTestSteps = remoteTestCase.TestSteps;
                    Thread.Sleep(1000);
                    //RemoteTestStep [] rtStep = Remote
                       
                    //int a = rtst[0].TestStepId.Value;
                }
                catch (Exception)
                {

                    Thread.Sleep(1000);
                }
1 Replies
Satyabrata SahaSatyabrata Saha
re: Satyabrata Saha on Friday, November 30, 2012
Friday, November 30, 2012

Hi SpiraTest Support,

I would like to know, how can I update the status of a Test Step inside a Test Case using the webserice reference.

Currently I am able to get the list of test steps in a test case and its associated atributes like Test StepID , Test StepDescription ,etc.

//to retrieve list of test cases
                RemoteTestCase[] rtcList = spiraExport.TestCase_RetrieveByTestSetId(automatedTestRun.TestSetId.Value);
                int? a = rtcList[0].TestCaseId;
                int b = a.Value;
                //RemoteTestStep[] rtst =  rtcList[0].TestSteps ;
                try
                {
                    RemoteTestCase remoteTestCase = spiraExport.TestCase_RetrieveById(b);
                    RemoteTestStep[] remoteTestSteps = remoteTestCase.TestSteps;
                }
                catch (Exception)
                {

                    throw;
                }

Any help is appreciated.

Thanks,
Satyabrata Saha

Tagged
Statistics
  • Started: 11/30/2012
  • Last Reply: 11/30/2012
  • Replies: 1
  • Views: 559
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.