cucumber.runtime.CucumberException: 实例化失败 class
cucumber.runtime.CucumberException: Failed to instantiate class
这是我的黄瓜基地class。
@CucumberOptions(plugin = "json:target/cucumber-report.json", features="SFDC_Automation/features/featurefilename.feature", glue="classpath:tests.SFDC.StepDef")
public class InsideSaleTest extends AbstractTestNGCucumberTests {
}
并且在 运行ning 这个基础 class 之后,我看到以下异常。
cucumber.runtime.CucumberException: Failed to instantiate class tests.SFDC.InsideSale.InsideSaleEndToEnd
============================================= ==
InsideSaleEndToEndTesting
总测试 运行:1,失败:1,跳过:0
============================================= ==
有人可以帮我解决这个问题吗?非常感谢!
我假设您的 class 文件 InsideSaleEndToEndTesting 包含 JUnit 注释和胶水 codes/functions。因此,当 Cucumber 尝试创建 InsideSaleEndToEndTesting 实例时,它抛出了这些异常。
这是我的黄瓜基地class。
@CucumberOptions(plugin = "json:target/cucumber-report.json", features="SFDC_Automation/features/featurefilename.feature", glue="classpath:tests.SFDC.StepDef") public class InsideSaleTest extends AbstractTestNGCucumberTests { }
并且在 运行ning 这个基础 class 之后,我看到以下异常。
cucumber.runtime.CucumberException: Failed to instantiate class tests.SFDC.InsideSale.InsideSaleEndToEnd
============================================= ==
InsideSaleEndToEndTesting
总测试 运行:1,失败:1,跳过:0
============================================= ==
有人可以帮我解决这个问题吗?非常感谢!
我假设您的 class 文件 InsideSaleEndToEndTesting 包含 JUnit 注释和胶水 codes/functions。因此,当 Cucumber 尝试创建 InsideSaleEndToEndTesting 实例时,它抛出了这些异常。