启动 TestNG 类

发布于 2024-10-05 21:00:13 字数 163 浏览 0 评论 0原文

我在启动 TestNG 课程时遇到问题。 当我点击 runqdebug 时,底部屏幕显示“正在启动‘TestNme’..” 但它一直卡在 57% 处,我唯一的选择就是关闭 Eclipse。 仅当从特定项目启动测试时才会出现此问题。 测试从一个项目运行而不是从另一个项目运行的可能原因是什么?

谢谢

Im having trouble with lanching a TestNG class.
when i hit runqdebug it says o the bottom screen "Launcing 'TestNme'.."
but it keep gettingstuck 57% and my only option is to shut down eclipse.
Thia problem only accurs when launhing the tests from a specific project.
What could be the possible reason for te test to run from one project but not the other?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

原谅我要高飞 2024-10-12 21:00:13

您项目的构建类路径上是否已有 testng.jar 文件?这通常就是这个问题的原因。

TestNG Eclipse 插件有自己的插件,因此您可以删除已有的插件,它应该可以解决您的问题。

我会尝试改进插件以避免这个问题,但我并不 100% 肯定这是可能的。

Do you already have a testng.jar file on the build classpath of your project? That's usually the reason for this problem.

The TestNG Eclipse plug-in has its own, so you can remove the one you have and it should fix your problem.

I'll try to improve the plug-in to avoid this problem but I'm not 100% positive it's possible.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文