How to get resource xml file from .net code?
3 answers
Hi,
I have a requirement to get resource (Test Plan, Test Suite) xml file from .net code. Can someone please help me?
You could use the RQM REST API to extract the test assets from the repository individually or as a XML or JSON feed (see http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/topic/com.ibm.rational.test.qm.doc/topics/c_extendrqm.html).
Hi,
I have a requirement to get resource (Test Plan, Test Suite) xml file from .net code. Can someone please help me?
You could use the RQM REST API to extract the test assets from the repository individually or as a XML or JSON feed (see http://publib.boulder.ibm.com/infocenter/rqmhelp/v2r0/topic/com.ibm.rational.test.qm.doc/topics/c_extendrqm.html).
Hi Paul,
I have already gone through the RQM REST API. I'm trying to get xml by HttpResponseMessage but not able to get it.
Thanks,
Swati
You can request and secure document (json/xml etc) from the server using HTTPWebRequest and WebClient in C#. You'll first have to authenticate into the server using OSLC APIs and then request for the secure document. Authentication is one time process and you'll have to set a cookie.
You can see code snippet and read more here -