Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cucumber不从场景大纲中读取数据_Cucumber_Cucumber Jvm - Fatal编程技术网

Cucumber不从场景大纲中读取数据

Cucumber不从场景大纲中读取数据,cucumber,cucumber-jvm,Cucumber,Cucumber Jvm,我有下面的场景大纲 Background: Given customer is in hot or not page Scenario Outline: Hot article And customer enters <name> And submits And customer clicks thumbs up Then ensure the TBD Examples: | name | | Elliot | | Florian |

我有下面的场景大纲

 Background:
   Given customer is in hot or not page

 Scenario Outline: Hot article
  And customer enters <name>
  And submits
  And customer clicks thumbs up
  Then ensure the TBD

 Examples:
  | name |
  |  Elliot |
  |  Florian |
我是否执行了错误的测试步骤?

而不是

 Scenario Outline: ...
  And customer enters <name>
  ...
场景大纲:。。。
顾客进来了
...
这样做(注意双引号)

场景大纲:。。。
客户输入“”
...

只需补充一点,在runner类中,我们放置了step类的错误包时,会出现相同的错误

@CucumberOptions(glue = {"com.wrongpackage.step"})
public class TestRunner{

}

Step类应该存在,并且包应该是正确的。

Try“”(用引号括起来)您能将您的评论标记为答案吗?我接受:)
 Scenario Outline: ...
  And customer enters <name>
  ...
 Scenario Outline: ...
  And customer enters "<name>"
  ...
@CucumberOptions(glue = {"com.wrongpackage.step"})
public class TestRunner{

}