Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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.

0 votes



9 answers

Permanent link
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

0 votes


Permanent link
Typo
for external Id case
<testscript href="https://localhost:9443/<context>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<replace>/"someexteranlId"/>

0 votes


Permanent link
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).

0 votes


Permanent link
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.

0 votes


Permanent link
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>

0 votes


Permanent link
1) Project alias (see https://jazz.net/wiki/bin/view/Main/RqmApi#baseUrl).

2) Use the internal ID (see https://jazz.net/wiki/bin/view/Main/RqmApi#resourceUrl_for_interaction_with and https://jazz.net/wiki/bin/view/Main/RqmApi#Internal_ID).

0 votes


Permanent link
Hello Guys... Good afternoon.

I'm finding the same problem in a client that I'm working. I would like to know if anyone could help me with some example in how to import a TestCase + TestScript xml into RQM.

All help will be appreciated.

Tks so much.

0 votes


Permanent link
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).

0 votes


Permanent link
Thanks, this helped me resolve a customer issue, but for test plan+test case, instead of test case+test script.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 18 '11, 3:52 p.m.

Question was seen: 9,247 times

Last updated: Jan 25 '16, 8:17 a.m.

Confirmation Cancel Confirm