Robot framework interview question, test script execution based on the run time execution output

Interview Question, asked by an Robot automation test engineer

While Automation test script run time, If test case is failed we have to give the failed input in our test script and then another test case will run. If, Test cases is passed, then based on the pass output, one sort of test case to be run. Could you please help me to write a robot framework code based on the above scenario.

Just to understand more, are you asking if a test fails then you want to trigger another test based on failure and another if it passed?

Teardown you can have keyword “Run Keyword If Test Failed” or using tags could possible be of use to you for what the interviewer has requested?

Thanks, I will try to prepare a robot framework code using this teardown method.

It really helps, Thanks a lot :slight_smile:

1 Like