It's all about the answers!

Ask a question

RQM GET Rest api request to extract text from Test Case Design section


Shreejit Nair (1113) | asked Nov 22 '17, 8:48 a.m.

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



permanent link
Ara Masrof (3.2k15) | answered Nov 29 '17, 4:08 p.m.
JAZZ DEVELOPER

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>

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.