RQM GET Rest api request to extract text from Test Case Design section
Hi Folks,
I am looking to extract text from the "Test Case Design" section using RQM REST API get call.
Please let me know how one can do that. I have some text users have entered in the Test Case design section and I need to dynamically extract that content.
Test Case Design section is present on the top left corner.
Please let me know how to retrieve this text.
Shreejit
One answer
You can use the Quality Manager Reportable REST API to obtain the XML of the artifact (in this case a Test Case_)
Syntax
GET https://<HOST>:<PORT</qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectArea>/testcase/<Test Case ID>
Example
https://MyHost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/QMproject+%28Quality+Management%29/testcase/urn:com.ibm.rqm:testcase:1
Be sure to include the Header
Accept application/xml
Once you have the XML, you can parse it looking for the Test Case design section
It will look something like this where "Test 1 2 3 TD design" is the text in the Test Case Design section
<com.ibm.rqm.planning.editor.section.testCaseDesign
xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="RQM-KEY-TC-DESIGN-TITLE">
<div
xmlns="http://www.w3.org/1999/xhtml">Test 1 2 3 TD design
</div>
</com.ibm.rqm.planning.editor.section.testCaseDesign>