如何在 Rally java api 中从测试用例查询测试步骤

how to query teststep from testcase in Rally java api

我可以获取包含测试用例名称和其他详细信息的测试用例结果。但是我无法获得测试用例的测试步骤。我的查询包含 steps 属性,它有 teststep url 与之关联。有没有一种方法可以获取测试用例的测试步骤详细信息

  //create new QueryRequest
 QueryRequest tests = new QueryRequest("Test Case");

 tests.setFetch(new Fetch("FormattedID","Name","Owner","Test Folder","steps","LastRun"));

  // Query Rally
  QueryResponse queryResponse = restApi.query(tests);

是的,您只需要发出第二个请求来补充每个相关测试用例的步骤。

你可以在这里查看这个例子,这是一个故事的缺陷:

https://github.com/RallyTools/RallyRestToolkitForJava/blob/master/src/main/resources/examples/com/rallydev/rest/CollectionQueryExample.java