It's all about the answers!

Ask a question

How to create RQM testcases using REST api?

Khajan Pandey (152) | asked Sep 13, 9:42 p.m.
edited Sep 13, 9:43 p.m.

 I am doing a PUT request on below url :

with string in body as 

<?xml version="1.0" encoding="UTF-8"?>
<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>

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

permanent link
Karthik Sirimulla (41) | answered Sep 13, 11:19 p.m.

 Hi Khajan,

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

Thanks & Regards,

Khajan Pandey selected this answer as the correct answer

Khajan Pandey commented Sep 14, 9:19 p.m.

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 .

Khajan Pandey commented Sep 17, 10:53 a.m.

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

Your answer

Register or to post your answer.