"Exception in thread "main" java.lang.IllegalArgumentException: 不是文件或 directory:E:\Selenium-Project\cucumberDemo\--plugin
"Exception in thread "main" java.lang.IllegalArgumentException: Not a file or directory:E:\Selenium-Project\cucumberDemo\--plugin
当我 运行 一个示例黄瓜功能文件时,它显示
线程 "main" java.lang.IllegalArgumentException 中的异常:不是文件或目录:E:\Selenium-Project\cucumberDemo--plugin
Exception in thread "main" java.lang.IllegalArgumentException: Not a file or directory: E:\Selenium-Project\cucumberDemo\--plugin
at cucumber.runtime.io.FileResourceIterator$FileIterator.<init>(FileResourceIterator.java:54)
at cucumber.runtime.io.FileResourceIterator.<init>(FileResourceIterator.java:20)
at cucumber.runtime.io.FileResourceIterable.iterator(FileResourceIterable.java:19)
at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:38)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:117)
at cucumber.runtime.Runtime.run(Runtime.java:92)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:12)
我使用的是 cucumber-java 1.2.5、cucumber-junit 1.2.4 和 junit 4.12 版本,它们工作正常。
尝试使用提到的版本,如果您的问题已解决,请告诉我。
当我 运行 一个示例黄瓜功能文件时,它显示 线程 "main" java.lang.IllegalArgumentException 中的异常:不是文件或目录:E:\Selenium-Project\cucumberDemo--plugin
Exception in thread "main" java.lang.IllegalArgumentException: Not a file or directory: E:\Selenium-Project\cucumberDemo\--plugin
at cucumber.runtime.io.FileResourceIterator$FileIterator.<init>(FileResourceIterator.java:54)
at cucumber.runtime.io.FileResourceIterator.<init>(FileResourceIterator.java:20)
at cucumber.runtime.io.FileResourceIterable.iterator(FileResourceIterable.java:19)
at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:38)
at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:117)
at cucumber.runtime.Runtime.run(Runtime.java:92)
at cucumber.api.cli.Main.run(Main.java:20)
at cucumber.api.cli.Main.main(Main.java:12)
我使用的是 cucumber-java 1.2.5、cucumber-junit 1.2.4 和 junit 4.12 版本,它们工作正常。
尝试使用提到的版本,如果您的问题已解决,请告诉我。