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

RQM 6.0.2: ExcelImporter - 2. Link test suite to an existing test plan 2. How to set custom atrributes/categories for the test suite in the config file?

Hi,
In my configuration file, I create new test suite with test cases. I would like to link the test suite i am creating to an existing test plan. How can I accomplish that in the config file for the ExcelImporter?
Also, how do I set custom attributes and categories for the test suite in the config file?
I am using RQM 6.0.2 and same excel importer.
Thank you.

0 votes


Accepted answer

Permanent link
Neeta.

You can use LinkExisting keyword - 'testsuite.testplan=LinkExisting("testplanid")' where testplanid is external/internal id of the test plan i.e. urn:com.ibm.rqm:testplan:3.

Categories are defined with the category term=<category name>.value=<category value> notation: i.e. testsuite.category term="Test Phase".value="Developer Test"

Hope this clarifies.

Regards,
Mehul




Neeta Valera selected this answer as the correct answer

0 votes

Comments

The syntax you mentioned above worked perfectly! Thank you so much.


One other answer

Permanent link
Neeta,

Please refer RQMExcelImporter's sample folder for cfg file 'TestSuite with TestCases 001.cfg', you can add following syntax to it and it will link testplan to testsuite.

    /// ----
    testplan.dc:title=C1
    testplan.dc:description=A4
    testplan.XLSLink=testsuite
    /// --- 


Add following line to update custom attributes

    //---
    testsuite.customAttributes name="Custom_name".value=C1
    //---

Please refer RQMExcelImporter Wiki for supported syntax and example.

Regards,
Mehul

1 vote

Comments

Mehul,

Thanks for your answer. However, for the first questions, my test plan is not in the Excel, but it exists in RQM so I cannot link the test suite to the test plan since I don't have the test plan info in a cell in the excel sheet.

For the second question, what is the syntax for setting values for a custom CATEGORY? I could not find it in the wiki.

Thanks.

For the second question, what is the syntax for setting values for a custom CATEGORY?

>>> Go to Manage Project Properties >   Artifact Categories >  Test

Case Categories)

 

Add the following line using the information found in the "Manage Project Properties"
(use the following types: MEDIUM_STRING, TIMESTAMP,SMALL_STRING,INTEGER):

eg:

testcase.customAttributes identifier="Keyword_2".name="Keyword 2".type="MEDIUM_STRING".value="NEW VALUE"


Hi,

I tried what Mehul suggested above to link a test suite to a test plan using the excel importer using the samples and the syntax suggested by Mehul above but it gives me this error:
8/16/2018 1:17:22 PM: 
8/16/2018 1:17:22 PM: 
SESSION: 8/16/2018 1:17:22 PM
8/16/2018 1:17:22 PM: Getting artifacts from current document TestSuite with TestCases 001.xls
..........
8/16/2018 1:17:24 PM: Server returned code OK
8/16/2018 1:17:24 PM: sending testsuite5 named TestSuite_with_TestCases_001_Acme_Hammers_1.xml
8/16/2018 1:17:24 PM: Server returned code InternalServerError
8/16/2018 1:17:24 PM: Error sending to server TestSuite_with_TestCases_001_Acme_Hammers_1.xml of type testsuite
8/16/2018 1:17:24 PM: Internal Server Error
8/16/2018 1:17:24 PM: sending testplan6 named TestSuite_with_TestCases_001_Acme_Hammers_1.xml
8/16/2018 1:17:25 PM: Server returned code Created
8/16/2018 1:17:25 PM: finished writing artifacts  

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,015

Question asked: Jun 09 '16, 8:28 a.m.

Question was seen: 2,622 times

Last updated: Aug 16 '18, 1:26 p.m.

Confirmation Cancel Confirm