Forum Discussion
jyothinb
11 years agoContributor
Hi Robert, Sometime I am seeing a message 'Recursive call to on log error event" and testcomplete stops running the scripts until manually clicks on 'YES'.
Please see the below screencast for the complete message
http://screencast.com/t/1fISJo19VM
Please find the Onlog error event code below
function GeneralEvents_OnLogError(Sender, LogParams)
{
Log["Message"](Project["Variables"]["ErrorCounter"]);
Project["Variables"]["ErrorCounter"]++;
if (Project["Variables"]["ErrorCounter"] >= 8)
{
Log["Message"](Project["Variables"]["ErrorCounter"]);
KeywordTests["Restart_Smoke_Test"]["Run"]();
Project["Variables"]["ErrorCounter"] = 0;
Log["Message"](Project["Variables"]["ErrorCounter"]);
Runner["Stop"](true);
}
}
Please see the below screencast for the complete message
http://screencast.com/t/1fISJo19VM
Please find the Onlog error event code below
function GeneralEvents_OnLogError(Sender, LogParams)
{
Log["Message"](Project["Variables"]["ErrorCounter"]);
Project["Variables"]["ErrorCounter"]++;
if (Project["Variables"]["ErrorCounter"] >= 8)
{
Log["Message"](Project["Variables"]["ErrorCounter"]);
KeywordTests["Restart_Smoke_Test"]["Run"]();
Project["Variables"]["ErrorCounter"] = 0;
Log["Message"](Project["Variables"]["ErrorCounter"]);
Runner["Stop"](true);
}
}
Related Content
- 8 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago