Cannot retrieve test case folders using SOAP API function TestCase_Retrieve

Tuesday, August 21, 2012
Avatar
Hello

I'm using TestCase_Retrieve to retrieve test cases and folders by name (using property Name). It works fine with test cases, but not with test case folders.

How can you retrieve test case folders using the SOAP API ?

Thanks
2 Replies
Tuesday, August 21, 2012
Avatar
re: nicolas.bernier Tuesday, August 21, 2012
The API follow the SpiraTeam user interface and as such when you retrieve a test case using that function, it will return the test case and all parent folders that contain the test case. Consequently (like the UI), it only will find test cases that match the filter not folders. To get folders you'd need to retrieve all the folders and the iterate through them to get a match.
Tuesday, August 21, 2012
Avatar
re: inflectra.david Tuesday, August 21, 2012
Thanks.

Anyway, a TestCase_RetrieveFolder would ve very convenient for automated migration processes, retrieving the whole tree can be very expensive with a large amount of folders and test cases.

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Tuesday, August 21, 2012
  • Last Reply: Tuesday, August 21, 2012
  • Replies: 2
  • Views: 2653