Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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

0 votes

Comments

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

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

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.

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 45
× 17
× 9
× 2

Question asked: Sep 23 '15, 5:32 a.m.

Question was seen: 3,735 times

Last updated: Sep 23 '15, 11:12 a.m.

Confirmation Cancel Confirm