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

RQM import function from xml file

Hi all,

I am trying to import a test script and test case into RQM from the xml file generated through excel. The code I am using is below which correctly creates the test case.xml and test script.xml

My question is how is the link automatically created in RQM? I can import both the test case (Construction -> Import Test Case) and test script (Construction -> Import Test Script), but when I check, there is no mapping between the two?

Any help would be gratefully appreciated.

testscript.XLSStartRow=2

testscript.XLSArtifactID=A     
testscript.dc:title=A      
testscript.dc:description=B     
testscript.steps.title=C     
testscript.steps.name=C     
testscript.steps.type="execution"   
testscript.steps.description=D   
testscript.steps.expectedResult=E 

testscript.XLSDelimeter=\n
 
testcase.ID=testscript.XLSArtifactID

testcase.dc:title=testscript.dc:title
testcase.description=testscript.description

0 votes

Comments

Is this XML generated directly with Excel (Save as...) or with the Microsoft Excel and Word to Rational Quality Manager Import Utility?

Peter,

The CFG file looks like its based on one of the samples provided by the Excel import tool ("Scripts that create testcases.cfg"); have you tried exporting directly into RQM rather than to file? If so, were the links present?

Ara

Hi thanks for the responses,

The XML is created using the .cfg file and the import add in in excel.

I've only tried so far to import the files via the import options within RQM. Is it the correct process to first do this through Construction -> Import Test Case and then Construction -> Import Test Script?

(And yes - I am trying to write a cfg from scratch using the sample files :-)  )

 Using the samples provided by the tool as the basis for your specific needs is always a good approach; it will provide a sound baseline from which you can build from.

In general, I use the ‘Export to file’ option for troubling shooting purposes (i.e. to verify the cfg file and the associated data file are syntactically in synch); once this is done, I will export directly into a project (Export to Repository rather than Export to file).
Additionally, I also have ‘test’ project I use to evaluate my artifacts; although, this is a extra step it gives me the flexibility to ‘experiment’ without interfering with production data



One answer

Permanent link
Peter,
if you want export the test artifacts from Excel to RQM, you can use Export to repository directly.
and if you want to export manually from the RQM UI, you need to upload the referenced artifacts first, else the link will miss.
i.e. in you case you create test case and test script
assume
testcase xml is :
<testcase>
<title> case1 </title>
<testscript href="../testscript/testscript1" />
</testcase>

and testscript xml is
<testscript>
<title>testscript1</title>
<id>testscript1</id>
</testscript>

we need to upload the testscript first then testcase as testcase have a reference to testscript.
if you upload testcase first
the testcase xml will become.
<testcase>
<title> case1 </title>
</testcase>
---> <testscript href="../testscript/testscript1" /> will be lost.

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
× 173
× 64
× 31

Question asked: Nov 15 '12, 8:49 a.m.

Question was seen: 8,617 times

Last updated: Nov 15 '12, 9:25 p.m.

Confirmation Cancel Confirm