It's all about the answers!

Ask a question

Unable to put a Testcell Artifact (RQMURLUtility)


Davide Caroselli (1122) | asked Jul 22 '11, 6:41 a.m.
Hello,

I've some problems putting a testcell with the RQMURLUtility. The first command is a GET request for retrieving the right XML:

java -jar RQMUrlUtility.jar -command GET -user ****** -password ****** -filepath data.xml -url https://******:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testcell/TE1

the result of course is a xml file containing the Testcell with id TE1.
But when I try to execute the PUT request:

java -jar RQMUrlUtility.jar -command PUT -user ****** -password ****** -filepath data.xml -url https://******:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Quality+Manager/testcell/TE1

this is the result:

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<<<<<RQMUrlUtility>>>>>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

RQMUrlUtility: Connected to https://******:9443 using project "Quality+Manager"
22-lug-2011 12.37.47 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
22-lug-2011 12.37.47 org.apache.commons.httpclient.HttpMethodBase getResponseBody
WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

a BadRequest error is thrown. Does someone have the same problem? what is the solution? what I'm doing wrong?

2 answers



permanent link
Pramod Chandoria (2.1k11220) | answered Jul 22 '11, 9:41 a.m.
JAZZ DEVELOPER
I tested it on RQM 301 and it seems working fine for me.

-command PUT -user someuser -password somepassword -filepath C:/Cell.XML -url https://somewhere:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Some Project/testcell/TE1 -context qm

Make sure you specified
-context jazz
if you are using previous version of RQM 2.x

You can also try using POST in the poster add on in the Firefox browser to double check the response error.

-|- Pramod Chandoria

permanent link
Davide Caroselli (1122) | answered Jul 29 '11, 6:54 a.m.
I tested it on RQM 301 and it seems working fine for me.

-command PUT -user someuser -password somepassword -filepath C:/Cell.XML -url https://somewhere:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Some Project/testcell/TE1 -context qm

Make sure you specified
-context jazz
if you are using previous version of RQM 2.x

You can also try using POST in the poster add on in the Firefox browser to double check the response error.

-|- Pramod Chandoria


well, I use the RQMURLUtility version 2, so no "context" param is expected. So, it's a bug of the version 2.x of RQM, isn't it?

Your answer


Register or 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.