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

How to create xml representation of resources(testsuite,testcase) in RQM?

 Hi,

If any body can  provide the sample xml representation of resources(i.e testcases,testsuite) ,while creating them(testcases,testsuite or any resources) by making POST call in RQM.
I am getting 200 status code. but the resources are not getting created in Quality management.
Links are not much use, i already searched and implemented but not much use.
I need xml format and corresponding uri for created resources.

Thanks & Regards,
MD.Sajid.

0 votes


Accepted answer

Permanent link

Your best bet is to perform a GET (using the REST API) on an existing artifact (TestCase, TestSuite..etc) in your QM project area to analyze the XML 

You can use this as a basis of your PUT to create a new artifcat

Here is an example of a GET for the Test Case

Syntax

GET https://<HOST>:<PORT</qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectArea>/testcase/<Test Case ID>
 
Example
 

Be sure to include the Header/Value
Accept         application/xml

This will return the XML for the Test Case that you can use as a guide to create a new Test Case artifact

Mohd Sajid selected this answer as the correct answer

0 votes

Comments

 HI Ara Masrof,

Thanks for you suggesgtion. Now i able to create RQM artifacts.

Now i am trying to update testcase link in testsuite.How can i link new testcases to already existing testsuite?I tried with PUT to update testsuite with new testcase link but it is not working.  I also want to know will Defects can be created using REST API(either RQM or CCM).


Thanks ,
MD.Sajid.

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

Question asked: Dec 04 '17, 5:51 a.m.

Question was seen: 1,650 times

Last updated: Dec 08 '17, 8:25 a.m.

Confirmation Cancel Confirm