def test_keyword(): logger.error("Report error")
这将在log.html文件中的关键字下创建一个错误行,但不会使关键字失败。
def test_keyword(): raise Exception("Not implemented")
是否有任何方法可以在不停止测试用例执行的情况下使关键字失败?
documentation 以下内容:
Several failures occurred: 1) First error message. 2) Second error message ...
class MyContinuableError(RuntimeError): ROBOT_CONTINUE_ON_FAILURE = True