How to create RQM testcases using REST api?
I am doing a PUT request on below url :
https://<server-url>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<Project-Id>/testcase/
with string in body as
<?xml version="1.0" encoding="UTF-8"?>
<testcase xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns10="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns11="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns12="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns7="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1">
<id>https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<project-id>/testcase</id>
<ns4:title>RQM Test Case</ns4:title>
<ns4:category value="Unit Test" term="Test Phase"/>
<ns4:description>Hi, by using RQM Rest API</ns4:description>
<ns5:state>com.ibm.rqm.planning.common.new</ns5:state>
</testcase>
It gives me 400 with error message "Cannot create or update a resource of type testcase with a missing ID". Please suggest what is right PUT/POST with body .
Thank you .
Accepted answer
Hi Khajan,
For access/create test artifacts in RQM through OSLC or REST APIs -
Please refer to : https://sleroyblog.wordpress.com/2013/04/09/querying-rqm-40-through-oslc-and-rest-api/
Thanks & Regards,
Karthik