It's all about the answers!

Ask a question

How to find parent testcase for testscript via REST-API?


Stefan Schroeder (1123) | asked Sep 23 '15, 5:32 a.m.
I am successfully using curl to download and upload testplans, testcases, testscripts and executionresults. in RQM 5.0.2.

I am given a test script ID and can download the XML-representation.
But the XML does not contain any reference to the parent test case.
But I need this information to retrieve the test script's pre-condition.

How do I query RQM w/ curl/poster to find the parent testcase of a testscript?

Kind regards
Stefan

One answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Sep 23 '15, 7:27 a.m.
edited Sep 23 '15, 7:30 a.m.
You can filter using testscript/@href property as mentioned in https://jazz.net/wiki/bin/view/Main/RqmApi#fields.

Please try URL like below:
https://server:port/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project area alias>/testcase?fields=feed/entry/content/testscase/(testscript[@href='https://server:port /qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projectarea/testscript/<web ID>]|*)

I have not tried this. But this should be similar to https://jazz.net/forum/questions/206593

Comments
Stefan Schroeder commented Sep 23 '15, 9:11 a.m.

Where do I find the closing single quote for the single quote after @href='


Stefan Schroeder commented Sep 23 '15, 9:12 a.m.

Where to put the closing single quote that was opened after @href='


Stefan Schroeder commented Sep 23 '15, 9:27 a.m.

I am assuming, that the quote comes after the webid.

I have tried this, but it gives me a feed with a huge list of TCER, that are completely unrelated to the webId that I have provided.



Subramanya Prasad Pilar commented Sep 23 '15, 11:12 a.m.

Seems there is some issue with the rich text editor while posting answer. Please ignore the typos. Will post my answer after testing at my end. :)

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.