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

OSLC url to get all test cases from project area

I am trying to get testcases with the following request url:
<server>/qm/oslc/qm/resource/testcase?oslc.where=dcterms:projectArea=<server>/qm/oslc/projectareas/<ItemID>

However, I am getting not found error.

Can someone please help with correct URL?

0 votes



One answer

Permanent link

Hi


I don't know how you created (or made up) your OSLC Query URL - AFAICT the Query Capability for Testcases doesn't look anything like that.

Find the Query Capability forĀ http://open-services.net/ns/qm#TestCaseQuery - that's project-specific and should ALWAYS be found by discovery not by hardcoding - and then ALWAYS either add the configuration as a query parameter like oslc_config.context=https://SERVER:PORT/... or specify the configuration in header Configuration-Context

Using discovery to find the testcase query capability means you'll be able to find any of the other Query Capabilities by similar steps. Also your code will be robust to possible future changes in the query capability URL.

Because the query is configuration-specific (i.e. component- and project-specific) you don't need to use oslc.where specifying the project area;, i.e. a query without oslc.where willl return all the test cases in that configuration.

Even if you did have an oslc.where condition note that the correct syntax for any URI/URL in oslc.where/oslc.prefix is to surround it with literal < >.

And all HTTP query parameter values (e.g. the bit after oslc.where=) must be URL encoded.

Here's an example query URL from one of the configurations in my project+component

1 vote

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
× 11,089

Question asked: Nov 20 '25, 10:40 a.m.

Question was seen: 1,037 times

Last updated: Nov 21 '25, 12:06 p.m.

Confirmation Cancel Confirm