Unable to put a Testcell Artifact (RQMURLUtility)
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?
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:
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
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
-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
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?