Importing testcase + test script xml
Hi,
I am trying to import a sample test case and test script xmls into RQM. I am running into 2 issues -
1) Linking a test script to a test case - how do I specify the URI in this xml piece from the test case xml
<testscript>
2) The test script xml has test steps in it that fail to get imported, although the rest of the fields for the test script get imported.
I am trying to import a sample test case and test script xmls into RQM. I am running into 2 issues -
1) Linking a test script to a test case - how do I specify the URI in this xml piece from the test case xml
<testscript>
2) The test script xml has test steps in it that fail to get imported, although the rest of the fields for the test script get imported.
9 answers
Hi Supriya,
You need to import these artifact in this order
1. Import Test Script
2. Import Testcase
While importing the testcase, in the testcase xml you need to mention url to the script imported in step #1.
The url depends upon how did you import the xml,
1) you do not specify externalId of the artifact and used testscript feed url for import
2) Specified the externalId
In the second case it is straightforward to specify the same link in testcase xml e.g.
<testscript>
In the first case you can find out the integer id of the testscript within rqm and then use that to form href e.g. if script id is 12
<testscript href="https://localhost:9443/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<replace>/"urn:com.ibm.rqm:testscript:12"/>
Besides that you may also have to verify namespace used in the xml is correct for element "testscript"
-|- Pramod Chandoria
You need to import these artifact in this order
1. Import Test Script
2. Import Testcase
While importing the testcase, in the testcase xml you need to mention url to the script imported in step #1.
The url depends upon how did you import the xml,
1) you do not specify externalId of the artifact and used testscript feed url for import
2) Specified the externalId
In the second case it is straightforward to specify the same link in testcase xml e.g.
<testscript>
In the first case you can find out the integer id of the testscript within rqm and then use that to form href e.g. if script id is 12
<testscript href="https://localhost:9443/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<replace>/"urn:com.ibm.rqm:testscript:12"/>
Besides that you may also have to verify namespace used in the xml is correct for element "testscript"
-|- Pramod Chandoria
In addition to Pramod's information, you could also use the RQM Excel/Word Importer (see https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter). Also, there is documentation on how to determine the XML representation of RQM resources (see https://jazz.net/wiki/bin/view/Main/RqmApi#ScenarioCreateTip). Finally, you can use the RQM XML schema documentation for the RQM resources to determine resource/property names (see https://jazz.net/wiki/bin/view/Main/RqmApi#Resource_Objects_and_their_Relat).
In addition to Pramod's information, you could also use the RQM Excel/Word Importer (see https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter). Also, there is documentation on how to determine the XML representation of RQM resources (see https://jazz.net/wiki/bin/view/Main/RqmApi#ScenarioCreateTip). Finally, you can use the RQM XML schema documentation for the RQM resources to determine resource/property names (see https://jazz.net/wiki/bin/view/Main/RqmApi#Resource_Objects_and_their_Relat).
Thanks Pramod and Paul. Will revert as soon as I am done.
I tried the following format for specifying the href value in the test script element.
<testscript href="https://localhost:9443/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<replace>/"someexteranlId"/>
I have the following questions here -
1) <replace> - what does this stand for?
2) someexternalId - Is this a value that I have used while importing the test script, for example, I can specify a value in the identifier field of the test script xml, but some how using this did not work.
Also, I did try using the internally generated id, it did not work for me either. Please see below -
<testscript>
<testscript href="https://localhost:9443/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<replace>/"someexteranlId"/>
I have the following questions here -
1) <replace> - what does this stand for?
2) someexternalId - Is this a value that I have used while importing the test script, for example, I can specify a value in the identifier field of the test script xml, but some how using this did not work.
Also, I did try using the internally generated id, it did not work for me either. Please see below -
<testscript>
You have a couple of options here:
1) PUT a test case/script XML using the RQM Reprotable REST API (see
http://jazz.net/wiki/bin/view/Main/RqmApi).
2) Import a test case/script XML using the UI (see http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.rational.test.qm.doc/topics/t_import_testcase.html)
3) Import a test case/script Excel/Word document using the RQM Excel/Word Importer (see https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter).
1) PUT a test case/script XML using the RQM Reprotable REST API (see
http://jazz.net/wiki/bin/view/Main/RqmApi).
2) Import a test case/script XML using the UI (see http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.rational.test.qm.doc/topics/t_import_testcase.html)
3) Import a test case/script Excel/Word document using the RQM Excel/Word Importer (see https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter).