It's all about the answers!

Ask a question

How to create a suite execution record using RQM Reportable REST API?


Daniel Connell (127) | asked Jan 09 '18, 9:09 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR

I am working with TDP REST APIs. I got to know that to create a suite execution record, we need to create an iteration first, and then attach that iteration url in testphase xml and then attach this testphase url at a node in suite execution recors xml. But i am not able to figure out what values do we provide in that xml? Can anyone please help!

One answer



permanent link
Donald Nong (14.5k614) | answered Jan 11 '18, 4:54 a.m.

It's simple and easy by checking the XML presentation of any existing resources.

I'm not sure what "TDP REST API" is. But for RQM Reportable REST API, the workflow is like this.

1. Find out the URI for an existing iteration (there is no REST API to create an iteration).

2. Use the POST operation to create a test phase, and the request body (XML) should include
<ns2:iteration href="https://clm.jkebanking.net:9443/qm/process/project-areas/_8aqdofQkEeex1tX1crJPcQ/timelines/_8kM0IPQkEeex1tX1crJPcQ/iterations/_q6R6pvQlEeex1tX1crJPcQ"/>
<ns2:testplan href="https://clm.jkebanking.net:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Money+that+Matters+%28Quality+Management%29/testplan/urn:com.ibm.rqm:testplan:10" />

3. If successful, the response header "Location" contains the "slug" ID for the new test phase.

4. Use the POST operation to create a test suite execution record, and the request body (XML) should include
<ns2:testplan href="https://clm.jkebanking.net:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Money+that+Matters+%28Quality+Management%29/testplan/urn:com.ibm.rqm:testplan:10"/>
<ns2:testsuite href="https://clm.jkebanking.net:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Money+that+Matters+%28Quality+Management%29/testsuite/urn:com.ibm.rqm:testsuite:7"/>
<ns2:testphase href="https://clm.jkebanking.net:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Money+that+Matters+%28Quality+Management%29/testphase/slug__cY9gEvazEeex1tX1crJPcQ"/>
Note: the test plan should be the same as the one at step 2, and the test suite should be associated in the same plan.

5. If successful, the response header "Location" contains the "slug" ID for the new test suite execution record.

For more information, see https://jazz.net/wiki/bin/view/Main/RqmApi

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.