我有这样的故事:
Scenario: Go to screen Configuration->Setup->Device Operation Mode , Set Device mode to IP if not matched
Given I am on page Configuration->Setup->Device Operation Mode
When I choose "IP" if not matched from "Operation Mode" dropdown
所以“当我选择“IP”如果不匹配时......”关键字是点击按钮并将我的模式更改为 IP。
我的问题是:如果我想在测试结束时添加返回原始设备模式的场景(如果它已更改)。
就像是:
Scenario: Go to screen Configuration->Setup->Device Operation Mode , return device to origin mode
Given I am on page Configuration->Setup->Device Operation Mode
Then I return device operation mode to origin mode
我怎么知道原始模式是什么?
jbehave 有办法在关键字之间共享变量吗?