尝试通过Maven->运行方式-> Maven测试来运行存在于不同项目下的TestNG.xml。是否正确或是否有其他方法可以进行这种类型的配置。
下面是错误日志
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project MavenSetup: There are test failures.
[ERROR] Cannot find class in classpath: keywardDrivenFramework.ExecuteTestCase
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR] Cannot find class in classpath: keywardDrivenFramework.ExecuteTestCase
项目结构
项目1-Maven的设置和依赖项
项目2-testng.xml
(我需要运行)