Command Line Adapter - exit codes
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
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:
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.
| Exit code | Script Actual Results |
|---|---|
| 0 | Passed |
| * | Failed |
| 40 | Error |
| 41 | Incomplete |
| 42 | Inconclusive |
| 43 | Blocked |
| 44 | Partially_blocked |
| 45 | Permanently_failed |
| 46 | Deferred |
Just configure the commandline.properties file and it should work.
Regards,
Thomas