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

RQM - how to fill TC costume atributes via CommandLineAdapter?

Hi,

I'm using RQM 6.0.2 RQM and I am running CLA to execute scripts. We want to track values like build ID, componet version, etc. for each execution, and I want it to be updated via automation. Fields are defined as costume attributes.

How can I fill those attributes via CLA ?


0 votes

Comments

custome attributes also called categories



3 answers

Permanent link

You can make use of built-in execution variable. In the test script editor go to Execution Variable section. Make sure the check box for built-in execution variable is checked. Run the associated test case. In the test case result editor, open the Execution variable section and check the execution variables. You can also update the execution variable from commandline script like this

echo RQM_BUILDRECORD_NAME=Rec15 >> "%qm_ExecutionVariablesFile%"

Please read the RQM help doc for execution variables for help.

0 votes


Permanent link

 

Thanks but this is not answering my question, 
the steps that you described are correct for costume properties not costume attributes. (categories).
I need to update something like

<CustomAttributeSerializable> <o:p> </o:p>

        <scope>TESTCASE_RESULT</scope> <o:p> </o:p>

        <type>SMALL_STRING</type> <o:p> </o:p>

        <name>TIC #</name> <o:p> </o:p>

        <description></description> <o:p> </o:p>

        <required>true</required> <o:p> </o:p>

        <itemId>_T0VNwB3dEeiKBbt06PVoQw</itemId> <o:p> </o:p>

        <additionalScope>NO_SCOPE</additionalScope> <o:p> </o:p>

      </CustomAttributeSerializable> <o:p> </o:p>


0 votes


Permanent link

In latest CLA  (6.0.5), test case results are created once adapter starts executing it. You can get the result id using built in execution variable. Next you will need to write your own utility to update result with custom attribute using reportable rest api and call it from the script once execution is over.

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
× 13

Question asked: Mar 14 '18, 5:19 a.m.

Question was seen: 2,358 times

Last updated: Apr 10 '18, 4:37 a.m.

Confirmation Cancel Confirm