How to return exit codes through command line adapter(from Junit test scenarios) to RQM test results
Manjunath KR (1●4●5)
| asked Jul 24 '13, 9:46 a.m.
retagged Jul 29 '13, 11:58 a.m. by Ralph Earle (257●3●9) We are using RQM 4.0.3 and command-line adapter to execute Junit test scripts stored in local machine. We are not able to return exit codes from the Junit script to the RQM side. Sample Junit scenarios we are using are:
|
3 answers
Hi Manjunath,
You need to add System.exit(code) if you want to return the code by Java: fo example:
Comments
Manjunath KR
commented Jul 24 '13, 11:34 a.m.
Hi Krzysztof, I have tried it but it is not returning that value to RQM test result.
Thanks.
|
Hi Manjunath,
1) my +1 on Krzysztof's answer. 2) for a clarification on returned codes, you could check http://pic.dhe.ibm.com/infocenter/clmhelp/v4r0m3/index.jsp?topic=%2Fcom.ibm.rational.test.qm.doc%2Ftopics%2Ft_customize_cmd_line.html Regards, Stéphane Comments
Manjunath KR
commented Jul 25 '13, 3:48 a.m.
Hi Stephane, Yes I have checked the article and I tried to return values like 41,42,etc., but some how by default I am seeing only 'passed' state. Thanks. Hi Manjunath,
|
Ralph Schoon (63.5k●3●36●46)
| answered Jul 25 '13, 4:33 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
There is also an interesting blog that might shed some light: http://sudhakarf.wordpress.com/2013/07/20/executing-a-jmeter-testplan-from-rational-quality-manager/
Comments
Manjunath KR
commented Jul 25 '13, 5:36 a.m.
Hi Ralph, I have read that blog. The problem is my batch script(.cmd file) is not getting the return value from script( System.exit(41) ). Because when ever I put an echo statement in batch script like "echo errorlevel=%ERRORLEVEL%", it is not showing 41 but by default it is showing errorlevel=0 in result details. Thanks. |
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.