Is it possible to create Test Cases that link to existing Test Scripts using the Excel/Word Importer in RQM?
This part works fine but I'd also like to link the Test Case to the Test Script at the same time. I have the Test Script ID value from the download csv.
Is this possible?
I found this in the Team Wiki for the Importer. It sounds like it only works the other way around if the Test Cases already exist and you're importing Test Scripts to link.
I was able to use the sample where Test Scripts get created with matching Test Cases and linked together, but in my case the Test Script already exist
LinkExisting()
modifier - indicates a reference to the master test artifacts, content is the external id or the excel cell/column that stores the external id of the master artifact on RQM server.
i.e.
testplan links with testcase, then test plan is master artifact and testcase is sub/child artifact.
test case link with test script, then test case is master test artifact, and test script is child artifact.
test suite link with test case, then test suite is master test artifact, and test case is child artifact.
Accepted answer
Hi Michael,
for this scenario, you can using Link() modifier.
testcase.testscript=Link("test script internal/external id")
Comments
Thanks for the quick response. I was close, I was trying LinkExisting.
Below is how my .cfg file looks. Pretty simple but I just want to get it working first, then expand. Do you see anything wrong with what I have below?
The Test Script id is in column A in Excel. I'm also referencing Column C which is the Test Script name.
// Start looking for test cases after row 1
testcase.XLSStartRow=1
testcase.dc:title=C
testcase.dc:description=C
testcase.testscript=Link(A)
testcase.XLSDelimeter=\n
Thanks for the help....This worked:
urn:com.ibm.rqm:testscript:<id>
hi Hao Wan,
I have a different scenario.
I have test cases already existing. I want to import testscripts from xls and link them to existing test cases.
Tried LinkExisting(B)
testscript.testcase=LinkExisting(B)
This says "Test case with ID XXX not found"
When I use
testscript.testcase=Link(B)
Only test scripts are imported but not linked to test cases.
Pls help
Regards
Sugam
Did you resolve this?
One other answer
You can link existing testcases to new test scripts using the following line in cfg file:
testscript.testcase=LinkExisting(E)
Your Excel file will have the id of the existing test case in column E in the format
urn:com.ibm.rqm:testcase:<id>
e.g. urn:com.ibm.rqm:testcase:2
Comments
Hi Vidya,
Does the same thing apply to test suites. I want to upload new test cases which need to be linked to exisitng test suites( 120 and 140 are the artifact ids)
So i have my test suites in cell E2 , one below the other , using new line as follows
urn:com.ibm.rqm:testsuite:120
urn:com.ibm.rqm:testsuite:140
In config file i have the following syntax
testcase.testsuite=LinkExisting(E2)
But i find that this only links the test cases to test suite 120 and not to 140.
Any help would be much appreciated.