jjzjj

CucumberException

全部标签

java - cucumber.runtime.CucumberException : Arity mismatch: Step Definition in selenium with Java 的错误是什么

我已经编写了一个功能文件来测试创建元素按钮。但它会生成一条错误消息cucumber.runtime.CucumberException:Aritymismatch:StepDefinition.我不知道为什么会这样,因为我是自动化测试的新手。下面是我写的代码。@When("^createelements$")publicvoidcreate_elements_for_attributes(WebElementelementToClick)throwsThrowable{driver.findElement(By.id("newElement")).click();}我收到的错误如下。c

java - 线程 "main"cucumber.runtime.CucumberException : No backends were found 中的异常

我正在使用Cucumber开发我的Selenium-JVM框架,但在运行我的第一个功能时出现以下错误。请帮忙。我是如何启动该功能的-右键点击特征文件选择运行方式->cucumber功能立即异常-Exceptioninthread"main"cucumber.runtime.CucumberException:Nobackendswerefound.PleasemakesureyouhaveabackendmoduleonyourCLASSPATH.atcucumber.runtime.Runtime.(Runtime.java:78)atcucumber.runtime.Runtime