It's all about the answers!

Ask a question

RQMCopy not copying test plan template


Don Cooper (16411) | asked Jan 05 '15, 9:14 a.m.

Enviroment:

RQM 4.0.1, RQMCopy 4.0.1, JRE 7.0, Windows 2008 server R2

From a batch file I'm running:

REM Runn the RQM Copy utility

"C:\Program Files\Java\jre7\bin\java" -jar \\pna401f7070\c632566\RQM-Extras-RQMCopyUtil-4.0.1\RQMCopyUtility.jar -s="https://jts2.ent.corp.bcbsm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CCS_Trial+%28Quality+Management%29" -us=C632566 -pws=58875887aQ! -a=template -id=com.ibm.rqm.planning.templates.testplan.template_1420050166657 -l=\\pna401f7070\c632566\RQM-Extras-RQMCopyUtil-4.0.1\importlog.txt

And the response I get is:

Jan 05, 2015 9:01:53 AM com.ibm.rqm.ct.util.Logger logError
SEVERE: SSL_TLS SSLContext not available
Jan 05, 2015 9:01:53 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Unable to create SSL_TLS context, trying SSLv3
Jan 05, 2015 9:01:57 AM com.ibm.rqm.ct.util.Logger logError
SEVERE: After login, attempt to access init data returned: 404
Jan 05, 2015 9:01:57 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: template com.ibm.rqm.planning.templates.testplan.template_1420050166657
Jan 05, 2015 9:01:57 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: SUCCESS!
I can copy a plan -- even with the 404 error -- but not a template.
Anybody have any insight into this?

2 answers



permanent link
Paul Slauenwhite (8.4k12) | answered Jan 05 '15, 9:40 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
For the id argument, add the testplan/ prefix to the test plan template ID (see Copying a template in https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Usage_Examples).

Comments
Don Cooper commented Jan 05 '15, 9:59 a.m.

Same result.

Do you think it might be an issue using the copy utility to copy a template to the same project area?


Don Cooper commented Jan 05 '15, 10:07 a.m.

I also tried specifying the destination project and I get a string out of bounds error.

SEVERE: Internal error: java.lang.StringIndexOutOfBoundsException: String index out of range: -2


Paul Slauenwhite commented Jan 05 '15, 10:09 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Possibly.  Do you need to copy the template to the same project area or were you just following the usage example?  If so, please open a RQM defect.  Nonetheless, I've updated the usage example (https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Usage_Examples) to copy between different project areas.


Don Cooper commented Jan 05 '15, 10:33 a.m.

I want to copy it to another project area. Does the destination PA have to be configured for plan templates?

After I modified my batch file in accordance with the updated usage example I get new errors:

Jan 05, 2015 10:28:54 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: template testplan/com.ibm.rqm.planning.templates.testplan.template_1420467552818
Jan 05, 2015 10:28:55 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
Jan 05, 2015 10:28:58 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
Jan 05, 2015 10:29:01 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
Jan 05, 2015 10:29:04 AM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
Jan 05, 2015 10:29:07 AM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: GET, RC: 400, message: Error 400: SRVE0295E: Error reported: 400

Jan 05, 2015 10:29:07 AM com.ibm.rqm.ct.util.Logger logError
SEVERE: General REST Exception: RestException executing: GET, RC: 400, message: Error 400: SRVE0295E: Error reported: 400

Paul Slauenwhite commented Jan 05 '15, 1:12 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Don, please open a defect so we can investigate.  Also, please add a link to the defect to this post for others to benefit.



Don Cooper commented Jan 20 '15, 10:14 a.m.

This issue is yet unresolved. Does anyone have any input? Http requester and Post have both proven to be unreliable in the results they return when trying to analyze the problem.


Don Cooper commented Jan 20 '15, 12:20 p.m.

I can enter the fully qualified Integration API URL to the resource in a browser and get the XML returned just fine.

https://jts2.ent.corp.bcbsm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/CCS_Trial+%28Quality+Management%29/template/testplan/com.ibm.rqm.planning.templates.testplan.template_1421074998384

I put it in the tool and it returns:

SEVERE: After login, attempt to access init data returned: 404
Jan 20, 2015 12:12:57 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: template testplan/com.ibm.rqm.planning.templates.testplan_1421074998384
Jan 20, 2015 12:12:57 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: SUCCESS!

Even though it says success, it fails. I'm coming to the conclusion that this tool is far more trouble than it's worth.


Paul Slauenwhite commented Jan 20 '15, 1:28 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Don, as mentioned in RQMCopy 4.0.1 not copying test plan templates (130949), you need to use authenticated with RQM in Firefox and use HttpRequester or Poster to capture the response content.

I would suggest to open a RQM PMR so IBM Support can investigate your setup.

showing 5 of 9 show 4 more comments

permanent link
Don Cooper (16411) | answered Feb 03 '15, 9:42 a.m.
edited Feb 03 '15, 10:01 a.m. by Paul Slauenwhite (8.4k12)
I was finally able to get it to work.

My notes are:

-Must run from the command line.

-User must be a member and admin of both source and destination project areas. (I haven't tested member only or admin only)

-No '/' before testplan in the id

-Project area name must be the project alias from the API feed.

-Template ID must be the REST ID found in the html source from the /template API feed.

Once the feed is returned, view the source and find the <id></id> tags for the template of interest.

For a utility that was supposed to make things easier, it sure was hard.

Comments
Paul Slauenwhite commented Feb 03 '15, 10:05 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

Great news, Don! 

Although these issues are covered (implicitly or explicitly) in the RQM Copy Utility WIKI (https://jazz.net/wiki/bin/view/Main/RQMCopyUtility), please open a defect for the following so the Utility can handle variances in the argument syntax:

No '/' before testplan in the id

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.