It's all about the answers!

Ask a question

Path to finding a Test Case using OSLC, REST API or CLI


David G (11112) | asked Jul 25 '19, 1:47 p.m.
edited Jul 25 '19, 3:59 p.m.

 I am trying to use the OSLC to get a list of my Test Cases from my Test Plans.


So I start from the beginning using the help from this website.

RootService:
 <!-- 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" /> 


Planning.VersionTestPlan:
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>



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.


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).

I'm looking to do all of this via the OSLC, REST API or CLI. Can you give me some examples of the path I need to follow in order to get to my destination?

One answer



permanent link
Sunil Kumar R (1.1k13044) | answered Jul 26 '19, 6:48 a.m.
JAZZ DEVELOPER
edited Jul 26 '19, 6:52 a.m.

 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

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.