How to list top-level Test Case folders for a project using WebService?

Tuesday, September 11, 2012 4:28:27 PM
Question #1:
Is it possible to list only the top-level TestCase folders of a project using WebService?

Question #2:
How can I filter a bool property using the WebService?
I'd like to fiter the Folder property of TestCase, and also the Iteration property of Release.
2 Replies
Wednesday, September 12, 2012 8:51:47 PM
Avatar
re: daniel.varhegyi on Tuesday, September 11, 2012 4:28:27 PM

Hi Daniel

1) You would need to use the TestCase_Retrieve() function and then once you get the results, filter the data to only include items where IndentLevel field has a length of 3 and the Folder flag is true:

remoteTestCase.IndentLevel.Length = 3 && remoteTestCase.Folder == true

2) Yes you can filter the Iteration field of release by using a RemoteFilter where StringValue = "Y" and PropertyName = "IterationYn"

Regards

Adam

Wednesday, September 12, 2012 9:57:11 PM
Avatar
re: inflectra.adam on Wednesday, September 12, 2012
Thanks!

And can I filter to the Folder property of the TestCase?

My problem is that we have too many TestCases and I don't want to query all of them..
Statistics
  • Started: Tuesday, September 11, 2012 4:28:27 PM
  • Last Reply: Wednesday, September 12, 2012 9:57:11 PM
  • Replies: 2
  • Views: 487