It's all about the answers!

Ask a question

Reuse test case/test plan template created in other project?


Sandra Chen (36131) | asked Dec 01 '09, 1:42 a.m.
JAZZ DEVELOPER
Hi there,

Could anyone please advise if there is a way to reuse the custom test plan or test case template, which is created in another project area?

Look forward to your adive.

Thank you in advance.

Regards,

Sandra

9 answers



permanent link
John Nason (2.4k1012) | answered Dec 02 '09, 10:56 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi Sandra,
The easiest way will be arriving in 2.0.1, where you can do a direct copy in the UI. (https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/21563)

In the mean time, you can use the command line RQM Copy Tool.
The download is here: https://jazz.net/downloads/rational-quality-manager/releases/2.0.0.1/RQM-Extras-RQMCopyUtil-2.0.0.1.zip
The doc is here: https://jazz.net/wiki/bin/view/Main/RQMCopyUtility

Hope that helps.
John

Hi there,

Could anyone please advise if there is a way to reuse the custom test plan or test case template, which is created in another project area?

Look forward to your adive.

Thank you in advance.

Regards,

Sandra

permanent link
Ana Lopez-Mancisidor (25648967) | answered Dec 03 '09, 3:08 a.m.
JAZZ DEVELOPER
And what about the test plan and test case templates? User does not want
to copy test assets, just the templates (customized sections and
categories) they have defined for a project area.

They want to have the same RQM customized template for every project
area without having to customize it again every time there is a new
project area.

Thanks,

Ana

permanent link
John Nason (2.4k1012) | answered Dec 07 '09, 4:09 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi Ana,
My reply applies to Templates as well.
Regards,
John

And what about the test plan and test case templates? User does not want
to copy test assets, just the templates (customized sections and
categories) they have defined for a project area.

They want to have the same RQM customized template for every project
area without having to customize it again every time there is a new
project area.

Thanks,

Ana

permanent link
Manesh Kaniti (26104) | answered Dec 16 '09, 2:04 a.m.
Hi John,

Thanks for your info.

I have used as per your suggestion but I am not able to copy the testplan templates from one project to another.

Pls find the syntax:

java -jar RQMCopyUtil.jar -s=https://localhost:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/IBM -us=manesh -pws=madhu73 -d=https://localhost:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/VFCzech -a=testplan -l=importlog.txt


Pls find the log file :


Dec 16, 2009 12:29:03 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting processing of artifact type: testplan
Dec 16, 2009 12:29:04 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Reading feed for artifact type: testplan
Dec 16, 2009 12:29:11 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Done reading feed for artifact type: testplan
Dec 16, 2009 12:29:11 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: testplan urn:com.ibm.rqm:testplan:8
Dec 16, 2009 12:29:15 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: testcase AddNewCustomer_TC.xml
Dec 16, 2009 12:29:17 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: testscript AddNewCustomer_TS.xml
Dec 16, 2009 12:29:23 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
Dec 16, 2009 12:29:26 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
Dec 16, 2009 12:29:29 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: PUT, RC: 400, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.23 - Error report&lt;/title&gt;&lt;style&gt;&lt;H1&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 400 - &lt;/h1&gt;&lt;HR&gt;&lt;p&gt;<b>type</b> Status report&lt;/p&gt;&lt;p&gt;<b>message</b> <u></u>&lt;/p&gt;&lt;p&gt;<b>description</b> <u>The request sent by the client was syntactically incorrect ().</u>&lt;/p&gt;&lt;HR&gt;&lt;h3&gt;Apache Tomcat/5.5.23&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
Dec 16, 2009 12:29:29 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: PUT, RC: 400, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.23 - Error report&lt;/title&gt;&lt;style&gt;&lt;H1&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 400 - &lt;/h1&gt;&lt;HR&gt;&lt;p&gt;<b>type</b> Status report&lt;/p&gt;&lt;p&gt;<b>message</b> <u></u>&lt;/p&gt;&lt;p&gt;<b>description</b> <u>The request sent by the client was syntactically incorrect ().</u>&lt;/p&gt;&lt;HR&gt;&lt;h3&gt;Apache Tomcat/5.5.23&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
Dec 16, 2009 12:29:29 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: PUT, RC: 400, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.23 - Error report&lt;/title&gt;&lt;style&gt;&lt;H1&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 400 - &lt;/h1&gt;&lt;HR&gt;&lt;p&gt;<b>type</b> Status report&lt;/p&gt;&lt;p&gt;<b>message</b> <u></u>&lt;/p&gt;&lt;p&gt;<b>description</b> <u>The request sent by the client was syntactically incorrect ().</u>&lt;/p&gt;&lt;HR&gt;&lt;h3&gt;Apache Tomcat/5.5.23&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
Dec 16, 2009 12:29:29 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: General REST Exception: RestException executing: PUT, RC: 400, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.23 - Error report&lt;/title&gt;&lt;style&gt;&lt;H1&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 400 - &lt;/h1&gt;&lt;HR&gt;&lt;p&gt;<b>type</b> Status report&lt;/p&gt;&lt;p&gt;<b>message</b> <u></u>&lt;/p&gt;&lt;p&gt;<b>description</b> <u>The request sent by the client was syntactically incorrect ().</u>&lt;/p&gt;&lt;HR&gt;&lt;h3&gt;Apache Tomcat/5.5.23&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;


Thanks,
Manesh

permanent link
David Moss (171156) | answered Dec 16 '09, 11:55 a.m.
kmanesh,

Make sure you are referencing the &quot;Alias&quot; (the original name) of both source and destination projects using that utility. I received similar errors due to not using the right project name (our projects had been renamed a couple of times).

Find alias names here:

https://&lt;server&gt;:&lt;port&gt;/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/projects

permanent link
Manesh Kaniti (26104) | answered Dec 21 '09, 4:20 a.m.
Hi caimoss,

Thanks for your response.

I have given correct Alias name then also I am getting same error.

Can you pls help me on this ??

Thanks,
Manesh


kmanesh,

Make sure you are referencing the &quot;Alias&quot; (the original name) of both source and destination projects using that utility. I received similar errors due to not using the right project name (our projects had been renamed a couple of times).

Find alias names here:

https://&lt;server&gt;:&lt;port&gt;/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/projects

permanent link
Sumant Bhattacharya (1111) | answered Mar 31 '10, 7:54 p.m.
Hi Everyone,

RQM V2.0.1 does 'not' appear to offer the facilities to 'copY' Test Plan Templates and Test Case Templates across to a different P.A. The facilities available under RQM V2.0.1 are:

a) Run a DOS command ('copySettings'. This is well documented under RQM Help.
b) Use the RQM end-user Web UI to copy Test Assets (TPs; TCs; TSs etc) in one-shot by selecting all the assets. Obviously, you need to use the View for each of these assets one at a time.
CAUTIN: Any duplicate TCs and TSs will be copied as &quot;opy of TCxxxxx' and/or 'Copy of TSyyyy'
(eg. if you have orphan TCs and TSs, as well as others that are owned by TPzzzz and you copied all the TCs and TPs for the corresppodning view).

The above are the only two options. However, there seems to be 'no way' to copy TP and TC Templates from either of the above two ways.
Thus, if I have created my Own TP template (eg. IBM's UMF 7.5 WP-based TP Templates), I cannot copy these across. The 'Manage Templates' Section does have a 'copy' icon, however, its offerings has not changed from pervious version - thus can only copy within the 'same' PA.

Regards,

Sumant Bhattacharya
IBM, Australia


Hi Sandra,
The easiest way will be arriving in 2.0.1, where you can do a direct copy in the UI. (https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/21563)

In the mean time, you can use the command line RQM Copy Tool.
The download is here: https://jazz.net/downloads/rational-quality-manager/releases/2.0.0.1/RQM-Extras-RQMCopyUtil-2.0.0.1.zip
The doc is here: https://jazz.net/wiki/bin/view/Main/RQMCopyUtility

Hope that helps.
John

Hi there,

Could anyone please advise if there is a way to reuse the custom test plan or test case template, which is created in another project area?

Look forward to your adive.

Thank you in advance.

Regards,

Sandra

permanent link
John Nason (2.4k1012) | answered Apr 01 '10, 10:44 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
There was an issue using the copy tool to copy some templates that was fixed in the 2.0.1 release of the copy tool.
You can get that release right here: https://jazz.net/downloads/rational-quality-manager/releases/2.0.1/RQM-Extras-RQMCopyUtil-2.0.1.zip

Regards,
John Nason

permanent link
Marc van Lint (852129) | answered Apr 01 '10, 4:01 p.m.
JAZZ DEVELOPER
Just an alternative: I created various XML files which are templates for TP, TC, TS... I load them with 1 DOS bat file into a project. It sets templates, categories etc. It works fine for RQM2.0. I've even defined a master testplan template for 201.

Check for some samples: http://business.vanlint5.nl/rqm/cust.html (see Catogories.zip).

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.