OSLC url to get all test cases from project area
One answer
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