I am trying to run a test case via automation testing (sahi) , so I am running the command for it repeatedly after 1 hour (via crontab).
What I want is that is there any solution that whenever my test case fails i should receive the email otherwise not.. Right now I am reciving mail whether it passes or fails.
In short, can i send mail to a person depending upon the output i get in terminal.
I want to send mail when output will be:
1 scenario (1 failed)
4 steps (3 skipped, 1 failed)
0m2.476s
Thanks.
How do you can detect that the test is failing? If command is using the process exit status you could have something like:
If you want to keep the output: