Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以将参数传递给 Jbehave 生命周期吗?像下面这样?
Lifecycle: Before: Given I have logged in as <user>
谢谢!
当然可以,您可以为预定义参数定义多个元标记,如下所示。
Lifecycle: Meta: @param 1 2 3 Before: Given I have logged in as <param>
从运行时获取元标记过滤器以选择您的首选参数。