It's all about the answers!

Ask a question

More problems using the copySettings script in RQM 4.0.5


Danny Müller (1171020) | asked Mar 24 '14, 9:56 a.m.
edited Apr 30 '14, 9:18 a.m.
Hi,

we want to use copySettings.bat to update projects with the latest test environment settings.
To do so two projects were prepared, one with additional Categories and so on, the other was empty. Then I executed
cd /d D:\pathpathpath\server\conf\qm\tools\projectSettings
copySettings.bat /SS https://alias.company.com:9443/ /SU admin /SP *** /SA PropertiesCopySource /DA PropertiesCopyTarget
and got the result
Getting settings file C:\Users\admin\AppData\Local\Temp\2\settings.txt from location "https://alias.company.com:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/project/PropertiesCopySoure/settings"
Putting settings file to location "https://alias.company.com:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/project/PropertiesCopyTarget/settings"
Success: Asset Updated
Looks like a success story but the settings weren't copied, no Categories etc
Comparing the mentioned files the category name did not show up in either of them.

What did I wrong?

best regards
Danny


Comments
1
Krzysztof Kaźmierczyk commented Mar 24 '14, 11:24 a.m. | edited Mar 25 '14, 3:47 a.m.

Hi Danny,
I believe that there was already the same question on forum. Check this: https://jazz.net/forum/questions/64295/rqm-copy-utility-and-categories.

Here is link to RQM enhancement to copy categories: https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=51870

Let us know if this is an answer on your question.


Danny Müller commented Mar 24 '14, 12:11 p.m.

Thank you for the fast response! I saw at least five other posts with related issues and read them all.
In version 4.0.6 and 5.0 the documentation states the categories will be copied:
https://jazz.net/help-dev/clm/topic/com.ibm.rational.test.qm.doc/topics/c_setup_new_project.html
So chances are that either the documentation or the application has a defect...

Accepted answer


permanent link
Matthieu Leroux (6571614) | answered Mar 28 '14, 10:15 a.m.
JAZZ DEVELOPER
edited Mar 28 '14, 10:18 a.m.
Hi Danny,

All the copysetting bat file does is to build a rest call and use CURL to perform a HTTP GET and PUT.

To troubleshoot this issue, I would suggest that you make a copy of the bat file and edit it to comment, towards the end of the file, the line 'del %SETTINGS_FILE%'
Then you will be able to verify the content of the file being 'PUT' to the target project:
C:\Users\admin\AppData\Local\Temp\2\settings.txt

NOTE: from a test I made on my local server, it looks like if you are using a reverse proxy and the port is not part of the public URI, CURL seems to have some issue getting the settings

Alternatively, you could try to copy the settings outside of the copysetting utility by:
1- do a get on: https:// alias.company.com:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/project/PropertiesCopySource/settings
2- save the response
3- do a put to: https:// alias.company.com:9443 /qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/project/PropertiesCopyTarget/settings

I hope this helps
Matthieu
Danny Müller selected this answer as the correct answer

Comments
Krzysztof Kaźmierczyk commented Mar 28 '14, 4:04 p.m.

Hi Matt,
I was trying to use PUT to copy settings. I get status 200 but I see that the settings are still different.

Another issue is that under https:// alias.company.com:9443/qm/secure/service/com.ibm.rqm.integration.service.IIntegrationService/project/PropertiesCopySource/settingsI do not see any categoties I had set in source project.

Do you think, that it is a defect?


Danny Müller commented Mar 31 '14, 9:01 a.m. | edited Mar 31 '14, 9:02 a.m.

Hi Matt,

I called the curl get on the copy source project. Then I added a category and ran the curl get again. Comparing the out files I saw that only the time stamps were differed.
It looks like category is not part of the property set although there is a big section for com.ibm.rqm.category. Probably the category section in the "Edit Project Area" form is not related to com.ibm.rqm.category written to the properties file.

Then I curl put the file for the target project directly followed by a curl get. Comparing them revealed some differences but mainly Item IDs.

regards
Danny


Matthieu Leroux commented Mar 31 '14, 9:07 a.m.
JAZZ DEVELOPER

Hello Danny, I am not sure what category you are referring to, to the best of my knowledge, the properties that are copied over to another project are those in the "Manage project properties".
(artifact properties, custom attributes, build integration, quality objectives, risks...)

I hope that helps.
Matthieu


Krzysztof Kaźmierczyk commented Mar 31 '14, 9:09 a.m. | edited Mar 31 '14, 9:20 a.m.

ok I was able to copy at least quality objectives. Also Matt was able to copy all settings.

Danny - could you provide the information which Matthieu requested?
Can you also provide the information which artifacts you have already checked whether they are copied?


Danny Müller commented Apr 01 '14, 4:22 a.m.

Let us concentrate on the categories for now.
Please have a look at the screenshots to align our perspectives.
Source Project Settings: Category test and KoDT (just something unique to search for in the curl file.) Categories found in the qm source project
Target Project Settings:
Categories not found in the target project.


1
Matthieu Leroux commented Apr 01 '14, 4:53 a.m. | edited Apr 01 '14, 4:53 a.m.
JAZZ DEVELOPER

Hello Danny,
those Categories are not part of the settings that are copied, as per http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/topic/com.ibm.rational.test.qm.doc/topics/t_copyproject.html

"You can copy project properties from an existing project to a new project. The project settings that are copied are all the properties that are set in Project Properties except for Lab Resource and Channel Properties and Test Plan's Environment Types. You use a command line script for this task."

which correspond to:


It seems like the workitem categories as shown in your screenshot are not included in the list.

I hope this helps.
Matthieu


Krzysztof Kaźmierczyk commented Apr 01 '14, 4:54 a.m.

Hi Danny,
These categories are not copied. There are only copied test case and test suite categories. You can reach them from https://your-server/qm/web/console/<pa-name>#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewSystemProperties This should help you


Danny Müller commented Apr 01 '14, 5:20 a.m.

Hi Matt and Christoph,

ok, I'd like to summarize in my words: the Category entry listed in the comparison table http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m6/index.jsp?topic=%2Fcom.ibm.rational.test.qm.doc%2Ftopics%2Fc_setup_new_project.html
is not referring to the workitem categories in ...qm/admin#action=com.ibm.team.process.editProjectArea

in fact it is referring to ...qm/web/console/<pa-name>#action=com.ibm.rqm.planning.home.actionDispatcher&subAction=viewSystemProperties

Thank you both and best regards
Danny

showing 5 of 8 show 3 more comments

One other answer



permanent link
Krzysztof Kaźmierczyk (7.5k480103) | answered Apr 01 '14, 6:08 a.m.
Hi Dany,
You concern is valid. I have created already RQM defect to correct documentaiton: https://jazz.net/jazz02/web/projects/Rational%20Quality%20Manager#action=com.ibm.team.workitem.viewWorkItem&id=109972

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.