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 |
One answer
Hi again:
Please disregard that one. I found the solution. It turns out that the project alias was not JKE+Banking but rather JKE+Banking+%28Quality+Management%29_2 Sleeping on it often helps! Regards, ric |
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.