Thank you for the response.
However, I do not want to import the python library in Keyword/robot file.
Let me explain with an example:
class Myclass:
def my_teardown_method(self):
BuiltIn().run_keyword(method1)
BuiltIn().run_keyword(method2)
----------------------------------------------------------------
testcase
*** Settings ***
Library c:/gitprojects/lev3automation/scripts/Myclass.py
Test TearDown
my_teardown_method
*** Test Cases ***
Test Method Call
[Tags] methodcall
Log To Console Test method call....
-----------------------------------------------
When I do as above, in case if these is any error while executing method1, I'm doing raise Assert. and is not executing method2. which is correct.
However, I want to set the teardown property to this method. So that even if method1 fails, it will continue to execute method2.
I have also tried using continue on failure, But this does not solve my purpose, As I want to see in the log, if any failure occured during teardown has be marked as RED/failed. and next method should execute.
Thank you,
Aparna