cucumber-jvm - Cucumber 版本 - 6.9.1 - 无法在场景大纲“示例”中传递空白字符串
问题描述
cucumber 版本升级到 6.9.1 后,Examples 中不能传入空白(空字符串)。以前可以传递空字符串
Scenario Outline : Testing datatable with empty string
When passing "<first>" and "second>" as String parameter
Then exception should be thrown
Examples:
| first | second |
| simple | |
解决方案
我可以在cucumber-java
版本中使用它6.9.1
。刚刚测试过了
Scenario Outline: example
Given I log <TestString>
Examples:
|TestString|
|" " |
@Given("I log {string}")
public void logSomething(String teststr ) {
System.out.println("sample text:"+ teststr+"somethingtoIdentifySpace");
}
打印这个
sample text: somethingtoIdentifySpace
推荐阅读
- apache-kafka - KTable 没有对具有相同键的传入记录进行重复数据删除
- javascript - 转换以将 API 数据发送到要在折线图中使用的其他组件
- ios - IOS UITableView display first 5 rows of an array
- node.js - 对不同的 html 页面使用 href 标记,但在 express 中具有相同的 url id
- ruby-on-rails - Rails API 422 无法处理的实体:没有可用的验证密钥,heroku
- android - 按钮在 AVD 中不可见
- python - 使用元数据而不是图像训练模型
- c++ - 您可以将 NULL 指针变量分配给指针变量吗?
- netty - 通道管道 addLast 有时不起作用
- vue.js - Vuex:未知突变类型:dropdownState