问题描述
这是我的黄瓜基础班.
@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.
================================================
===============================================
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:无法实例化类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!