m_essaid
11 years agoValued Contributor
Result of a test item
Hello,
I have a test made by 5 tests items.
Each of them could potentialy succeed or fail.
In an usual test, they never fail, the test send a mail to explain the result of the whole test. But i need to report in a third mail if one of the 5 tests items has failed.
So, my question is : how do i catch a test fail and execute at this moment a code (which will be a mail to explain where the test has failed) ?
Thanks for any advise,
Mehdi
I have a test made by 5 tests items.
Each of them could potentialy succeed or fail.
In an usual test, they never fail, the test send a mail to explain the result of the whole test. But i need to report in a third mail if one of the 5 tests items has failed.
So, my question is : how do i catch a test fail and execute at this moment a code (which will be a mail to explain where the test has failed) ?
Thanks for any advise,
Mehdi
- Hi Srini,
You can play with the OnTestStop and OnLogError events. Please refer to the following articles for more information: