I am trying to diff two folders using the below batch file and script but I am always getting 0 back in the errorlevel.
Its runs ok and the compare.csv contains the diffs ... but I keep getting errorlevel 0 when I run from the command line OR via the batch file
I have googled this and tried suggestions for a few hours but got nowhere and its driving me nuts!
Great if anyone could help!
Thanks alot
Paul
Dos output ...
------------------------------------------------------------------------
C:\paul\Projects\205_regression_testing\prod_rerun \02_cases>bcomp.com @test.bcmpbat
C:\paul\Projects\205_regression_testing\prod_rerun \02_cases>echo %errorlevel%
0
C:\paul\Projects\205_regression_testing\prod_rerun \02_cases>
------------------------------------------------------------------------
My script file contains ...
------------------------------------------------------------------------
load "production_cases" "rerun_cases"
expand all
criteria rules-based
filter "QuoteOutput*.xml"
folder-report layout:side-by-side options:display-mismatches output-to:".\compare.csv"
------------------------------------------------------------------------
------------------------------------------------------------------------
@echo off
bcomp.com @test.bcmpbat
set ERRLVL=%errorlevel%
if %ERRLVL% EQU 2 (
goto :PROBS
)
if %ERRLVL% EQU 1 (
goto IFFS
)
if %ERRLVL% EQU 0 (
goto :OKOK
)
:OKOK
echo "folders matched"
goto :EOF
IFFS
echo "folders had diffs"
goto :EOF
:PROBS
echo "error : problem with diffs"
goto :EOF
:EOF
------------------------------------------------------------------------
Its runs ok and the compare.csv contains the diffs ... but I keep getting errorlevel 0 when I run from the command line OR via the batch file
I have googled this and tried suggestions for a few hours but got nowhere and its driving me nuts!
Great if anyone could help!
Thanks alot
Paul
Dos output ...
------------------------------------------------------------------------
C:\paul\Projects\205_regression_testing\prod_rerun \02_cases>bcomp.com @test.bcmpbat
C:\paul\Projects\205_regression_testing\prod_rerun \02_cases>echo %errorlevel%
0
C:\paul\Projects\205_regression_testing\prod_rerun \02_cases>
------------------------------------------------------------------------
My script file contains ...
------------------------------------------------------------------------
load "production_cases" "rerun_cases"
expand all
criteria rules-based
filter "QuoteOutput*.xml"
folder-report layout:side-by-side options:display-mismatches output-to:".\compare.csv"
------------------------------------------------------------------------
------------------------------------------------------------------------
@echo off
bcomp.com @test.bcmpbat
set ERRLVL=%errorlevel%
if %ERRLVL% EQU 2 (
goto :PROBS
)
if %ERRLVL% EQU 1 (
goto IFFS
)
if %ERRLVL% EQU 0 (
goto :OKOK
)
:OKOK
echo "folders matched"
goto :EOF
IFFS
echo "folders had diffs"
goto :EOF
:PROBS
echo "error : problem with diffs"
goto :EOF
:EOF
------------------------------------------------------------------------
Comment