Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link
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

0 votes

Your answer

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

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 08 '11, 11:57 p.m.

Question was seen: 4,239 times

Last updated: Nov 08 '11, 11:57 p.m.

Confirmation Cancel Confirm