The way i raise errors from my keywords is by using the robot.api.logger class
def test_keyword():
logger.error("Report error")
This creates an error line in the log.html file under the keyword but does not fail the keyword.
The way i fail a keyword is by raising exceptions.
def test_keyword():
raise Exception("Not implemented")
This fails the keyword as well as the test case in which the keyword was called. But this also stops the further execution of the test case.
Is there any way i can fail a keyword without stopping the test case execution?
logger.error()approach? From your description it seems that this does exactly what you want. - A. Kootstraverify_xyz_component_is_visible(),verify_total_displayed_for_column()etc. If my first keywordverify_xyz_component_is_visible()fails, i still would like to check the status of my second keywordverify_total_displayed_for_column()and keywords after that before stopping the execution of my test - GPT14Run Keyword And Ignore ErrororRun Keyword And Continue On FailureorRun Keyword And Return Status. - Psythologger.error()from within a keyword logs the error but the status of that keyword is stillPASS. What i want is to have a mechanism by which i can fail a keyword(change the status toFAILwithout stopping the execution - GPT14