It's all about the answers!

Ask a question

Can CLA test result be modified according to an external file?


Shuchita Tripathi (31436395) | asked Jan 09 '15, 6:50 a.m.
Hi,
Below is the scenario I am trying to achieve.

A team is using an external testing tool (abc.exe). It produces output in text or html format.
Team wants to use RQM to invoke abc.exe and execute the tests. Then RQM should read the output file produced by abc.exe (text or html) and then decide the result of the test accordingly.

I am using CLA test script to invoke abc.exe. Want to know if there is any way by which RQM can read the output produced by abc.exe (output in form of text or html file) and then update in its test case result? Any exit code mapping or anything by which this can be done?

One answer



permanent link
Ara Masrof (3.2k15) | answered Jan 09 '15, 7:52 a.m.
JAZZ DEVELOPER
 Take a look quick look at Integrating your test tools with IBM Rational Quality Manager using the command-line adapter

Mapping Application Exit Codes

RQM supports a variety of result codes (Passed, Failed, Error, Blocked, etc) that can be set in an execution result. These result codes can be mapped to application exit codes returned by the shell/batch script or executable started by the CLA test script. For example, by default, if the exit code returned is 0, the result code in the execution result will be 'Passed'. These mappings can be changed by editing the commandline.properties file in the CLA installation directory. Be sure to restart the CLA after making any changes. The following properties (name/value pairs) define the mappings.

com.ibm.rqm.commandline.exitcode.PASSED=0
com.ibm.rqm.commandline.exitcode.FAILED=*
com.ibm.rqm.commandline.exitcode.ERROR=40
com.ibm.rqm.commandline.exitcode.INCOMPLETE=41
com.ibm.rqm.commandline.exitcode.INCONCLUSIVE=42
com.ibm.rqm.commandline.exitcode.BLOCKED=43
com.ibm.rqm.commandline.exitcode.PARTIALLY_BLOCKED=44
com.ibm.rqm.commandline.exitcode.PERMANENTLY_FAILED=45
com.ibm.rqm.commandline.exitcode.DEFERRED=46
Note that the value for the FAILED result code is '*', indicating that this will match all non-specified exit codes. No exit code should be repeated as this may result in mapping to an unexpected value.

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.