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

RQM Excel Importer : Unable to populate Custom Attribute for Test Script

Hi

I have a custom attribute called 'Pre-Condition' for a Test Script in RQM 4.0.3.

I am using the RQM Excel Importer and the excel sheet has the Pre-Condition field populated with data. After running the Importer the Pre-Condition field is not being populated in RQM.

I am using the syntax as follows in the CFG file.

testscript.alm:Pre-Condition=G

Is this the correct syntax for Custom attribute for a Testscript? Please let me know.

Regards
Niranjan

0 votes



2 answers

Permanent link

Hi Niranjan,

Here is the code which I have used while importing pre-condition from excel and it worked. ( highlighted in Bold)

// test case defined with  definite cell locations
testcase.dc:title=B1
testcase.dc:description=B3
testcase.alm:state xmlns:alm="http://jazz.net/xmlns/alm/v0.1/"=A5
testcase.category term="Class".value=D5
testcase.category term="Module".value=A3
testcase.category term="Level".value=D7
testcase.category term="Phase".value=B5
testcase.category term="Designer".value=A7
testcase.category term="Creation Date".value=B7
testcase.Section("myns:com.ibm.rqm.planning.editor.section.testCasePreCondition","RQM-KEY-TC-PRE-COND-TITLE")=D3
testcase.XLSLink=testscript

pre_condition

0 votes

Comments

Hi Anoop

Thanks for the reply. I have created this custom attribute for TestScript. Will the syntax be similar?

Regards
Niranjan V


Permanent link
 Hi Niranjan, 

     Adding custom attributes to an artifact

if we have 2 customAttributes  testcaseCustomAttribute1 , and testcaseCustomAttribute1 in one testcase, the customAttributes testcaseCustomAttribute1 and testcaseCustomAttribute2 should be created in RQM UI before running the RQM Excel Importer.

we can config the .cfg file like

//for testcaseCustomAttribute1 put identifier in Excel Cell M3 and name in Cell N3 and type in Cell M4.  
testcase.customAttributes identifier=M3.name=N3.type=M4.value=O

or using testcase.customAttributes identifier=" Custom_attribute_0_" .name=" testcaseCustomAttribute1" .type=" SMALL_STRING" .value=O

//for testcaseCustomAttribute2 put identifier in Excel Cell Q3 and name in Cell R3 , if type isn't specified, the "SMALL_STRING" is by default.
testcase.customAttributes identifier=Q3.name=R3.value=Q

     you can find a example in the RQM Importer installation directory.For example: C:\Program Files\IBM\RQMExcelImporterX64\Samples

      sample TestCases 001 with custom attributes.xls and TestCases 001 with custom attributes.cfg will show you how to format it.

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
× 12,019

Question asked: Nov 25 '13, 11:49 p.m.

Question was seen: 5,458 times

Last updated: Nov 26 '13, 9:32 p.m.

Confirmation Cancel Confirm