How to find parent testcase for testscript via REST-API?
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
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.
Stefan Schroeder
commented Sep 23 '15, 9:44 a.m.
I got it to work with
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
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.