python - Robot Framework - pybot command output -


i have jenkins job that's trigger robot framework test suites. configure job "execute windows batch command" in build step. there pybot command in batch command line. need return code use execute script or finish execution. so, how can return code or output statement pybot command realize execution's success/failed status?

update added if block. when suite success, seems work fine. when suite failed, couldn't go else block. did miss something?

pybot --suite login --argumentfile "c:\program files (x86)\jenkins\jobs\live_smoke_ciceksepeti\workspace\execution\server\settings\ciceksepeti_argumenfile_live_chrome.txt" --variablefile "c:\program files (x86)\jenkins\jobs\live_smoke_ciceksepeti\workspace\execution\server\settings\ciceksepeti_variable_live_chrome.py" --loglevel info "c:\program files (x86)\jenkins\jobs\live_smoke_ciceksepeti\workspace" if %errorlevel% equ 0  (exit) else (pybot --rerunfailed "output.xml" --output "rerun.xml" --loglevel info "c:\program files (x86)\jenkins\jobs\live_smoke_ciceksepeti\workspace"&rebot --merge "output.xml" "rerun.xml") 

the following variable contains return code:

%errorlevel% 

Comments

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -