It's all about the answers!

Ask a question

Can't extract testcases via API (Bad Request)


Éric Hamel (3353) | asked Nov 08 '11, 11:57 p.m.
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



permanent link
Éric Hamel (3353) | answered Nov 09 '11, 6:59 a.m.
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


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.