Cucumber 版本 - 6.9.1 - 无法在场景大纲“示例”中传递空白字符串

问题描述

cucumber 版本升级到 6.9.1 后,Examples 中无法传入空白(空字符串)。 以前可以传递空字符串

host    local-ag-db     gauthier        127.0.0.1/32            peer

解决方法

我可以在 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

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...