It's all about the answers!

Ask a question

RQM Excel Importer 5.0 configuration file


Naveen Tyagi (19769152) | asked Feb 26 '15, 1:22 a.m.
I am able to import samples in RQM but in order to Import my Excel file of test cases i am not able to mapped properly  due to some mistakes in .cfg file. Some of the values are either being ignored or getting mapped at wrong place/sections.

I have one 'Test case Id' column in excel file that i want to became name of my test case and there are some other sections in Excel file and also same sections in Test template already created in RQM. lets name A,B,C. I want value of these custom section automatically mapped in the same sections in RQM and when i clicked on perticular section, value must be there in "Rich text area". what is the correct line i need to write in .cfg file. your help would greatly appreciated:-

Accepted answer


permanent link
Reshma Ratnani (1.1k1) | answered Feb 26 '15, 2:19 a.m.
JAZZ DEVELOPER
Hi Naveen,

In order to set the name/title of the TestCase use the attribute testcase.dc:title. So lets say the Test case Id column is A then use below line

testcase.dc:title = A

Refer https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter#Supported_Attributes_and_Configu for more details
Just to add, specify the start row after which the artifact data starts. Use attribute XLSStartRow (It defines what row the artifact data starts after)

Regarding Custom sections you need to first figure out the Section Display Name and Section Id.
For predefined sections of RQM refer below link https://jazz.net/wiki/bin/view/Main/RQMExcelWordImporter#SectionsIds

Syntax for predefined sections is as below
testcase.Section("<sectionID>", "<extentionDisplayName>")=C

To define a new custom section in RQM, simply replace the first parameter with a valid name, and the second with a display name:

testcase.Section("myns:mysection","my custom section")=C

In case if the custom section is already present in RQM then follow below steps to get sectionID and extensionDisplayName :

1) In RQM UI open a TestCase. Fill in data in custom section.
2) Goto the testcase feed url in browser "https://<host>:<port>/<contextRoot>/service/com.ibm.rqm.integration.service.IIntegrationService/resources/<ProjectAreaAlias>/testcase"
2) Right click on the TestCase selected in step 1 which has data in the custom section, select Copy Link Location.
3) Now using RQMURLUtility do a GET to this copied url link or use POSTER utility of Firefox browser
4) In response you should get an xml similar to below. Locate the element/tag in the xml document with extensionDisplayName  value = <Custom Section Name>. Here the attribute named "extensionDisplayName"  is the ExtensionDisplayName value and corresponding tag name is the section ID (Here for eg dynamicSection_1421923675049  is the ID value for Scenario section). Use them in the cfg file with format testcase.Section("myns:<section id>", "<extensionDisplayName>")=C

------------------------------------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<ns2:testcase xmlns:ns2="http://jazz.net/xmlns/alm/qm/v0.1/" xmlns:ns1="http://schema.ibm.com/vega/2008/"
 
  <ns3:title>tcase1232</ns3:title>
  <ns3:description/>
  ........
  <dynamicSection_1421923675049 xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="Scenario">
    <div xmlns="http://www.w3.org/1999/xhtml">scenario</div>
  </dynamicSection_1421923675049>
  <dynamicSection_1421923690528 xmlns="http://jazz.net/xmlns/alm/qm/v0.1/" extensionDisplayName="Test-Condition">
    <div xmlns="http://www.w3.org/1999/xhtml">test condition</div>
  </dynamicSection_1421923690528>
</ns2:testcase>
------------------------------------------------------------------------------------------------------------------------------------------------------------------
Naveen Tyagi selected this answer as the correct answer

Comments
Naveen Tyagi commented Feb 26 '15, 4:53 a.m.

Thanks Reshma!!! more than half of my problem is solved and now i am able to create sections, and import data to pre existing section but i am not able to do same for the custom section already in RQM since i have no idea about RQMURLUtility. I am only aware of RQMExcelImporter, i know there is something RQMURLUtility for Export related stuff but that would be my next task and this stage i have no idea.
Is is possible to get 
get sectionID and extensionDisplayName by some other method instead of RQMURLUtility or it is only way to do ? 
FYI: server is not on my machine.


Reshma Ratnani commented Feb 26 '15, 4:57 a.m.
JAZZ DEVELOPER

You can even use POSTER utility (an add-on of Firefox) to do a GET of the artifact. Just add header ("user-agent", abc)

No issues if the server is not on your machine. You just need to get the xml of the artfact.


Naveen Tyagi commented Feb 26 '15, 5:26 a.m.

 I have only Chrome and IE on machine. In order to Install something i need admin permission that will also take some time.    
is POSTER plugin only for Firefox or it  works for other browser as well? Thanking you in Advance.


Reshma Ratnani commented Feb 26 '15, 5:32 a.m.
JAZZ DEVELOPER

Naveen Tyagi commented Feb 26 '15, 5:47 a.m.

 Thanks!! let me install it and check.

Your answer


Register or 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.