这是我的黄瓜基础班.
@CucumberOptions(plugin = "json:target/cucumber-report.json", features="SFDC_Automation/features/featurefilename.feature", glue="classpath:tests.SFDC.StepDef") public class InsideSaleTest extends AbstractTestNGCucumberTests { }运行此基类后,我看到以下异常.
And after running this base class, I am seeing following exception.
cucumber.runtime.CucumberException:无法实例化类测试.SFDC.InsideSale.InsideSaleEndToEnd
cucumber.runtime.CucumberException: Failed to instantiate class tests.SFDC.InsideSale.InsideSaleEndToEnd
================================================
===============================================
InsideSaleEndToEndTesting 测试总数:1,失败:1,跳过:0
InsideSaleEndToEndTesting Total tests run: 1, Failures: 1, Skips: 0
================================================
===============================================
可以帮我解决这个问题吗?多谢!
Can some please help me resolve this issue? thanks a ton!
推荐答案我假设您的类文件InsideSaleEndToEndTesting包含JUnit的批注以及粘合代码/功能.因此,当黄瓜试图创建InsideSaleEndToEndTesting实例时,它抛出了这些异常.
I assume that your class file InsideSaleEndToEndTesting was containing annotations of JUnit and also glue codes/functions. Hence when cucumber tried to create a instance of InsideSaleEndToEndTesting, it had thrown these exceptions.
更多推荐
cuming.runtime.CucumberException:无法实例化类
发布评论