【问题标题】:Cucumber report is showing Given instead of And in console for cucumber with inteliij黄瓜报告在带有intellij的黄瓜控制台中显示Given而不是And
【发布时间】:2020-04-17 08:34:04
【问题描述】:

enter image description here

Cucumber 报告在控制台中使用 inteliij 显示 Given 而不是 And,如图所示

【问题讨论】:

  • 欢迎来到stackoverflow。你的问题到底是什么?请花点时间写下这个问题。
  • 正在使用 Cucumber 版本/语言/库?可以重现问题的示例项目会有所帮助
  • 谢谢@PhaniRithvij 和 lena 实际上在运行 cucumber 文件后我提到的步骤并在更新版本后在 intellij 控制台中显示为给定步骤但在返回旧版本后它工作正常我认为他们是新版本 intellij 的问题

标签: intellij-idea cucumber-serenity


【解决方案1】:

您的 Given 语句更改为 And 的原因是您一定有这样的情况

Given I have send A                                                            
And I have send B                                                              
And I have send C

这些都只是 Given 语句。因此,最新版本的 Cucumber 已将所有 And 更改为其对应的 Given/When/Then 语句。这不是一个问题,而是一个新功能。所以,应该是这样的

Given I have send A                                                         
Given I have send B                                     
Given I have send C

【讨论】:

    猜你喜欢
    • 2023-03-26
    • 1970-01-01
    • 2021-04-17
    • 1970-01-01
    • 2022-01-27
    • 2014-09-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多