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

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"?>
<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 .


0 votes


Accepted answer

Permanent link

 Hi Khajan,


For access/create  test artifacts in RQM through OSLC or REST APIs - 


Thanks & Regards,
Karthik

Khajan Pandey selected this answer as the correct answer

0 votes

Comments

Hi Karthik,

I appreciate quick response . I was following this thread with all necessary headers such as JSESSIONID . but i get 4xx with PUT and body as xml string . Could you help in body of request .
Thank you .

Finally after changing Content-Type ,i could create TestCase .

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,951

Question asked: Sep 13 '20, 9:42 p.m.

Question was seen: 1,285 times

Last updated: Sep 17 '20, 10:53 a.m.

Confirmation Cancel Confirm