It's all about the answers!

Ask a question

I need to fetch a few fields off a test plan test scripts

Jigar Shah (133) | asked Jan 13 '16, 9:04 p.m.
 Hi There,

I am using RQM for my project. I am trying to understand the procedure to implement the following.

When i click a release --> goto test plan --> click on test case the UI contains the list of test cases followed by many columns. 

I want to pull these columns from my java code, or CLI.

I am presently using the RQMUrlUtility.jar, but it only returns me data equivalent to ctrl + u.

Please let me know how i can proceed on this.

Many thanks.

Brett Bohnn commented Jan 14 '16, 1:06 p.m.

Hi Jigar,

Can  you share the RQMURLUtility syntax you are using? Are expecting something other than XML from the GET results from the RQMURlUtility?


Jigar Shah commented Jan 14 '16, 1:11 p.m.

  Hi Brett,

I want to view all the fields of the test cases under a test plan. I means columns such as ID, State, Owner, Validates Requirement.


Accepted answer

permanent link
Brett Bohnn (8591425) | answered Jan 18 '16, 7:28 p.m.
edited Jan 18 '16, 7:29 p.m.
Hi Jigar,

You will have to GET the test case resource and you can retrieve the requirement link using calmlinks=true like this:

The XML from that test case, ID 62, includes ID, priority, state, owner, created by, validates requirement

Without clmlinks=true you will not get the requirement data, e.g. this snippet from a GET on my URL example above:

<ns2:template href=""/><ns2:requirement summary="myReqTest" rel="validates" href=""/></ns2:testcase>


Jigar Shah selected this answer as the correct answer

One other answer

permanent link
Brett Bohnn (8591425) | answered Jan 14 '16, 2:59 p.m.
Hi Jigar,

Have you looked at the fields parameter of the RQM REST API, e.g. something like this?*|testplan[@href='')

To return XML for all test cases associated to test plan ID 23 (in the example above) in RQM project area "myProject"

You can get all the fields from a test case with:

There are other examples here and here


Jigar Shah commented Jan 18 '16, 2:21 p.m. | edited Jan 18 '16, 2:22 p.m.

 Hi Brett,

Thanks for your response. I have managed to make good ground using the reference that you have shared. 


Returns me in XML all the test cases associated with that test plan. Only the test case names. However on the UI, when i click on the testCases i get all test cases details such as ID, Priority, State, Owner, Created By, Anatom Id .. , Validates Requirement. 

Your answer

Register or to post your answer.