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

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

0 votes



One answer

Permanent link

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>

0 votes

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
× 10,941

Question asked: Nov 22 '17, 8:48 a.m.

Question was seen: 4,084 times

Last updated: Nov 29 '17, 4:08 p.m.

Confirmation Cancel Confirm