Hi All,
I’m a new user to Robot Framework (v3) and I’ve come across some unexpected behaviour (to me anyway) with the “Should Contain” keyword in the builtin library while using Renode.
My robot script simply checks if a received UART line contains an expected string. I want the lines following the ‘Should Contain’ to be executed regardless if it passes or fails, but they only get executed if the test passes. Given that there’s no indentation possible here, I’m wondering how I implement the required logic here ?
Target should return “${expected_string}” on UART
${uart_data}= Wait For Next Line On Uart
Should Contain ${uart_data.line} ${expected_string} # next lines only execute on Pass, why ???
${uart_data}= Wait For Next Line On Uart
Log ${uart_data}
Should Contain ${uart_data.line} ${EMPTY}