【问题标题】:Scenario outline step definition is not reachable and also UndefinedThrowable场景大纲步骤定义不可访问且 UndefinedThrowable
【发布时间】:2019-11-27 04:55:19
【问题描述】:

在包含示例数据、功能文件的场景大纲中,我无法导航或运行包含示例列的步骤。如图所示。 在正常运行期间,“Given”关键字下的初始步骤可以正常导航和调用。蓝色的“用户名”、“密码”和“设施”来自 Excel 文件。其中包含场景大纲示例列的黄色突出显示的步骤既不能导航,也不能被 Cucumber 运行时识别。他们为每个步骤显示此消息:io.cucumber.junit.UndefinedThrowable: This step is undefined 我正在使用最新的 IntelliJ IDE 和最新的黄瓜插件。

【问题讨论】:

  • 能否也给出黄色高亮步骤的步骤定义。

标签: intellij-idea cucumber-jvm


【解决方案1】:

我找到的解决方案是关于步骤定义的,例如 for 并且用户输入收件人作为recipient_email

And("^ User enters recipient as recipient_email(.*)$")
public void userEntersRecipientasRecipient_Email(String email){
//-----implementation------//
}

【讨论】:

    猜你喜欢
    • 2018-07-25
    • 1970-01-01
    • 2016-02-13
    • 2018-09-01
    • 2017-03-28
    • 1970-01-01
    • 2016-07-13
    • 2013-01-22
    • 1970-01-01
    相关资源
    最近更新 更多