简体   繁体   English

重新运行多个失败的黄瓜功能

[英]Rerun multiple failed cucumber feature

I'am using Ruby, Cucumber and Watir for UI automation and pretty much new to it.I'm trying to rerun failed tests using cucumber. 我正在使用Ruby,Cucumber和Watir进行UI自动化,这是一个非常新的尝试,我正在尝试使用Cucumber重新运行失败的测试。

I'm creating rerun.txt with rerun formatter, which contains multiple failed feature files path. 我正在使用重新运行格式化程序创建rerun.txt ,其中包含多个失败的功能文件路径。 Eg. 例如。 below is rerun.txt content on failure : 下面是失败时的rerun.txt内容:

features/test_suites/Test1.feature:12
features/test_suites/homepage/Test2.feature:9:30

When I execute cucumber @rerun.txt , it executes only the first feature file with failed scenarios and does not execute other feature files mentioned in rerun.txt . 当我执行cucumber @rerun.txt ,它仅执行具有失败方案的第一个功能文件,而不执行rerun.txt提到的其他功能文件。

Can any one please help me rerunning all failed feature files? 谁能帮助我重新运行所有失败的功能文件?

After analysis , I found that the rerun content was not getting generated as expected for cucumber. 经过分析,我发现重新生成的内容未按预期的那样生成。 Each path for failed scenario of different feature file should be separated by single space. 不同功能文件失败情况的每个路径都应用单个空格分隔。

Issue resolved. 问题解决了。 Cheers!! 干杯!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM