Can't extract testcases via API (Bad Request)
Hi:
I have CLM 3.0.1.1 installed and the MtM sample project all setup. I can see via the Web interface that I have 27 testcases loaded.
I am trying to use the URLUtility to GET either a list of testcases or testcase #1 but no matter what I try, I get a 400 error code.
I have added some console messages to the source code to see what is happening. I can login correctly with code 200, although I get the following message:
8-Nov-2011 11:21:14 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
I have used the following URLs to extract the list:
https://<myHost>:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking/testcase
https://<myHost>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking/testcase
I have used the following URLs to extract testcase #1:
https://<myHost>:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking/testcase/urn:com.ibm.rqm:testcase:1
https://<myHost>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking/testcase/urn:com.ibm.rqm:testcase:1
All those attempts have resulted in:
RQMUrlUtility: Method failed: HTTP/1.1 400 Bad Request
What am I doing wrong?
-- ric
I have CLM 3.0.1.1 installed and the MtM sample project all setup. I can see via the Web interface that I have 27 testcases loaded.
I am trying to use the URLUtility to GET either a list of testcases or testcase #1 but no matter what I try, I get a 400 error code.
I have added some console messages to the source code to see what is happening. I can login correctly with code 200, although I get the following message:
8-Nov-2011 11:21:14 PM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded
INFO: Redirect requested but followRedirects is disabled
I have used the following URLs to extract the list:
https://<myHost>:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking/testcase
https://<myHost>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking/testcase
I have used the following URLs to extract testcase #1:
https://<myHost>:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking/testcase/urn:com.ibm.rqm:testcase:1
https://<myHost>:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking/testcase/urn:com.ibm.rqm:testcase:1
All those attempts have resulted in:
RQMUrlUtility: Method failed: HTTP/1.1 400 Bad Request
What am I doing wrong?
-- ric