I use Katalon with BDD and I’m trying to figure out how to retry failed scenario :
As described in BDD feature file documentation, I have a feature file contaning several scenarios (for instance here : 3 scenario)
As described in Create BDD test case in documentation, I have created a test case using a Cucumber keyword to run this feature file (for instance here : CucumberKW.runFeatureFile('Include/features/myFeature.feature')
My issue is : if only 1 of the 3 scenario in my feature file fails, the retry rerun the 3 scenarios and not only the failed one. What can I do to retry only failed scenario ?
I guess I could create 1 TC for each scenario, but I have more than 250 scenarios, and it would be a shame to have to duplicate them
When I make a google search with key “Cucumber retry only failed scenario”, I found that there are several blogs that tell “you can do it using commandline Cucumber as …” or “you want to do it in Testng as …”. However there is no way available in Katalon Studio.
Yes, you can make a feature request.
But for now you should take an alternative — you already know how to.