It's all about the answers!

Ask a question

how to get the testcase steps ?


george claud (12811) | asked May 01 '14, 11:19 a.m.

I need help in getting a testcase steps using(someone told me this is the only way to comunicate from c# with IBM CLM QM) :

Rational Quality Manager Reportable REST API

and/or

Rational Quality Manager (RQM) Open Services for Lifecycle Collaboration (OSLC) Quality Management (QM) Version 2 (V2) API

From my research a possible way to add test steps to a testcase is to add a manual script and in the manual script add the test steps. Then the manual scritp needs to be associated with a testcases.

By reading :

Rational Quality Manager Reportable REST API

Rational Quality Manager (RQM) Open Services for Lifecycle Collaboration (OSLC) Quality Management (QM) Version 2 (V2) API

I couldnt find how to retreive the test steps...

Please can you help me ?

Accepted answer


permanent link
Ara Masrof (3.2k15) | answered May 01 '14, 12:03 p.m.
JAZZ DEVELOPER
edited May 01 '14, 12:05 p.m.
 A 'step' is a part of the XML of Test Script; so you would need to return the XML of a specific Test Script and parse through it looking for the step information 

You can using the REST API to return the Test Script data in XML
For example:
GET https://clm:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/LPA+project+1+%28Quality+Management%29/testscript/urn:com.ibm.rqm:testscript:34

Where....
Public URI is "clm:9443"
My QM Project is : LPA+project+1+%28Quality+Management%29
My Script ID is 34

Also be sure to use the Request header 'accept' with a value of  text/xml or application/xml  in your request
This will return the xml of the test script; you then would need to then parse out the data you are interested in 

For more information about the QM REST API see the WIKI linked below
Ara

george claud selected this answer as the correct answer

One other answer



permanent link
Stephane Leroy (1.4k149) | answered May 06 '14, 8:54 a.m.
JAZZ DEVELOPER
Hi George,
in addition to Ara's answer, making you aware of a list of samples on how to access/create resources in RQM (through both REST API & OSLC): 
http://sleroyblog.wordpress.com/2013/04/09/querying-rqm-40-through-oslc-and-rest-api/
Regards,
Stéphane


Comments
george claud commented May 06 '14, 8:58 a.m.

Thanx.
From you blog is not clear what is the difference between OSCL and REST APIS.
Boths seems to be HTTP adresses....
?


Stephane Leroy commented May 06 '14, 9:50 a.m. | edited May 06 '14, 9:52 a.m.
JAZZ DEVELOPER

Yes. Both are HTTP based.

For you to better differentiate between OSLC and REST API (esp. from an RQM perspective), you could check comparison table appearing here: https://jazz.net/wiki/bin/view/Main/RqmOslcQmV2Api#RQM_Reportable_REST_API

Adding that, if you want more insight on OSLC, you could check:
http://open-services.net/
You could also check the OSLC workshop on Jazz.net:
https://jazz.net/library/article/635

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.