Forum Discussion
Dmitry_Nikolaev
15 years agoStaff
Hi Mateen,
This function checks the execution result for each test item (whether there were errors or not).
function GeneralEvents_OnStopTest(Sender)
{
if (Log.ErrCount == 0)
CreateLog(Project.TestItems.Current.Name, false);
else
CreateLog(Project.TestItems.Current.Name, true);
}
You need to modify the CreateLog function definition in the following way:
function CreateLog(testName, isTestFailed)
{
if (true == isTestFailed) {
...
}
...
}
Related Content
Recent Discussions
- 3 days agovladd1