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
Post a Comment