How to effectively use RQM snapshots with RPE?
The RQM Reportable REST API says that you can query a resource using a revision parameter, where the value of the parameter is the revision number. (See https://jazz.net/wiki/bin/view/Main/RqmApi#revision)
I have an RPE template that takes as an initial data source a feed of all the test plans in a project. The RPE template then cycles through the test plan feed and dynamically configures a new data source to get the details of each individual test plan, and proceeds to print out a bunch of stuff in the individual test plan (test plan attributes, test cases, etc).
In RQM, I've applied a snapshot to each of the test plans to denote a certain milestone in our project. Each test plan snapshot has been given the same name (call it "Foo"), but RQM assigns each snapshot a unique revision number. What I would like to be able to do is run the RPE template and have it only print out what's in the snapshot "Foo" for all test plans. But the revision parameter expects a revision number, not a snapshot name. In other words, it expects me to supply the unique revision number for each test plan instead of allowing me to address the entire feed of plans with a single snapshot name or revision number. So I'm stuck.
Is there a good way to accomplish what I'm trying to do?
Thanks,
Joe
I have an RPE template that takes as an initial data source a feed of all the test plans in a project. The RPE template then cycles through the test plan feed and dynamically configures a new data source to get the details of each individual test plan, and proceeds to print out a bunch of stuff in the individual test plan (test plan attributes, test cases, etc).
In RQM, I've applied a snapshot to each of the test plans to denote a certain milestone in our project. Each test plan snapshot has been given the same name (call it "Foo"), but RQM assigns each snapshot a unique revision number. What I would like to be able to do is run the RPE template and have it only print out what's in the snapshot "Foo" for all test plans. But the revision parameter expects a revision number, not a snapshot name. In other words, it expects me to supply the unique revision number for each test plan instead of allowing me to address the entire feed of plans with a single snapshot name or revision number. So I'm stuck.
Is there a good way to accomplish what I'm trying to do?
Thanks,
Joe
Accepted answer
hi Joe,
If you want to GET a specific snapshot, the revision parameter only accepts the revision number, but not the name.
RQM REST API supports the PROPFIND request to retrieve the snapshots list
However, I'm afraid RPE only supports GET request, you may need to script your own PROPFIND request, which I think is not easy..
If you want to GET a specific snapshot, the revision parameter only accepts the revision number, but not the name.
RQM REST API supports the PROPFIND request to retrieve the snapshots list
(see https://jazz.net/wiki/bin/view/Main/RqmApi#Read_a_List_of_Snapshots), and you can get the revision number there given its title.
However, I'm afraid RPE only supports GET request, you may need to script your own PROPFIND request, which I think is not easy..
Comments
Thanks for the answer. I wish that the snapshot feature for QM worked like it does in RM -- i.e., where you can apply a single snapshot to an entire project and then use the ID of that snapshot in RPE queries.
Regards,
Joe
PS - For anyone interested in how this is done for RM, see the following link:
https://jazz.net/forum/questions/116275/how-to-query-an-rrc-baseline-with-rpe?utm_campaign=forum&utm_medium=email&utm_source=forum-new-answer&utm_content=forum-question