RQM REST API - PUT example?
I'm looking for a good example that shows how to use the RQM REST API to update records in RQM (particularly, execution records).
I can retrieve information using the RQMUrlUtility for an execution record: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <<<<<RQMUrlUtility>>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RQMUrlUtility: Connected to localhost:9443 using project "Quality+Manager" Aug 10, 2009 3:13:07 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded INFO: Redirect requested but followRedirects is disabled RQMUrlUtility: Calling method to retrieve XML from a specified URL RQMUrlUtility: Server Response code: 200 Aug 10, 2009 3:13:07 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended. RQMUrlUtility: XML string retrieved from URL : "https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/executionresult/urn:com.ibm.rqm:executionresult:17 " is written to file located at -: " c:\temp\execrecFail.xml " But if I try to update that record (using the XML previously retrieved), I get an HTTP code 400: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <<<<<RQMUrlUtility>>>>> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RQMUrlUtility: Connected to localhost:9443 using project "Quality+Manager" Aug 10, 2009 3:17:00 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded INFO: Redirect requested but followRedirects is disabled RQMUrlUtility: Calling method to upload XML from a specified file to URL RQMUrlUtility: Server Response code: 400 Aug 10, 2009 3:17:00 PM org.apache.commons.httpclient.HttpMethodBase getResponseBody WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended. I'd be interested in seeing an XML file that could be used with RQMUrlUtility to update an RQM record..... |
14 answers
I there anyway to populate the "Primary Text" filed for a requirement artifact using the Excel Exporter or any other API?
|
I there anyway to populate the "Primary Text" filed for a requirement artifact using the Excel Exporter or any other API? The primary text field can't be written to with the RQM API. I checked the RRC wiki at https://jazz.net/wiki/bin/view/Main/RRCHome and it mentioned CSV Import and Office Document Import. Maybe one of these would work for you. - Rob |
Hi -
I am able to get RQMI running. I then run the export from my DOORS module. The problem is that I never see the requirements show up in RQM. I saw the following snippet of an error in my RQM Tomcat console window: "RQM Server refused to accept this connection. The returned Test Plan will not contain requirements from the RM server." Am I missing something that the documentation hasn't explained? Do I need to have the requirements module set up for RQM? In other words, do I need to configure RRC as a container for RQM's requirements? I played around with it but didn't get it working. I recall that the RQM 2.0.1 / DOORS 9.2 integration created RQM requirements. I imagine the same is for the new integration (3.0.1 / 9.3.0.4). Help!! |
Dear All,
Thanks for the above answers this has solved one of my issues , with the help of above answers I am able to update the execution records in rqm given its ID but i need things like 1. in the given PUT command example we are able to get the xml in the file provided in command , is it possible to get xml packet in return instead of physical file , though i can read xml from the file but sometimes its not possible to create files due to some security reasons. 2. in the above PUT command example we can update the status of the test case execution record given the execution table record ID which always increments when any testcase is executed . SO is there any way that we can insert a test case execution record instead of updating it. 3. how can we programmatically execute the test case in rqm with the help of any utility. |
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.