Reputation: 29
Have a requirement to set some delay between two test cases in a Robotframework Test suite to avoid cascading failure in one test case to another.
Upvotes: 0
Views: 1431
Reputation: 21
I have used test specific actions in 'My Test Setup' keyword and added some test specific keywords to it to setup particular tests. Here is a simplified example:
*** Settings ***
Suite Setup My Suite Setup # Before the suite is executed (wait 5 secs)
Test Setup My Test Setup # Before the current test is executed (wait 1 sec)
*** Test Cases ***
# Tests goes here
*** Keywords ***
My Test Setup
Sleep 5s
My Suite Setup
Sleep 1s
Upvotes: 2
Reputation: 386010
There is no built-in support to add a delay between test cases.
You can accomplish the same effect by calling the Sleep keyword as a test setup or test teardown.
Upvotes: 2