Problem while running RQM Copy utility. ERROR com.ibm.rqm.ct.CopyUtil: java.lang.IllegalArgumentException: usernameSource is required for this command
Hello all,
While running the RQMCopy Utility to copy RQM data from Project area to Project area B, Getting Error as below.
25 Mar 2022 20:33:29,186+0530 [main] INFO com.ibm.rqm.ct.CopyUtil: Attempting to create SSL_TLS context
25 Mar 2022 20:33:29,215+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: SSL_TLS SSLContext not available
25 Mar 2022 20:33:29,215+0530 [main] INFO com.ibm.rqm.ct.CopyUtil: Unable to create SSL_TLS context, trying SSLv3
25 Mar 2022 20:33:30,101+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: java.lang.IllegalArgumentException: usernameSource is required for this command
25 Mar 2022 20:33:30,101+0530 [main] INFO com.ibm.rqm.ct.CopyUtil: Disconnecting from the source IBM Rational Quality Manager server.
'subAction' is not recognized as an internal or external command,
operable program or batch file.
'tab' is not recognized as an internal or external command,
operable program or batch file.
'subAction' is not recognized as an internal or external command,
operable program or batch file.
Accepted answer
Hi Suni
The format of your source and destination projects are not correct, please refer to
- -sourceURL=<URL>
- The "source" of the copy: a fully specified ETM server URL that includes the full services URL and Project Area. The URL should be of the pattern:https://<server>:<port>/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<Project Name> Note: you must use the project alias name if you have renamed your project area. The project alias name is the original name of the project. <context> will be either qm or jazz. For more information about finding the project alias, see https://jazz.net/wiki/bin/view/Main/RqmApi#projectAlias.
I hope this helps to move forward.
2 other answers
java -jar RQMCopyUtility.jar -s=https://hostname.org.net:9443/qm/web/console/project_area_name -us=*** -pws= -ud=* -pwd=** -d=https://hostname.org.net:9443/qm/web/console/project_area_name -l=c:\importlog.txt
Hello Don,
We were able to copy the artifacts!! but for the test cases and Test script counts are different from Source and Destination . and the command gives below error.
"ERROR com.ibm.rqm.ct.CopyUtil: RestException executing: PUT, RC: 400, message: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:Error xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns6="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns5="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns13="http://www.w3.org/2002/07/owl#" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns11="http://open-services.net/ns/qm#" xmlns:ns10="http://open-services.net/ns/core#" xmlns:ns21="http://www.w3.org/1999/XSL/Transform" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/"><ns2:statusCode>400</ns2:statusCode><ns2:message>Cannot modify an unmodifiable Template (Software test plan template).</ns2:message></ns2:Error>
28 Mar 2022 14:39:00,471+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: General REST Exception: RestException executing: PUT, RC: 400, message: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:Error xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ns4="http://purl.org/dc/elements/1.1/" xmlns:ns3="http://schema.ibm.com/vega/2008/" xmlns:ns6="http://jazz.net/xmlns/alm/v0.1/" xmlns:ns20="http://jazz.net/xmlns/alm/qm/styleinfo/v0.1/" xmlns:ns5="http://jazz.net/xmlns/prod/jazz/process/0.6/" xmlns:ns8="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:ns7="http://purl.org/dc/terms/" xmlns:ns13="http://www.w3.org/2002/07/owl#" xmlns:ns9="http://jazz.net/xmlns/alm/qm/v0.1/executionworkitem/v0.1" xmlns:ns12="http://jazz.net/xmlns/prod/jazz/rqm/process/1.0/" xmlns:ns11="http://open-services.net/ns/qm#" xmlns:ns10="http://open-services.net/ns/core#" xmlns:ns21="http://www.w3.org/1999/XSL/Transform" xmlns:ns17="http://jazz.net/xmlns/alm/qm/v0.1/catalog/v0.1" xmlns:ns16="http://jazz.net/xmlns/alm/qm/v0.1/executionresult/v0.1" xmlns:ns15="http://jazz.net/xmlns/alm/qm/qmadapter/task/v0.1" xmlns:ns14="http://jazz.net/xmlns/alm/qm/qmadapter/v0.1" xmlns:ns18="http://jazz.net/xmlns/alm/qm/v0.1/tsl/v0.1/"><ns2:statusCode>400</ns2:statusCode><ns2:message>Cannot modify an unmodifiable Template (Software test plan template).</ns2:message></ns2:Error>
28 Mar 2022 14:39:00,473+0530 [main] ERROR com.ibm.rqm.ct.CopyUtil: FAILURE!"
Comments
Don Yang
Mar 25 '22, 9:05 p.m.