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

RQMUrlUtility: Problems when importing test assets to RQM4.x

Hi,

I started extracting Test Plans/Test Cases stored in a Project Area in RQM 3.x (lets call it PA "A") to a new Project Area in RQM 4.x (lets called it PA "B") by using the RQMUrlUtility. Then started to importing them from PA "A" to PA "B" but so far I've experienced the following problems:

1) Test Cases and Test Plans having state ="Approved" cannot be imported from PA "A" in RQM 3.x to PA "B" in RQM 4.x - There's no such problem when importing Test artifacts in "Draft" state.
Here's the message displayed on the command prompt:
Precondition not met: Modifications to Approved or Closed artifactAccept:text/xml,application/xml,application/xhtml+xml,text/html;g=0.9,text/plain;g=0.8,image/png,*/*;q=0.5

2) Relationships between Test artifacts (i.e. Test Cases associated to a Test Plan) are not being kept when importing the Test Artifacts from PA "A" in RQM 3.x to PA "B" in RQM 4.x


Could you please help me to solve both problems 1) and 2)?

If you need more information on details in order to provide a solution please let me know.

Thanks in advance!

1 vote



5 answers

Permanent link
Hi @mvmtori,
I think your scenario should using RQM copy utility, and are you using copy utility version 4.0?
Hi,

I started extracting Test Plans/Test Cases stored in a Project Area in RQM 3.x (lets call it PA "A") to a new Project Area in RQM 4.x (lets called it PA "B") by using the RQMUrlUtility. Then started to importing them from PA "A" to PA "B" but so far I've experienced the following problems:

1) Test Cases and Test Plans having state ="Approved" cannot be imported from PA "A" in RQM 3.x to PA "B" in RQM 4.x - There's no such problem when importing Test artifacts in "Draft" state.
Here's the message displayed on the command prompt:
Precondition not met: Modifications to Approved or Closed artifactAccept:text/xml,application/xml,application/xhtml+xml,text/html;g=0.9,text/plain;g=0.8,image/png,*/*;q=0.5

2) Relationships between Test artifacts (i.e. Test Cases associated to a Test Plan) are not being kept when importing the Test Artifacts from PA "A" in RQM 3.x to PA "B" in RQM 4.x


Could you please help me to solve both problems 1) and 2)?

If you need more information on details in order to provide a solution please let me know.

Thanks in advance!

1 vote


Permanent link
Hi @mvmtori,
I'm trying with RQM copy utility RC5 GA version from jazz.net. and trying to copy testplan linked with testcase from RQM 3013 server to RQM RC5 GA server, I didn't meet the problem you mentioned, the testplans and testcases copied successfully and link also created.

for you problem 2, I also tried with source RQM 3013, and destination RQM RC5 GA, the testcase can be copied successfully.
Hi,

I started extracting Test Plans/Test Cases stored in a Project Area in RQM 3.x (lets call it PA "A") to a new Project Area in RQM 4.x (lets called it PA "B") by using the RQMUrlUtility. Then started to importing them from PA "A" to PA "B" but so far I've experienced the following problems:

1) Test Cases and Test Plans having state ="Approved" cannot be imported from PA "A" in RQM 3.x to PA "B" in RQM 4.x - There's no such problem when importing Test artifacts in "Draft" state.
Here's the message displayed on the command prompt:
Precondition not met: Modifications to Approved or Closed artifactAccept:text/xml,application/xml,application/xhtml+xml,text/html;g=0.9,text/plain;g=0.8,image/png,*/*;q=0.5

2) Relationships between Test artifacts (i.e. Test Cases associated to a Test Plan) are not being kept when importing the Test Artifacts from PA "A" in RQM 3.x to PA "B" in RQM 4.x


Could you please help me to solve both problems 1) and 2)?

If you need more information on details in order to provide a solution please let me know.

Thanks in advance!

1 vote


Permanent link
Hi Wan,

I downloaded the RQM Copy utility 4.0 RC2 version from jazz.net. and then tried to copy a test plan associated to "n" test cases from RQM 3.0.1.2 on a given server to RQM 4.0 RC0 on another server.

Problem #1) The copy didn't work.
Here's the command I used:
java -jar RQMCopyUtility.jar -s=https://server1:port1/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/"Project Area A on RQM 3.0.1.2" -us=<admin> -pws=<my>-d=https://server2:port2/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/"Project Area B on RQM 4.0 RC2" -us=<admin> -pws=<my> -a=testplan -id=urn:com.ibm.rqm:testplan:155 -l=copylog.tx

And here's the log of the run:
29/05/2012 12:33:36 com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: testplan urn:com.ibm.rqm:testplan:155
29/05/2012 12:33:37 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
29/05/2012 12:33:41 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
29/05/2012 12:33:44 com.ibm.rqm.ct.util.Logger logError
GRAVE: 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;
29/05/2012 12:33:44 com.ibm.rqm.ct.util.Logger logError
GRAVE: 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;


Problem #2) I couldn't find a way to get the permissions of a Data Migration Administrator role. In fact I don't have the option to assign that role to my user id or anyone else from the &quot;Project Area B created on RQM 4.0 RC2&quot; even creating a new PA using the default RQM process template.

What do you suggest to solve these problems?

Thanks in advance!

1 vote


Permanent link
Hi @mvmtori,
you can have a try to change project name to project name alias,
you can check project alias from
https&#58;//server1&#58;port1/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/projects


Hi Wan,

I downloaded the RQM Copy utility 4.0 RC2 version from jazz.net. and then tried to copy a test plan associated to &quot;n&quot; test cases from RQM 3.0.1.2 on a given server to RQM 4.0 RC0 on another server.

Problem #1) The copy didn't work.
Here's the command I used:
java -jar RQMCopyUtility.jar -s=https://server1:port1/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/&quot;Project Area A on RQM 3.0.1.2&quot; -us=&lt;admin&gt; -pws=&lt;my&gt;-d=https://server2:port2/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/&quot;Project Area B on RQM 4.0 RC2&quot; -us=&lt;admin&gt; -pws=&lt;my&gt; -a=testplan -id=urn:com.ibm.rqm:testplan:155 -l=copylog.tx

And here's the log of the run:
29/05/2012 12:33:36 com.ibm.rqm.ct.util.Logger logInfo
INFO: Starting: testplan urn:com.ibm.rqm:testplan:155
29/05/2012 12:33:37 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 0
29/05/2012 12:33:41 com.ibm.rqm.ct.util.Logger logInfo
INFO: Error received: 400, retry #: 1
29/05/2012 12:33:44 com.ibm.rqm.ct.util.Logger logError
GRAVE: 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;
29/05/2012 12:33:44 com.ibm.rqm.ct.util.Logger logError
GRAVE: 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;


Problem #2) I couldn't find a way to get the permissions of a Data Migration Administrator role. In fact I don't have the option to assign that role to my user id or anyone else from the &quot;Project Area B created on RQM 4.0 RC2&quot; even creating a new PA using the default RQM process template.

What do you suggest to solve these problems?

Thanks in advance!

1 vote


Permanent link
Hi Wan,

On one hand, I did change the project name to the project name alias when running the command, so I guess that wasn't the problem with the failed run. Could you please take a look at both the command and the log posted in my previous comment and let me know what you think of it?

On the other hand, I couldn't find the way to set the &quot;Data Migration Administration&quot; role from the PA I created on RQM 4.0 RC2 and I administered (even when I have jazzAdmin permissions) - So here my concerns: Is it possible that this RQM 4.0 RC2 doesn't include this &quot;Data Migration Administration&quot; role? or, perhaps something went wrong during the installation of the application on the server we are using?
Could you please guide me on this?


Thanks in advance!

1 vote

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 28 '12, 8:24 a.m.

Question was seen: 4,586 times

Last updated: May 28 '12, 8:24 a.m.

Confirmation Cancel Confirm