【发布时间】:2019-08-28 08:00:20
【问题描述】:
我正在尝试在 Quantum 框架中运行 BDD 场景。执行时,使用 But 关键字的步骤失败并出现错误“步骤尚未实现”。
Auto-generated code snippet by QMetry Automation Framework.
TODO: remove NotYetImplementedException and call test steps
throw new NotYetImplementedException();
我没有看到任何其他 BDD 关键字的问题。只有以“But”关键字开头的步骤会失败,但出现上述异常。我有什么遗漏的吗?
请找出我们正在使用的场景
Scenario: Validate help me log in link
Given user have the "XXX" app in mobile
But user open the app by the name "XXX"
步骤实现:
import cucumber.api.java.en.But;
...
@But("^user open the app by the name \"([^\"]*)\"$")
public void user_open_the_app_by_the_name(String arg1) throws Throwable {
try {
AppiumUtils.stopApp(arg1);
} catch (Exception e) {
}
}
【问题讨论】:
-
它是否使用
And而不是But?你能提供你的床步调用、步骤定义和自动生成的代码片段吗? -
已经更新了场景和代码供大家参考。
标签: selenium cucumber bdd qaf perfecto