It's all about the answers!

Ask a question

RQM - how to fill TC costume atributes via CommandLineAdapter?


Krzysztof Krzywdzinski (133) | asked Mar 14 '18, 5:19 a.m.

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 ?



Comments
Krzysztof Krzywdzinski commented Mar 14 '18, 5:56 a.m.

custome attributes also called categories

3 answers



permanent link
Subhajit Bhuiya (6222) | answered Apr 10 '18, 3:05 a.m.
JAZZ DEVELOPER

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.


permanent link
Krzysztof Krzywdzinski (133) | answered Apr 10 '18, 3:51 a.m.

 

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>



permanent link
Subhajit Bhuiya (6222) | answered Apr 10 '18, 4:37 a.m.
JAZZ DEVELOPER

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.

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.