It's all about the answers!

Ask a question

how to get test plan name associated with a test case name?


Dev K (512833) | asked Oct 21 '13, 8:10 a.m.
My requirement is to find the  test plan name associated with a test case name using code ( RQM REST API). 

Any help would be highly appreciable. 
Thanks,

Regards,
Dev Kashyap.

Accepted answer


permanent link
Antoinette Iacobo (650712) | answered Oct 21 '13, 11:26 a.m.
 Hi Dev,

A query structured below will give you the XML of the test plans that test case X is linked to:    https://URL:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project_alias/testplan?fields=feed/entry/content/testplan/(*|testcase[@href='https://URL:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/project_alias/testcase/urn:com.ibm.rqm:testcase:X'])

I'm not sure if this is the most efficient way, but it does work. 

Toni
Dev K selected this answer as the correct answer

Comments
Dev K commented Oct 22 '13, 1:55 a.m. | edited Oct 22 '13, 2:09 a.m.

 Thanks Antoinette,


i have tried with this, but its showing me error  "404 : The requested resource is not available."can you please provide a small example.? 

many thanks in advance,

regards,
Dev Kashyap.


Dev K commented Oct 22 '13, 6:30 a.m. | edited Oct 22 '13, 6:47 a.m.

 Hi Toni, 


Many thanks for your response. It works for me but i am not getting response only for test case 'X' .. its returning all the test plans and associated test case "href" . Is it possible to get test plan results only for the test case "X".

I have testcase name as a input and i need corresponding test plan ? 

Regards,
Dev Kashyap.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.