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

RQM: How to get Snapshot list for test artifacs

Hello,

we need a list for test artifacts (e.g. test script or test case) with all available snapshots.

Offers RQM reports for that use case?

How we can get the information via REST API?

Our use case: We request that after a review of a test artifact a snapshot is created (According naming conventions the title starts with "Sn_Review_*". Now we need to filter the test artifacts where no "review"-snapshot exists.

  Thanks in advance, Jörg

0 votes


Accepted answer

Permanent link
You may refer https://jazz.net/wiki/bin/view/Main/RqmApi#Read_a_List_of_Snapshots

To get a list of snapshots:
HTTP Request: PROPFIND
URL: <resourceUrl>
HTTP Request Header: Accept
HTTP Response Code: 200

You can get snapshots for a testplan using  
https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<PAAlias>/testplan/urn:com.ibm.rqm:testplan:1?snapshot
Jörg Werner selected this answer as the correct answer

0 votes

Comments

Thanks Subramanya!

This works fine for a dedicated test plan/test case.

https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<paalias>/testcase/urn:com.ibm.rqm:testcase:1?snapshot

If I specify no ID I get java errors messages:

https://<server>:<port>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<paalias>/testcase/urn:com.ibm.rqm:testcase?snapshot
{"errorClass":"java.lang.NullPointerException","errorCode":500,"errorTraceMarshall":

Is it possible also to define a filter similar to the GET request (feed url), or can I get only the data for one dedicated test artifact?

  Regards, jörg

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
× 12,019

Question asked: Jan 20 '16, 4:22 a.m.

Question was seen: 2,323 times

Last updated: Jan 21 '16, 6:07 a.m.

Confirmation Cancel Confirm