Unable to retry entire feature file using retry flag in default.srprofile
AnsweredHi,
For retry in specflow we will enable the retry flag in default.srprofile so that it will rerun the scenario once it fails. But I have requirement to rerun the entire feature file when one scenario failed in feature file
Is there any way by overriding the existing the logic ??
-
Official comment
Hello!
Interesting requirement you have there. Why do you need to retry the whole Feature file?
The purpose of the
Feature
keyword is to provide a high-level description of a software feature, and to group related scenarios.
https://cucumber.io/docs/gherkin/reference/#FeatureSo the Feature is just a collection of tests. Why do you want to retry a not failed test? However in your case you could try to set the retryFor to All.
Kind regards,
Balázs
Please sign in to leave a comment.
Comments
1 comment