Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.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
运行maven时cucumber测试的duplicateStepDefinition错误_Maven_Selenium_Cucumber_Maven Surefire Plugin_Cucumber Java - Fatal编程技术网

运行maven时cucumber测试的duplicateStepDefinition错误

运行maven时cucumber测试的duplicateStepDefinition错误,maven,selenium,cucumber,maven-surefire-plugin,cucumber-java,Maven,Selenium,Cucumber,Maven Surefire Plugin,Cucumber Java,尝试通过下面的“maven install”运行测试时出错,删除目标文件夹时工作正常。 This typically happens when you configure cucumber to look for features in the root of your project. Your build tool creates a copy of these features in a 'target' or 'build'directory. If your feat

尝试通过下面的“maven install”运行测试时出错,删除目标文件夹时工作正常。

 This typically happens when you configure cucumber to look for features in the root of your project.
    Your build tool creates a copy of these features in a 'target' or 'build'directory.
    If your features are on the class path consider using a class path URI.
    For example: 'classpath:com/example/app.feature'
    Otherwise you'll have to provide a more specific location
    Apr 30, 2020 1:48:43 PM io.cucumber.core.runtime.FeaturePathFeatureSupplier$FeatureBuilder addUnique
    SEVERE: Duplicate feature found: classpath:AppFeatures/EventLogging/gherkin/SignOn.feature was identical to classpath:Events/AppFeatures/EventLogging/gherkin/signOn.feature

正如错误消息所说:“这通常发生在配置cucumber以在项目根目录中查找功能时。” 按照错误消息中的建议更改配置

(您没有提供有关如何配置Cucumber或如何运行Cucumber的任何信息,因此我无法帮助您)