简体   繁体   English

如何在与硒一起使用时验证黄瓜罐

[英]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.

相关问题 如何避免在使用tomcat时将jar部署到Web内容文件夹中? - How can I avoid from deploying jars into the web content folder while using tomcat? 如何验证特定文本下的文本 <DIV> 使用Selenium WebDriver(java)和Chrome浏览器标记? - How can I verify presence of text under a specific <DIV> tag using Selenium WebDriver (java) and Chrome? 我可以使用Selenium在浏览器堆栈中验证下载的文件吗 - Can i verify downloaded file in browser stack using selenium 如何使用类似于 BootRepackage 中的 customConfiguration 的 BootJar 排除 jars? - How can I exclude the jars using BootJar similar to customConfiguration in BootRepackage? 在向下导航对象时,如何递归验证空值? - How can I recursively verify for nulls while navigating down an object? 如何使用ant构建JavaME jar? 在JavaSE中运行时可以做到吗? - How do I build the JavaME jars with ant? and can i do it while running in javaSE? 如何将使用 testng 的放心测试更改为 cucumber? - How can I change my restassured test using testng into cucumber? 如何在快速框中搜索并查看Java中含硒测试的黄瓜结果页 - How can I search from quick box and view the result page in Java for cucumber with selenium testing 如何使用 Cucumber 和 Extent Reports 设置步骤状态? - How can I set steps status using Cucumber and Extent Reports? 如何使用Cucumber从div检索文本? - How Can I Retrieve Text from a div using Cucumber?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM