What exactly do you have stored in you txt file?
I don't know what technology you use, but I can imagine that if you have every scenario tagged with unique tag and if you're able to store failed scenarios tags instead of scenario titles, than you can make some after suite hook function or method where you can iterate trough you txt file and for each failed scenario execute windows command containing actual scenario tag.
I hope it is understandable :-)
Dne neděle, 1. června 2014 10:22:39 UTC+2 sai krishna napsal(a):Hi Folks,I was able to create a rerun.txt which contains all failed features. Now how do i execute this immediatly without making any changes to my cucumber.yml file or by specifying the rerun.txt on command line .For example :Once all my tests run and if there is a failure i would want my script to rerun the failed scenarios stored .Can someone pls help me on this ?
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I use behat/mink/selenium.
And yes...you're right about the infinite run...I knew about that but forgot to write it. But this issue can be solved by some incrementation of some variable and condition. But I don't think this problem can be solved by some standard approach. When scenarios fail they fail...that's the nature of running tests. But I have encountered issue that sometimes tests fail from some random reason or timeout and during second run everything is OK so I can imagine Sai's problem. Especially when tests are executed during some night building process.
Do you have any idea Aslak?
I am not actually dealing with this issue on my environment but I am pretty sure that this will also happen to me in the future and I will need to deal with it. So I'll welcome any "more standard" ideas or solutions.
On Mon, Jun 2, 2014 at 7:17 AM, Tomáš Knězek <tomas....@gmail.com> wrote:
I use behat/mink/selenium.
And yes...you're right about the infinite run...I knew about that but forgot to write it. But this issue can be solved by some incrementation of some variable and condition. But I don't think this problem can be solved by some standard approach. When scenarios fail they fail...that's the nature of running tests. But I have encountered issue that sometimes tests fail from some random reason or timeout and during second run everything is OK so I can imagine Sai's problem. Especially when tests are executed during some night building process.
Do you have any idea Aslak?
I am not actually dealing with this issue on my environment but I am pretty sure that this will also happen to me in the future and I will need to deal with it. So I'll welcome any "more standard" ideas or solutions.
Cucumber(-Ruby) can parse the contents of rerun.txt:cucumber @rerun.txt