It's all about the answers!

Ask a question

Errors migrating test cases and test scripts using the RQM Copy Utility


Mike Griffiths (345) | asked Jun 25 '14, 11:16 a.m.
 Hi,

I'm trying to migrate RQM test artifacts between two servers using the RQM Copy Utility. Both servers are running 4.0.4 and I'm using the correct version of the copy utility.

I have had reasonable success when I constrain the migration to just the testcase artifact type, but there are still a number of test cases and test scripts that don't get copied over. 

Command I'm using:
"C:\Program Files (x86)\Java\jre7\bin\java" -jar RQMCopyUtility.jar -s=https://server1:9446/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Project1 -us=User1 -pws=pa$$word -d=https://server2:9552/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/Project2 -a=testcase -f -l=importlog.txt

There are 2 different error messages repeated in the log file:

1) remotescript GET error 400

All the scripts that are referenced in the errors are basic manual test scripts that were created in the RQM UI.

INFO: Starting: remotescript urn:com.ibm.rqm:remotescript:3666
Jun 23, 2014 12:12:37 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
Jun 23, 2014 12:12:40 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
Jun 23, 2014 12:12:43 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: GET, RC: 400, message: {"errorClass":"com.ibm.team.repository.common.TeamRepositoryException","nestedError":{"errorClass":"java.lang.ClassCastException","errorCode":null,"errorTraceMarshall":[{"errorTraceFileName":"RemotescriptGetHandler.java","errorTraceClassName":"com.ibm.rqm.oslc.service.internal.integration.handler.get.RemotescriptGetHandler","errorTraceMethodName":"marshal","errorTraceLineNumber":223},
....<snip>....
(SingleSignOn.java:336)","org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)","org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)","org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)","org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)","org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)","java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)","java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)","java.lang.Thread.run(Thread.java:738)"],"errorMessage":"com.ibm.rqm.planning.common.model.impl.ManualExecutionScriptImpl incompatible with com.ibm.rqm.planning.common.IRemoteExecutionScript"}
Jun 23, 2014 12:28:51 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Finishing: remotescript urn:com.ibm.rqm:remotescript:5254


2) Testcase template PUT error 500

There are hundreds of examples in the log of the copy utility successfully finishing the testcase template, only a small number of them return an error.

INFO: Starting: testcase urn:com.ibm.rqm:testcase:9260
Jun 23, 2014 12:18:46 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: testscript urn:com.ibm.rqm:testscript:6035
Jun 23, 2014 12:18:46 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Finishing: testscript urn:com.ibm.rqm:testscript:6035
Jun 23, 2014 12:18:46 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: template testcase/com.ibm.rqm.planning.templates.testcase.default
Jun 23, 2014 12:18:46 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Already Added: template testcase/com.ibm.rqm.planning.templates.testcase.default
Jun 23, 2014 12:18:46 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Finishing: template testcase/com.ibm.rqm.planning.templates.testcase.default
Jun 23, 2014 12:18:46 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 500, retry #: 0
Jun 23, 2014 12:18:49 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 500, retry #: 1
Jun 23, 2014 12:18:52 PM com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: PUT, RC: 500, message: {"errorClass":"java.util.ConcurrentModificationException","errorCode":500,"errorTraceMarshall":[{"errorTraceFileName":"AbstractList.java","errorTraceClassName":"java.util.AbstractList$SimpleListIterator","errorTraceMethodName":"next","errorTraceLineNumber":64},{"errorTraceFileName":"AbstractProcessEnablePostHandler.java","errorTraceClassName":"com.ibm.rqm.requirement.service.integration.AbstractProcessEnablePostHandler","errorTraceMethodName":"getUnsupportedNodesXMLStrings","errorTraceLineNumber":429},{"errorTraceFileName":"AbstractProcessEnablePostHandler.java","errorTraceClassName":"com.ibm.rqm.requirement.service.integration.AbstractProcessEnablePostHandler","errorTraceMethodName":"getCommentJSONObj","errorTraceLineNumber":399},{"errorTraceFileName":"AbstractProcessEnablePostHandler.java","errorTraceClassName":"com.ibm.rqm.requirement.service.integration.AbstractProcessEnablePostHandler","errorTraceMethodName":"getNewCommentsJSON","errorTraceLineNumber":209},{"errorTraceFileName":"AbstractProcessEnablePostHandler.java","errorTraceClassName":"com.ibm.rqm.requirement.service.integration.AbstractProcessEnablePostHandler","errorTraceMethodName":"setCreateApprovalsParams","errorTraceLineNumber":95},{"errorTraceFileName":"AbstractProcessEnablePostHandler.java","errorTraceClassName":"com.ibm.rqm.requirement.service.integration.AbstractProcessEnablePostHandler","errorTraceMethodName":"createArtifactApprovals","errorTraceLineNumber":70},{"errorTraceFileName":"TestcasePutHandler.java","errorTraceClassName":"com.ibm.rqm.oslc.service.internal.integration.handler.put.TestcasePutHandler","errorTraceMethodName":"enhanceProcess","errorTraceLineNumber":576},{"errorTraceFileName":"TestcasePutHandler.java","errorTraceClassName":"com.ibm.rqm.oslc.service.internal.integration.handler.put.TestcasePutHandler","errorTraceMethodName":"access$3","errorTraceLineNumber":566},{"errorTraceFileName":"TestcasePutHandler.java","errorTraceClassName":"com.ibm.rqm.oslc.service.internal.integration.handler.put.TestcasePutHandler$1","errorTraceMethodName":"run","errorTraceLineNumber":558},
....<snip>....
(WCChannelLink.java:191)","com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:453)","com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:515)","com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:306)","com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:277)","com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.java:1049)","com.ibm.ws.ssl.channel.impl.SSLConnectionLink.readyInboundPostHandshake(SSLConnectionLink.java:717)","com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyHandshakeCompletedCallback.complete(SSLConnectionLink.java:413)","com.ibm.ws.ssl.channel.impl.SSLUtils.handleHandshake(SSLUtils.java:1066)","com.ibm.ws.ssl.channel.impl.SSLHandshakeIOCallback.complete(SSLHandshakeIOCallback.java:87)","com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)","com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)","com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)","com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)","com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)","com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)","com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)","com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1660)"],"errorMessage":null}
Jun 23, 2014 12:18:52 PM com.ibm.rqm.ct.util.Logger logInfo
INFO: Finishing: testcase urn:com.ibm.rqm:testcase:9260
Jun 23, 2014 12:18:52 PM com.ibm.rqm.ct.util.Logger logInfo

The full text of each exception is quite large but I can post them if it helps. 

Any suggestions on how to workaround these two issues?

Thanks,
Mike

One answer



permanent link
Paul Slauenwhite (8.4k12) | answered Jun 26 '14, 6:58 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Hi Mike,

Some comments:

-For #1, I believe you are running into RQM Copy Utility does not support referenced test resources with external IDs. (106433).  We would need the full RQM Copy Utility log to confirm.

-For #2, this symptom appears to be a defect.

-Try using the latest (RQM 5.0) RQM Copy Utility.

-Please note https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Preface_RQM_Copy_Utility_is_NOT and https://jazz.net/wiki/bin/view/Main/RQMCopyUtility#Support.

Comments
Mike Griffiths commented Jun 26 '14, 11:49 a.m.

 Hi Paul,

Thanks for the quick response!

Issue #1 does look to be the same as 106433. The log file is 93K, I don't think I can post that much text as a comment on here. Any suggestions?

I tried issue #2 with the 5.0 Copy Utility and I got the same result. I have the full log file (79K).

Thanks,
Mike 


Paul Slauenwhite commented Jun 26 '14, 3:27 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Please open a RQM defect and attach your log.


Mike Griffiths commented Jul 04 '14, 11:59 a.m.

Sorry for the delay, I didn't spot your reply Paul. I just logged the following: https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=118178 


Paul Slauenwhite commented Jul 07 '14, 12:44 p.m.
FORUM MODERATOR / JAZZ DEVELOPER

Thanks Mike.  We will investigate under RQM Copy Utility: Testcase template PUT error 500  (118178).

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.