Path to finding a Test Case using OSLC, REST API or CLI
![](http://jazz.net/_images/myphoto/bb88280b3f009de4c6b6c473509ee1f5.jpg)
I am trying to use the OSLC to get a list of my Test Cases from my Test Plans.
<!-- Quality Management services catalog -->
<oslc_qm:qmServiceProviders
xmlns:oslc_qm="http://open-services.net/xmlns/qm/1.0/"
rdf:resource="https://zzzzzz.zzzz.zzzz.zzzz:9443/qm/oslc_qm/catalog" />
<oslc:ServiceProvider ns12:type="oslc:ServiceProvider" rdf:about="https://zzzzzz.zzzz.zzzz.zzzz:9443/qm/oslc_qm/contexts/_rutRAgjwEee_eeoOInJ4Vg/services.xml">
Services:
<oslc:queryBase rdf:resource="https://zzzzzz.zzzz.zzzz.zzzz:9443/qm/oslc_qm/contexts/_rutRAgjwEee_eeoOInJ4Vg/resources/com.ibm.rqm.planning.VersionedTestPlan"/>
This is where i am stuck at...
Within that last call (Planning.VersionTestPlan) I do find my Title:
<dcterms:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">SandboxForIBMTools</dcterms:title>
![](https://i.stack.imgur.com/U9oyz.png)
So now I am trying to get a list of Test Cases (3058 and 3057). I tried doing every link inside the </df:Description> tag but it would only open up the page itself in a browser.
![](https://i.stack.imgur.com/fRi2I.png)
What I am wanting to accomplish is to:
1) Pick any Test Case and run it.
2) Go into one of those and get the Test Scripts list (and do the same as #1 after that).
One answer
![](http://jazz.net/_images/myphoto/bb88280b3f009de4c6b6c473509ee1f5.jpg)
Hi David, you could use the path below..
OSLC:
Services:
<oslc:queryBase rdf:resource="https://zzzzzz.zzzz.zzzz.zzzz:9443/qm/oslc_qm/contexts/_rutRAgjwEee_eeoOInJ4Vg/resources/com.ibm.rqm.planning.VersionedTestPlan"/>
GET on above OSLC link gives you an RDF with list of testplans in the project and OSLC links to each of them.
A further GET on those individual testplan OSLC links gets you the individual testplan RDF which also contains linked testcase links.
REST:
You could use "field" filtering option to query linked test resources.
https://jazz.net/wiki/bin/view/Main/RqmApi#SupportedFieldsResources
But OSLC querying works best for your use case...
Best Regards
Sunil