cuming.runtime.CucumberException:无法实例化类

编程入门 行业动态 更新时间:2024-10-21 06:05:26
本文介绍了cuming.runtime.CucumberException:无法实例化类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这是我的黄瓜基础班.

@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:无法实例化类

本文发布于:2023-11-10 02:26:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1574090.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:实例   cuming   runtime   CucumberException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!