It's all about the answers!

Ask a question

When using RQM restapi to get the case execution results, get a 400 error!


Hongxi Fang (3315) | asked Jul 07 '23, 8:39 a.m.

 

<feedUrl>?fields=feed/entry/content/testplan[customAttributes/customAttribute/name="Build Id" and (customAttributes/customAttribute/value="12356")]/*

If the build id exceeds four digits  an http 4000 error is reported.
if Build Id=1234 the rest api works well
Build Id is defined as a text field

How to solve this issue?

About IBM Engineering Test Management

Version: 7.0.2 SR1



Comments
Hongxi Fang commented Jul 07 '23, 10:50 p.m. | edited Jul 10 '23, 4:15 a.m.

Thank you in advance for your answers.


the api for get the execution results of the cases
my feedUrl: 

return response.status_code(400)

  • if customAttributes/customAttribute/value="1235"(less than five digits),rest api return results normally(HTTP status code=200).
  • If "Build ID" is not a pure number, the rest api work well. like: (customAttributes/customAttribute/value="B1235")
This bug is very strange.








Michael Rowe commented Oct 19 '23, 2:19 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR

Have you tried David's recommendations below?  If so, did it still fail?  If so, did you raise a support request? 

One answer



permanent link
David Honey (1.8k17) | answered Jul 07 '23, 9:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jul 07 '23, 9:35 a.m.

4000 is not a valid HTTP status code. Perhaps you meant 400.
What is feedUrl?

Have you tried performing a GET on the URI of the test execution results?
Alternatively, discover the OSLC Query Capability for TestExecutionRecord and query for it.
See https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/discovery.html and https://docs.oasis-open-projects.org/oslc-op/query/v3.0/os/oslc-query.html

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.