seanMRoss
13 years agoContributor
How are events called in testcomplete?
Hi Folks
For about 2 weeks I have been trying to write events catch UnexpectedWindows in testcomplete using JScript.
I cannot figure how to call the event, What do I define Sender as?
function MainFunction()
{
CreateSomething;
//code where unexpected window is triggered
GeneralEvents_OnUnexpectedWindow(Sender, Window, LogParams)
}
function GeneralEvents_OnUnexpectedWindow(Sender, Window, LogParams)
{
//Send to logs
}
For about 2 weeks I have been trying to write events catch UnexpectedWindows in testcomplete using JScript.
I cannot figure how to call the event, What do I define Sender as?
function MainFunction()
{
CreateSomething;
//code where unexpected window is triggered
GeneralEvents_OnUnexpectedWindow(Sender, Window, LogParams)
}
function GeneralEvents_OnUnexpectedWindow(Sender, Window, LogParams)
{
//Send to logs
}