please kindly advise how to stop text excecution when testcase 1 fails and Robot should stop proceeding to testcase 2
If option --exitonfailure (-X) is used, test execution stops immediately if any test fails. The remaining tests are marked as failed without actually executing them.
Thanks for your quick respond please kindly advise,how do you use --exitonfailure (-X) in your automation script?like this?
Click Element //*[contains(@id, 'OkButton_label')] Sleep 3s
No you use the command line options when you run robot, if you are currently doing this:
Then you would change that to
robot -X sams_tests.robot
robot –-exitonfailure sams_tests.robot