Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Unable to copy TestCase using RQMCopyUtility

Hi,

Currently we are in process of migrating our test artifacts from one RQM server to another and to do this we are using the RQMCopyUtility. To perform a test run of the utility I wanted to run it against one single TestCase in the source system. Apparently the Utility is failing giving an error with regard to the syntax. From what i can make out the "id" attribute what am passing "might" not be in the correct format.

Below is a detailed list of the syntax using which am running the CopyUtility and the log output.

Source url of the test case :

https://mySOURCE.ibm.com:9443/jazz/web/console/WorkbenchTest#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewTestCase&id=259

Two options i passed as arguments to run the script :

a.
C:\PROGRA~1\IBM\SDP\jdk\bin\java -jar RQMCopyUtility.jar -s=https://mySOURCE.ibm.com:9443/jazz/web/console/WorkbenchTest -us=shivakla@in.ibm.com -pws=myPWD -d=https://myDESTINATION.ibm.com:9444/qm/web/console/IMDM_2012%20SB%20QM -ud=shivakumar.lakshminarayana@in.ibm.com -pwd=myPWD -a=testcase -id="259" -l=importlog.txt -pl=progressLog.txt

b.
C:\PROGRA~1\IBM\SDP\jdk\bin\java -jar RQMCopyUtility.jar -s=https://mySOURCE.ibm.com:9443/jazz/web/console/WorkbenchTest -us=shivakla@in.ibm.com -pws=myPWD -d=https://myDESTINATION.ibm.com:9444/qm/web/console/IMDM_2012%20SB%20QM -ud=shivakumar.lakshminarayana@in.ibm.com -pwd=myPWD -a=testcase -id="com.ibm.rqm.planning.home.actionDispatcher&subAction=viewTestCase&id=259" -l=importlog.txt -pl=progressLog.txt

Importlog.txt output :


17-May-2012 01:00:14 com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: testcase 259
17-May-2012 01:00:16 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
17-May-2012 01:00:21 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
17-May-2012 01:00:24 com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: GET, RC: 400, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.33 - 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.33&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
17-May-2012 01:00:24 com.ibm.rqm.ct.util.Logger logError
SEVERE: General REST Exception: RestException executing: GET, RC: 400, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.33 - 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.33&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;

Keen on knowing if the syntax error that its pointing is with regard to the way i am passing the testcaseID or if am missing anything.

Thanks in advance for your inputs.

0 votes



10 answers

Permanent link
Hi @shivakla,
I think you should use base url
https://jazz.net/wiki/bin/view/Main/RqmApi#baseUrl
in your case the source url should be
https://mySOURCE.ibm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WorkbenchTest
and destinationURL should be
https://myDESTINATION.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/IMDM_2012%20SB%20QM
you can refer to https://jazz.net/wiki/bin/view/Main/RQMCopyUtility for more information.

Hi,

Currently we are in process of migrating our test artifacts from one RQM server to another and to do this we are using the RQMCopyUtility. To perform a test run of the utility I wanted to run it against one single TestCase in the source system. Apparently the Utility is failing giving an error with regard to the syntax. From what i can make out the &quot;id&quot; attribute what am passing &quot;might&quot; not be in the correct format.

Below is a detailed list of the syntax using which am running the CopyUtility and the log output.

Source url of the test case :

https://mySOURCE.ibm.com:9443/jazz/web/console/WorkbenchTest#action=com.ibm.rqm.planning.home.actionDispatcher&amp;subAction=viewTestCase&amp;id=259

Two options i passed as arguments to run the script :

a.
C:\PROGRA~1\IBM\SDP\jdk\bin\java -jar RQMCopyUtility.jar -s=https://mySOURCE.ibm.com:9443/jazz/web/console/WorkbenchTest -us=shivakla@in.ibm.com -pws=myPWD -d=https://myDESTINATION.ibm.com:9444/qm/web/console/IMDM_2012%20SB%20QM -ud=shivakumar.lakshminarayana@in.ibm.com -pwd=myPWD -a=testcase -id=&quot;259&quot; -l=importlog.txt -pl=progressLog.txt

b.
C:\PROGRA~1\IBM\SDP\jdk\bin\java -jar RQMCopyUtility.jar -s=https://mySOURCE.ibm.com:9443/jazz/web/console/WorkbenchTest -us=shivakla@in.ibm.com -pws=myPWD -d=https://myDESTINATION.ibm.com:9444/qm/web/console/IMDM_2012%20SB%20QM -ud=shivakumar.lakshminarayana@in.ibm.com -pwd=myPWD -a=testcase -id=&quot;com.ibm.rqm.planning.home.actionDispatcher&amp;subAction=viewTestCase&amp;id=259&quot; -l=importlog.txt -pl=progressLog.txt

Importlog.txt output :


17-May-2012 01:00:14 com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: testcase 259
17-May-2012 01:00:16 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
17-May-2012 01:00:21 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
17-May-2012 01:00:24 com.ibm.rqm.ct.util.Logger logError
SEVERE: RestException executing: GET, RC: 400, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.33 - 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;*&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;*&gt;&lt;h3&gt;Apache Tomcat/5.5.33&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;
17-May-2012 01:00:24 com.ibm.rqm.ct.util.Logger logError
SEVERE: General REST Exception: RestException executing: GET, RC: 400, message: &lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/5.5.33 - 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;*&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;*&gt;&lt;h3&gt;Apache Tomcat/5.5.33&lt;/h3&gt;&lt;/body&gt;&lt;/html&gt;

Keen on knowing if the syntax error that its pointing is with regard to the way i am passing the testcaseID or if am missing anything.

Thanks in advance for your inputs.

0 votes


Permanent link
Hi Ho Wan,

I tried running the script with giving the url in the format as mentioned in your reply but still getting the same (syntax) error. Anything with regard to the id argument that you think am sending wrong?

Cheers,
Shiv

Hi @shivakla,
I think you should use base url
https://jazz.net/wiki/bin/view/Main/RqmApi#baseUrl
in your case the source url should be
https://mySOURCE.ibm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WorkbenchTest
and destinationURL should be
https://myDESTINATION.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/IMDM_2012%20SB%20QM
you can refer to https://jazz.net/wiki/bin/view/Main/RQMCopyUtility for more information.

0 votes


Permanent link
Hi @shivakla,
in you source url and destination url, you use the different context
one is &quot;jazz&quot; another is &quot;qm&quot;, do you use different version of RQM, such as RQM 2.0 as source and RQM 3.0 as destination?
Hi Ho Wan,

I tried running the script with giving the url in the format as mentioned in your reply but still getting the same (syntax) error. Anything with regard to the id argument that you think am sending wrong?

Cheers,
Shiv

Hi @shivakla,
I think you should use base url
https://jazz.net/wiki/bin/view/Main/RqmApi#baseUrl
in your case the source url should be
https://mySOURCE.ibm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WorkbenchTest
and destinationURL should be
https://myDESTINATION.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/IMDM_2012%20SB%20QM
you can refer to https://jazz.net/wiki/bin/view/Main/RQMCopyUtility for more information.

0 votes


Permanent link
Hi Ho Wan,

Both the servers are on RQM 3.0.1.1

But one thing is that the (source) server which has the folder strucutre /jazz was earlier in RQM2.0 which has been recently upgraded to RQM3.0

Cheers,
Shiv

0 votes


Permanent link
Hi @shivakla,
I think you are using internal id 259, which the correct way is
id=urn:com.ibm.rqm:testcase:259.
by the way, my name is Hao Wan, not &quot;Ho Wan&quot;, :-)

Hi Ho Wan,

Both the servers are on RQM 3.0.1.1

But one thing is that the (source) server which has the folder strucutre /jazz was earlier in RQM2.0 which has been recently upgraded to RQM3.0

Cheers,
Shiv

0 votes


Permanent link
Hi Hao Wan

Sorry for the confusion reg the name :)

I did try giving the new id format but still same outcome.

C:\PROGRA~1\IBM\SDP\jdk\bin\java -jar RQMCopyUtility.jar -s=https://mySource.ibm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WorkbenchTest -us=shivakla@in.ibm.com -pws=myPwd -d=&quot;https://myDestination.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/IMDM_2012%20SB%20QM&quot; -ud=shivakumar.lakshminarayana@in.ibm.com -pwd=myPwd -a=testcase -id=urn:com.ibm.rqm:testcase:259 -l=importlog.txt -pl=progressLog.txt


The logs still say Syntactically incorrect.

Cheers,
Shiv

0 votes


Permanent link
Hi Shiv,
would you please try the following link?
https://mySource.ibm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WorkbenchTest/testcase/urn:com.ibm.rqm:testcase:259
in your browser to see if can display the correct testcase XML.
Hi Hao Wan

Sorry for the confusion reg the name :)

I did try giving the new id format but still same outcome.

C:\PROGRA~1\IBM\SDP\jdk\bin\java -jar RQMCopyUtility.jar -s=https://mySource.ibm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WorkbenchTest -us=shivakla@in.ibm.com -pws=myPwd -d=&quot;https://myDestination.ibm.com:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/IMDM_2012%20SB%20QM&quot; -ud=shivakumar.lakshminarayana@in.ibm.com -pwd=myPwd -a=testcase -id=urn:com.ibm.rqm:testcase:259 -l=importlog.txt -pl=progressLog.txt


The logs still say Syntactically incorrect.

Cheers,
Shiv

0 votes


Permanent link
Hi Hao Wan,

Am getting a error when i try to access the url in the format given above.

HTTP Status 400 -

type Status report

message description The request sent by the client was syntactically incorrect ().

Apache Tomcat/5.5.33

0 votes


Permanent link
Hi @shivakla,
then you can using the url
https://mySource.ibm.com:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/WorkbenchTest/testcase

whether the testcase exist and check the correct internal/external id.


Hi Hao Wan,

Am getting a error when i try to access the url in the format given above.

HTTP Status 400 -

type Status report

message description The request sent by the client was syntactically incorrect ().

Apache Tomcat/5.5.33

0 votes


Permanent link
All thanks to HaoWan's help am now able to proceed with running the RQMCopyUtility

Some of the key things to take away which i was not passing correctly

a. Source and Destination URLs needs to be in the form

https://&lt;server_name&gt;
:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/&lt;project_alias&gt;

You can get your project alias using the following url format

https://&lt;server_name&gt;:9444/qm/service/com.ibm.rqm.integration.service.IIntegrationService/projects

b. Test case ID needs to be in the form

-id=urn:com.ibm.rqm:testcase:&lt;testcase_id&gt;

To ensure everything is fine one can append the source url with the testcase ID parameter and see if you are able to open the testcase ( or the corresponding test artifact )

Hope that helps.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 16 '12, 3:38 p.m.

Question was seen: 9,521 times

Last updated: May 16 '12, 3:38 p.m.

Confirmation Cancel Confirm