Kyle Ross
Kyle Ross

Reputation: 97

How to determine order of TestSet TestCases with Rally RestApi Request

I am trying to retrieve/determine the order of TestCases within a Rally TestSet using the following:

Request requestTC = new Request(test_set["TestCases"]);
findTCMatchQueryResult = m.myRestApi.Query(requestTC);

However, regardless of whether or not I specify an "Order" of "DragAndDropRank" or do not specify an "Order", I can never retrieve the order of TestSet TestCases that I see in Rally.

For example,

In the Rally website, I have a TestSet with TestCases "X", "Y", and "Z" in that order, but with the above code, I can never seem to get the test cases in that order.

How can I find the order that is shown in the Rally website?

Thanks in advance!

Upvotes: 0

Views: 77

Answers (1)

NotApplicable
NotApplicable

Reputation: 251

"Rank" of things is specified by the DragAndDropRank field. The thing to remember is that DragAndDropRank is specific to the context. For example, if I move TestCases about under the test set in the Iteration Status page, the DragAndDropRank is set for that. If I move TestCases around in the Quality->TestCases page, this is a different context and therefore the "rank" is different. However, they should remain consistent in that if you move TC6 above TC5 in the TestCases page (against other TestCases), then that should be reflected in the Iteration Status page where TC6 and TC5 are under TS2.

The DragAndDropRank field on artefacts is not a number, it is a long hash value encoded with the info needed for both cases.

Upvotes: 1

Related Questions