Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/372.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
Java Cucumber错误:由以下原因引起:gherkin.lexer.LexingError:第1行的Lexing错误_Java_Cucumber_Lexical Analysis_Gherkin - Fatal编程技术网

Java Cucumber错误:由以下原因引起:gherkin.lexer.LexingError:第1行的Lexing错误

Java Cucumber错误:由以下原因引起:gherkin.lexer.LexingError:第1行的Lexing错误,java,cucumber,lexical-analysis,gherkin,Java,Cucumber,Lexical Analysis,Gherkin,我有一个cucumber特性文件,当我运行它时会出错,并且Eclipse编辑器会警告我一个错误 对我来说,语法是正确的 @feature100 Feature: Feature-100: Category Navigation Landing on homepage, it is possible to select a category through main navigation menu. Clicking on one of them, the Product grid page is

我有一个cucumber特性文件,当我运行它时会出错,并且Eclipse编辑器会警告我一个错误

对我来说,语法是正确的

@feature100
Feature: Feature-100: Category Navigation
Landing on homepage, it is possible to select a category through main navigation menu. Clicking on one of them, the Product grid page is reached.
Here all the filter types are listed in the bar: selecting one or more filter for filter type, the page refresh showing filter result in the grid. The number of filters selected updates near each filter type.
Once a filter is selected, Reset Filters functionality appears the left side of the bar.
Clicking on one of the products listed in filter result, the product detail page is reached. 

@test100 @active @screenshot @frontend @payment @caus
Scenario Outline: Feature-100 Group CAUS. 
Given FRONTEND_HOME_PAGE I access to homepage <Initials> and <Language>
And   FRONTEND_HOME_PAGE I control cookie alert <Initials> <Language>
And   FRONTEND_HOME_PAGE I click category GIFTS <Initials> and <Language>
And   FRONTEND_HOME_PAGE I click category FOR HER <Initials> and <Language>
And   FRONTEND_HOME_PAGE I select filters grid color
And   FRONTEND_HOME_PAGE I select filters grid material
#And   FRONTEND_HOME_PAGE I select filters grid line
#And   FRONTEND_HOME_PAGE I select filters grid gender
#And   FRONTEND_HOME_PAGE I select filters grid dimension
#And   FRONTEND_HOME_PAGE I select filters grid sort
#And   FRONTEND_HOME_PAGE I select filters grid all
#Then  FRONTEND_HOME_PAGE I select filters for product
@us
Examples: US Success
|Initials|Language|
| "us"   |"en"    |
Eclipse还向我报告了一个错误:


它似乎在抱怨流浪的
@us
标签。您是否尝试过将其与其他标记放在同一行,而不是直接放在您的桌子前面?我尝试过,似乎问题是关于@us标记请详细说明-如果您按照我的建议移动@us标记,错误会消失吗?或者它会持续存在,而消除错误的唯一方法是完全删除标记?如果我剪切了标记,错误会继续@it,这是下面的代码中没有@it。请张贴您正在使用的真实代码和您收到的真实错误消息。不要手动输入-使用复制粘贴。
Exception in thread "main" cucumber.runtime.CucumberException: Error parsing feature file C:/works/integrationtest/frontend/frontend.test/src/it/javatest/RunCukes100.java
    at cucumber.runtime.FeatureBuilder.parse(FeatureBuilder.java:133)
    at cucumber.runtime.model.CucumberFeature.loadFromFeaturePath(CucumberFeature.java:104)
    at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:54)
    at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:34)
    at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:235)
    at cucumber.runtime.Runtime.run(Runtime.java:110)
    at cucumber.api.cli.Main.run(Main.java:36)
    at cucumber.api.cli.Main.main(Main.java:18)
Caused by: gherkin.lexer.LexingError: Lexing error on line 1: 'package it.integrationtest.frontend.test;