Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用项目范围查询测试用例结果?
TestCaseResult 对象不包含项目范围,并且对 testcaseresults 的查询似乎忽略了项目范围。
那么有没有办法,例如,查询过去 14 天内在特定项目及其子项目范围内的所有测试用例结果?
在标准 WSAPI 中,您可以执行以下操作:
((TestCase.Project.Name = "My Project") AND (CreationDate > "2013-01-07"))
或者
((TestCase.Project.ObjectID = "12345678910") AND (CreationDate > "2013-01-07"))
在 TestCaseResults 上,它应该为您提供项目范围的 TCR。
如果您需要子项目,则需要运行多个查询,或者执行一些复杂的 AND'ing。