0
我试图运行黄瓜测试,但我收到以下异常。我用这些器皿里的版本运行Cucumber Junit测试时出错:Intializationerror
这是我的项目:
这是的TestRunner类代码:
package cucumberTest;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "Feature"
,glue={"stepDefinition"}
)
public class TestRunner {
}
在logIn.feature file:
功能:登录操作测试
情景:成功登录使用有效凭据 给定用户在主页上 当用户浏览到登录页面 和用户输入用户名和密码 然后消息显示登录成功
方案:成功的注销 当从应用 用户退出然后消息显示注销成功