Is it possible to find the list of TestSets associated with a particular TestCase using the WSAPI?
When you are looking at a TestCase in Rally, you can simply click on the TestSet tab, so it seems this should be possible. However, according to the WSAPI Doc, I don’t see how to do this because there is no TestSet field on a TestCase.
And, you can’t seem to go the other way, since though TestSets have a TestCase field, the doc says you can’t query against it. So how is this done?
I wish I had a better answer for you, but unfortunately this is a somewhat annoying quirk of the WSAPI data model when it comes to Test Cases. As you’ve observed, unfortunately there’s not a Test Set attribute on Test Cases.
The only way to really handle this is client side, and it’s somewhat painful. You have to obtain the TestCases collection off of each TestSet, and then loop through that collection (an array of TestCase ref’s) to see if there’s a match with your particular TestCase of interest.