【发布时间】:2020-08-03 02:31:27
【问题描述】:
我试图从 Cucumber 功能文件中执行基本测试,但发现错误:
Exception in thread "main" java.lang.NoClassDefFoundError: io/cucumber/plugin/SummaryPrinter
功能文件:
Feature: Login Action
Scenario: Successful Login with Valid Credentials
Given User is on Home Page
When User Navigate to LogIn Page
And User enters UserName and Password
Then Message displayed Login Successfully
Scenario: Successful LogOut
When User LogOut from the Application
Then Message displayed LogOut Successfully
测试运行文件:
package test;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "Feature"
,glue={"stepdefinition"}
)
public class TestRunner {
}
我正在使用 eclipse 并通过 eclipse 市场安装了 cucumber 插件。 谁能帮我解决这个问题?
【问题讨论】:
标签: selenium-webdriver installation cucumber bdd