It's all about the answers!

Ask a question

Command Line Adapter - exit codes


Manjunath KR (145) | asked Jul 01 '13, 7:01 a.m.
  I am using RQM 4.0.3 and we want to run scripts through command line adapter. After executing a script, it always return 'passed' or exit code :0 . But we want some other scenarios also like 'Failed', 'Incomplete' etc., For which we have return codes in properties file. But please can some one help us in how to return those codes and let RQM interpret that.

One answer



permanent link
Thomas Suedbroecker (29335) | answered Jul 01 '13, 7:41 a.m.

Hello Manjunath,

this sound just like a help topic you can find here: http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m3/topic/com.ibm.rational.test.qm.doc/topics/t_customize_cmd_line.html

Procedure

Optional: Customize the commandline.properties file on the test target machine. A process exit code is mapped to the script Actual Results. The default mapping is as follows:
Exit code Script Actual Results
0 Passed
* Failed
40 Error
41 Incomplete
42 Inconclusive
43 Blocked
44 Partially_blocked
45 Permanently_failed
46 Deferred
Edit the commandline.properties file on the test target machine before you start the adapter. This file controls the Actual Results and can add text to be appended to the end of the execution results log. The text in the properties file has more information on how to update the file.
Just configure the commandline.properties file and it should work.
Regards,
Thomas

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.