18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Exit code of a batch run

lausserlausser Members
edited November -1 in Sahi - Open Source
Hi,

1st thanks a lot for this great tool. I would like to use Sahi together with the Nagios monitoring software. For this i need to know, wether a batch run succeeded or has failed. If i look at the out put i see "Status: SUCCESS" and "Status: Failure". But the %ERRORLEVEL% if the java TestRunner is always 0. Now in my runsahi.bat file i would like to do the following:

java -cp .... net.sf.sahi.TestRunner .....
if %SOMETHINGLIKEERRORLEVEL% 1 notify.bat

Is there a way to achieve this?

Greetings from Munich,
Gerhard
Sign In or Register to comment.