user1553680
user1553680

Reputation: 349

how to query teststep from testcase in Rally java api

I can able to fetch testcase results which contains testcase name and other details . But i couldn't get test step for a testcase . My query contains steps attribute which has teststep url associate with it . is there a way where i can fetch teststep details for a testcase

  //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);

Upvotes: 2

Views: 367

Answers (1)

Kyle Morse
Kyle Morse

Reputation: 8400

Yep, you just need to make a second request to hydrate the steps for each test case in question.

You can check out this example here, which is defects on a story:

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

Upvotes: 1

Related Questions