It's all about the answers!

Ask a question

RQM Copy Utility: How to duplicate Test Case with different Test Case Template


Brian Muse (111) | asked Aug 09 '13, 1:44 p.m.
I am trying to duplicate a Test Case and apply a different Test Case Template. From within RQM if I duplicate a Test Case, it also duplicates all of the sections - I have no option to select a different Test Case Template.
For this reason, I'm attempting to use the command-line method. Below is the latest attempt:

___________________________
SET LOGARTEFACTTYPESPATH=D:/Projects/RQM/Log_Atefacts.txt
SET LOGPATH=D:/Projects/RQM/Log.txt
SET IGNOREARTEFACTLIST=attachment,executionresult,executionsequenceresult,testsuitelog,buildrecord
SET SOURCEURL=https://<server>:<port>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<projectName>
SET DESTINATIONURL=https://<server>:<port>/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Playground

cd /D "C:\Program Files (x86)\Java\jre7\bin"

REM Copy tests
REM  "-tc=testcase/com.ibm.rqm.planning.templates.testcase.template_1375989932726"
java -jar RQMCopyUtility.jar "-s=%SOURCEURL%" "-us=<userName>" "-pws=<userPassword>" "-d=%DESTINATIONURL%" "-ud=<userName>" "-pwd=<userPassword>" "-log=%LOGPATH%" "-i=%IGNOREARTEFACTLIST%" "-a=testcase" "-id=https://<server>:<port>/jazz/web/console/<projectName>#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewTestCase&id=10060" "-f"
pause

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Aug 13 '13, 7:28 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Your RQM Copy Utility command is contains an incorrect -id parameter value.  Instead, it should be the RQM Reportable REST API resource ID (see https://jazz.net/wiki/bin/view/Main/RqmApi#id and https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Usage_Examples). 

Your answer


Register or to post your answer.