<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Getting all SpiraTeam project testcases using WebServices (Thread)</title><description>  A.  I am new to webservice development. B.  Does someone have an example on how I can use Webservices to get all of a projects test cases in the order they are listed in the project and get all the relevant test case/test step data including values from custom text and list boxes?  Thanks.   </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/90.aspx</link><item><guid isPermaLink="false">threadId=90</guid><author>Margaret D Thomas (mtha@amfpension.se)</author><title>Getting all SpiraTeam project testcases using WebServices</title><description>  A.  I am new to webservice development. B.  Does someone have an example on how I can use Webservices to get all of a projects test cases in the order they are listed in the project and get all the relevant test case/test step data including values from custom text and list boxes?  Thanks.   </description><pubDate>Thu, 09 Jun 2011 08:56:45 -0400</pubDate><a10:updated>2022-11-05T18:31:52-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/90.aspx</link></item><item><guid isPermaLink="false">messageId=173</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>          //Now lets test that we can retrieve a generic list of test cases and test runs from the s</title><description>          //Now lets test that we can retrieve a generic list of test cases and test runs from the sample project         spiraImportExport.Connection_Authenticate(     "fredbloggs"     ,      "fredbloggs"     );    spiraImportExport.Connection_ConnectToProject(1);         List       remoteFilters =      new           List      ();         RemoteFilter      remoteFilter =      new           RemoteFilter     ();    remoteFilter.PropertyName =      "OwnerId"     ;    remoteFilter.MultiValue =      new           MultiValueFilter     ();    remoteFilter.MultiValue.Values =      new           int     [] { 2, 3 };     remoteFilters.Add(remoteFilter);    remoteFilter =      new           RemoteFilter     ();    remoteFilter.PropertyName =      "ActiveYn"     ;    remoteFilter.StringValue =      "Y"     ;    remoteFilters.Add(remoteFilter);    remoteFilter =      new           RemoteFilter     ();    remoteFilter.PropertyName =      "ExecutionDate"     ;    remoteFilter.DateRangeValue =      new           DateRange     ();    remoteFilter.DateRangeValue.StartDate =      DateTime     .Parse(     "12/1/2003"     );    remoteFilter.DateRangeValue.EndDate =      DateTime     .Parse(     "12/31/2003"     );    remoteFilters.Add(remoteFilter);         RemoteTestCase     [] remoteTestCases = spiraImportExport.TestCase_Retrieve(remoteFilters.ToArray(), 1, 999999);   </description><pubDate>Thu, 09 Jun 2011 16:17:40 -0400</pubDate><a10:updated>2011-06-09T16:17:40-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/90.aspx#reply173</link></item><item><guid isPermaLink="false">messageId=174</guid><author>David J (adam.sandman+support@inflectra.com)</author><title>          //Retrieve the first test case with its steps              RemoteTestCase      remoteTestC</title><description>          //Retrieve the first test case with its steps              RemoteTestCase      remoteTestCase = spiraImportExport.TestCase_RetrieveById(testCaseId3);         Assert     .AreEqual(     "Test Case 3"     , remoteTestCase.Name);         RemoteTestStep     [] remoteTestSteps = remoteTestCase.TestSteps;         Assert     .AreEqual(2, remoteTestSteps.Length,      "Test Step Count 1"     );         Assert     .AreEqual(     "Test Step 1"     , remoteTestSteps[0].Description);         Assert     .AreEqual(1, remoteTestSteps[0].Position,      "Position 1"     );         Assert     .AreEqual(     "Test Step 2"     , remoteTestSteps[1].Description);         Assert     .AreEqual(2, remoteTestSteps[1].Position,      "Position 2"     );   </description><pubDate>Thu, 09 Jun 2011 16:18:50 -0400</pubDate><a10:updated>2011-06-09T16:18:50-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/90.aspx#reply174</link></item><item><guid isPermaLink="false">messageId=176</guid><author>Margaret D Thomas (mtha@amfpension.se)</author><title>  Thank you! I am trying it now.  I have now gotten past the "Object reference..." error with the sa</title><description>  Thank you! I am trying it now.  I have now gotten past the "Object reference..." error with the sample code you provided but it is returning 0 test cases.  However, it appears you have wrote the sample code in .Net and I needed to converted to Java 1.6 which I am writing in IntelliJ :).  So I will play with it from here.  I have a suspicion it is the dates that are not correct.    With this coding method here are some notes to share:  a.  The RemoteFilters array must be defined and initialized as RemoteFilter[] remoteFilter = new RemoteFilter[5] or else testCase_Retrieve will not accet the remoteFilter paramter.  b. With this version, the properties are treated as get and set value methods.  c.  Setting the date range for RemoteFilters uses a calendar type parameter, not date.  Just a note for those who might be doing this in Java.  Thanks.   </description><pubDate>Fri, 10 Jun 2011 12:28:47 -0400</pubDate><a10:updated>2011-06-10T12:28:47-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/90.aspx#reply176</link></item><item><guid isPermaLink="false">messageId=177</guid><author>Margaret D Thomas (mtha@amfpension.se)</author><title>  Where can one find a list of the property names to use with RemoteFilters?   </title><description>  Where can one find a list of the property names to use with RemoteFilters?   </description><pubDate>Fri, 10 Jun 2011 12:32:17 -0400</pubDate><a10:updated>2011-06-10T12:32:17-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/90.aspx#reply177</link></item><item><guid isPermaLink="false">messageId=178</guid><author>Margaret D Thomas (mtha@amfpension.se)</author><title>  I got it!  If there is an interest I can post an example of how to code it using Java  and Intelli</title><description>  I got it!  If there is an interest I can post an example of how to code it using Java  and IntelliJ.    </description><pubDate>Fri, 10 Jun 2011 13:19:07 -0400</pubDate><a10:updated>2011-06-10T13:19:07-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/90.aspx#reply178</link></item><item><guid isPermaLink="false">messageId=227</guid><author>Daisy Dai (dxiaohong@smithmicro.com)</author><title>I go over the  https://www.inflectra.com/SpiraTeam/Downloads.aspx , and cannot find the library whic</title><description>I go over the  https://www.inflectra.com/SpiraTeam/Downloads.aspx , and cannot find the library which can be added in my IDE. Where can I found it(the jar file)? </description><pubDate>Thu, 21 Jul 2011 13:55:20 -0400</pubDate><a10:updated>2011-07-21T13:55:20-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/90.aspx#reply227</link></item><item><guid isPermaLink="false">messageId=3180</guid><author>Enrico Ariatta (enrico.ariatta@assioma.net)</author><title> Hello,     a code example will be appreciated :)     thank you </title><description> Hello,     a code example will be appreciated :)     thank you </description><pubDate>Wed, 06 Dec 2017 16:38:39 -0500</pubDate><a10:updated>2017-12-06T16:38:39-05:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/90.aspx#reply3180</link></item></channel></rss>