How to link existing testcases of one testplan in rqm to already existing new testplan using RQMExcelWordImporter
One answer
HI Donald Nong,
Thanks for your reply..
testcase.XLSWorksheetID="Testcases"
testcase.XLSStartRow=2
testcase.XLSArtifactID=Q
testplan.XLSArtifactID=urn:com.ibm.rqm:testplan:3
testplan.XLSLink=testcase
I used the above code in configuration file, testcases are getting link to a testplan but old testcases of a testplan are getting overridden . There is no link between old testcases and testplan.
How to retain the older testcases of a testplan.. ?
Thanks,
Nishanth
Comments
What's the RQM version? See if you encountered this known issue.
http://www-01.ibm.com/support/docview.wss?uid=swg21589309
If you try to link TestCases to an existing Test Plan that already has some links to existing Test Cases and are using a version earlier than 4.0.1, the existing links get replaced with the newly created ones. So you must include the existing.
Comments
Donald Nong
Aug 12 '14, 11:19 p.m.If you only need to link a few test cases, why don't you just do it in the Web GUI?
To use the RQM Excel Importer, you need to find out the internal IDs for the test cases and the test plans first, put them in an Excel file, then write a configuration/mapping file accordingly before you can do the import.
To use REST API, you need to find out the resource URL for the test cases first (also using REST API), then construct the XML file as the payload for updating the test plan, and finally use a PUT method to modify the test plan.