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

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

 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?

0 votes



One answer

Permanent link

 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

0 votes

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
× 10,953

Question asked: Jul 25 '19, 1:47 p.m.

Question was seen: 2,992 times

Last updated: Jul 26 '19, 6:52 a.m.

Confirmation Cancel Confirm