如果我必须运行大约 10 个功能文件并具有不同的标签,如何从 maven 命令行运行 cucumber 项目

How to run cucumber project from maven command line if i have to run about 10 feature files and have different Tags

提问人:Savitha B.S 提问时间:11/7/2023 最后编辑:ShawnSavitha B.S 更新时间:11/8/2023 访问量:23

问:

从 maven 命令提示符运行多个功能文件 每个功能文件都有一个唯一的标记

如何使用 Runner 类在 maven 命令提示符下运行所有功能文件。

mvn clean - BUILD SUCCESS message comes. 
mvn -PRegressionCheck -Drunner=<RunnerClassFileName>.java clean verify
gives the below error: 
 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project automation: Compilation failure: Compilation failure:
Also says, package automation.xxx does not exist. 

如果我提到一个标签并从 eclipse 运行,则功能文件会成功运行,但我需要从命令提示符运行所有功能文件。请帮忙

maven selenium-webdriver cucumber

评论


答: 暂无答案