It's all about the answers!

Ask a question

API to fetch test artifact added to a task in RTC


Ajith O M (46634) | asked Aug 05 '19, 8:02 a.m.
edited Aug 05 '19, 9:45 a.m.
Dear Team,
I have added a RQM test case as "Related Test Case" in link option for a rtc task.

I'm getting the below link when trying to access the test artifact using rtc jars.

" https://servername/qm/oslc_qm/contexts/_xv6jsJceEeimPqnRT_G_Q/resources/com.ibm.rqm.planning.VersionedTestCase/_VgZIQS3fEemMnbB5NbqeA "


When I hit this URL in a tab, I get the RQM test artifact properly.
But I would like to have the API to fetch the corresponding artifact. 
Please help me find the REST API to fetch to the artifact?


One answer



permanent link
Ralph Schoon (63.3k33646) | answered Aug 05 '19, 8:43 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

You will have to use the OSLC QM API for that. 


You could use the RTC internal REST Client (see https://rsjazz.wordpress.com/2019/03/07/registering-custom-resource-intensive-scenarios-to-clm-applications/ especially see https://github.com/jazz-community/custom-expensive-scenario-notifier-plainjava ) from the RTC Plain Java Client Libraries. Better would be to use an Eclipse Lyo based API against RQM.  


Comments
Ajith O M commented Aug 05 '19, 9:47 a.m. | edited Aug 05 '19, 9:50 a.m.

Thanks for your response.

I have only got the information from this url : 
How do I find the stream uuid from this url ?
So from this or the details i have from the url, I need to form the rqm REST api url to fetch test artifacts. Can you please help me with the APIs ? 


Ralph Schoon commented Aug 05 '19, 10:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Sorry, but you will have to work om this on your own. Here some hints:

  1. Read https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding
  2. Read up on OSLC and REST APIs especially OSLC headers 
  3. Get a REST Client like Postman
  4. Use Postman to GET the URI of the element above with proper OSLC version and Accept header
  5.  Look at the returned RDF/XML and understand the data returned. Take it from there. 

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.