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