It's all about the answers!

Ask a question

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?


Neeta Valera (45643) | asked Jun 09 '16, 8:28 a.m.
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.

Accepted answer


permanent link
Mehul Patel (9695) | answered Jun 13 '16, 3:20 a.m.
FORUM MODERATOR
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

Comments
Neeta Valera commented Jun 13 '16, 9:41 a.m.

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

One other answer



permanent link
Mehul Patel (9695) | answered Jun 10 '16, 9:16 a.m.
FORUM MODERATOR
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


Comments
Neeta Valera commented Jun 10 '16, 9:21 a.m.

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.


Joao Carusi commented Jun 14 '16, 9:32 a.m.

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"



Neeta Valera commented Aug 16 '18, 1:26 p.m.

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