小编Lew*_*wis的帖子

如何使用Maven POM文件运行testNG测试

我有一个Selenium项目,使用Maven和TestNG.

我尝试了几种不同的方法让我的测试运行Maven命令(我正在使用确定的fire插件).当我运行Maven时,测试不会运行.没有错误.

当我使用mvn测试时,有没有人有一个很好的例子或教程可以让我的测试运行?

提前致谢.

这是输出:

C:\**************>mvn test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Unnamed - **************:**************:jar:1.0
[INFO]    task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory C:\**************\src\test\res …
Run Code Online (Sandbox Code Playgroud)

selenium maven

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

maven ×1

selenium ×1