RQM - how to fill TC costume atributes via CommandLineAdapter?
3 answers
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.
<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>
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.
Comments
Krzysztof Krzywdzinski
Mar 14 '18, 5:56 a.m.custome attributes also called categories