0

是否可以使用 WSAPI 找到与特定 TestCase 关联的 TestSet 列表?

当您在 Rally 中查看 TestCase 时,您可以简单地单击 TestSet 选项卡,因此这似乎应该是可能的。但是,根据 WSAPI Doc,我看不到如何执行此操作,因为 TestCase 上没有 TestSet 字段。

而且,你似乎不能走另一条路,因为虽然 TestSets 有一个 TestCase 字段,但文档说你不能查询它。那么这是怎么做到的呢?

4

1 回答 1

1

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.

于 2013-01-31T23:14:00.030 回答