Importing RQM Categories
Hello World,
I used to import many categories by importing one Test Plan and one Test Case with all the categories in the XML file. With the new setup (as from 3.0) this is not possible. Every entry results in a new category with the same name (which is an error to my opinion).
What is an XML example to be imported to add a name-value category to a TP or TC?
Thanks,
Marc van Lint
I used to import many categories by importing one Test Plan and one Test Case with all the categories in the XML file. With the new setup (as from 3.0) this is not possible. Every entry results in a new category with the same name (which is an error to my opinion).
What is an XML example to be imported to add a name-value category to a TP or TC?
Thanks,
Marc van Lint
2 answers
As of RQM 3.0.1, categories are a separate resource type (see https://jazz.net/wiki/bin/view/Main/RqmApi#Resources_and_their_Supported_Op).
To determine the XML representation of the resource, see:
https://jazz.net/wiki/bin/view/Main/RqmApi#ScenarioCreateTip
Please open a new RQM defect for the issue with multiple categories created with the same name.
Comments
As you already saw a defect was raised. Within 30 seconds a subscribe... is that a record?
Yes, Importing XML corrupts categories (76486) was assigned/subscribed to me to fix the problem.
I wonder if the copySettings script could work for you in the interim.
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/topic/com.ibm.rational.test.qm.doc/topics/t_copyproject.html
It seems to handle updates and if you want to be able to do this without having network access to the source server, you can by following the suggestions at this post:
https://jazz.net/forum/questions/76444/how-to-copy-categories-with-rqmcoputility-between-projects
http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0/topic/com.ibm.rational.test.qm.doc/topics/t_copyproject.html
It seems to handle updates and if you want to be able to do this without having network access to the source server, you can by following the suggestions at this post:
https://jazz.net/forum/questions/76444/how-to-copy-categories-with-rqmcoputility-between-projects
Comments
Will look into the option. You can easily create and manage the categories via the GUI (compared to V1.0 ;-) ....). The biggest problem here is that if a guy like me runs such an import it corrupts the db and it can't be corrected. Or at least, I don't know. Lucky me, I work mainly on demonstration DBs so I'm fine. But I it must be solved for production level.