我正在尝试在 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) {
}
}