[英]How can i verify the Cucumber jars while using it with selenium
I am trying to incorporate cucumber with selenium using Java . 我正在尝试使用Java将黄瓜与硒混合。 I have included the following jars into my classpath .
我已将以下jar包含在我的类路径中。
1. cucumber-core-1.2.0.jar
2. cucumber-java-1.2.0.jar
3. cucumber-junit-1.2.0.jar
4. cucumber-jvm-deps-1.0.3.jar
5. cucumber-reporting-0.0.2.jar
6. cobertura-1.8.jar
But when i try to run the files , i am getting this following error . 但是,当我尝试运行文件时,我收到以下错误。
cucumber.runtime.CucumberException: Couldn't find /cucumber/formatter/formatter.js. Is cucumber-html on your classpath? Make sure you have the right version.
Please tell me if i would need to add other version of jars or new jar ??? 请告诉我是否需要添加其他版本的罐子或新罐子?
You have missed cucmber sources jar (eg: cucumber-html-0.2.2-sources.jar) in the class path. 你已经错过了类路径中的cucmber来源jar(例如:cucumber-html-0.2.2-sources.jar)。 Try downloading the latest jar from maven [1]
尝试从maven下载最新的jar [1]
[1] https://mvnrepository.com/artifact/info.cukes [1] https://mvnrepository.com/artifact/info.cukes
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.