是否有可能在 Robotframework 中,执行后挂钩 Ruby/Cucumber

Is it possible to have in Robotframework, hooks after execution like Ruby/Cucumber

Ruby 和 Cucumber 有一个挂钩文件 (hooks.rb) 允许在功能、场景、步骤甚至 [=24] 之前 and/or 之前执行操作 =] 在程序中 at_exit.

这允许执行一些我不想将它们包含在测试执行报告中的重要操作(如脚本)。

在Robotframework中我只知道Suite/TestSetup/Teardown

这会在日志中打印操作,我必须 implement/call 对所有测试套件(不同的文件)执行此操作,并且不能全局完成,对于所有测试,只能执行一次。

有什么办法可以做到这一点吗?谢谢

你搜索的大概是监听接口:http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#listener-interface