Import Test Cases from Excel
Anyone know how I can import test cases from Excel and link them to an already existing Test Plan?
I added testplan.dc:title=O2 & testplan.XLSLink=testcase to my cfg file and all it did was create a new Test Plan and not link any Test Cases. :?
Any pointers on what I'm doing wrong would help. Looked at the samples and they haven't helped.
I added testplan.dc:title=O2 & testplan.XLSLink=testcase to my cfg file and all it did was create a new Test Plan and not link any Test Cases. :?
Any pointers on what I'm doing wrong would help. Looked at the samples and they haven't helped.
3 answers
Unfortunately, the test case resource does contain a reference to a containing test plan (see https://jazz.net/wiki/bin/view/Main/RqmApi#Detailed_Schema_Documentation). Otherwise, you could use the Link() keyword (see https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/51360). However, you could specify the test plan with the XLSArtifactID keyword (see https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter#Keywords_and_special_cases) set to the it's external ID in your configuration file.
The idea is to update the existing test plan with the references to the test cases. For example:
testplan.XLSArtifactID=B1
testplan.dc:title="test plan title"
testplan.XLSLink=testcase
testcase.XLSStartRow=1
testcase.dc:title=A
...
Note, https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/56614. As a side effect, addition test plans (equaling the same number of test cases) are created.
testplan.XLSArtifactID=B1
testplan.dc:title="test plan title"
testplan.XLSLink=testcase
testcase.XLSStartRow=1
testcase.dc:title=A
...
Note, https://jazz.net/jazz02/resource/itemName/com.ibm.team.workitem.WorkItem/56614. As a side effect, addition test plans (equaling the same number of test cases) are created.