It's all about the answers!

Ask a question

Copy testplan or testcase templates to new created project are


Elena Ljuseva (18277) | asked Sep 25 '12, 5:12 a.m.

It there another way of copying templates of testplan and testcase between project areas then by using CopyUtility tool?

If I have to use CopyUtility tool how do I find the id of the template I want to copy ot the new created project area?

for example: 

Copying a template: (Note that template ids are of the form testplan/<id> or testcase/<id>, depending on the template type)

java -jar RQMCopyUtility.jar -s=https://myhost:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ProjectA -us=ADMIN -pws=ADMIN -a=template -id=testplan/com.ibm.rqm.planning.templates.testplan.template_12345 -l=importlog.txt

How to find out what is the id nummber I have to place instead of 12345 from the example above id=testplan/com.ibm.rqm.planning.templates.testplan.template_

Thanks

One answer



permanent link
Jerry Shengulette (63914) | answered Sep 25 '12, 9:05 a.m.
JAZZ DEVELOPER
Are you familiar with the Mozilla Poster Add-on?  You can find out about how to use it with the RQM REST API feeds here: https://jazz.net/wiki/bin/view/Main/RQMUsingPoster.

In general, to get a list of all the templates (and their ids), you'd use a GET on something similar to this:
https://myServer:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myProj/template

And if you're looking for the template associated with a given artifact, you'd use a GET on something like this:
https://myServer:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/myProj/testcase/urn:com.ibm.rqm:testcase:1   (which would give you the details for test case ID#1).   There is a <template... /> tag toward the end of the returned data.

Comments
Elena Ljuseva commented Sep 25 '12, 9:43 a.m.

Hi Jerry,

Thank you for the useful links, I already tried and got the list og all templates and IDs.

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.