Maven项目在进口后不起作用
我已经导入了Maven项目(重新介绍API),并进行了Maven->更新项目。但是,当我运行此操作时,我看不到运行中的测试选项。另外,由于代码级别,依赖关系不会更新。如图所示,给我发了警告。 #NOTE:同一项目以前工作正常,因为我的笔记本电脑被损坏了,之后我重新安装了所有内容。
I have imported the Maven project(RestAssured API) and did the Maven--> Update project. But when I run this I don't see the TestNG option in Run as. Also, Dependency is not updated because of code level. throwing me a warning as shown in the picture.
#Note: The same project was working fine before because my laptop is corrupted I reinstalled everything after that it's not working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您可以尝试检查构建路径并检查JRE是否正确配置。
并尝试直接运行Java Main类,而不是直接运行基本类别类,而不是运行整个项目。
Maybe can you try checking the Build Path and check the Jre is Configured properly or not.
And try Running the Java main class i.e Run the BasicFirst class directly instead of running the whole project.
在Eclipse中,转到
Project>属性>图书馆> [添加库]> testng>完成。
这可能会解决您的问题。
In Eclipse go to
Project > Properties > Libraries > [Add Library] > TestNG > Finish.
This might fix your problem.