Forum Discussion

vthomeschoolmom's avatar
vthomeschoolmom
Super Contributor
6 years ago
Solved

What is the event sender parameter and what does one do with it?

All events have this param passed in. What is it and what is it for? Thanks.

 

function GeneralEvents_OnStartTest(Sender)
{
var testLogAttributes = Log.CreateNewAttributes();
testLogAttributes.Bold = true;

Log.Message("LLLLAAAAA", "", pmNormal, testLogAttributes);
}

  • There is an ActiveX component in TestComplete that generates the events.  The "Sender" is that component... basically, it needs to be there, but you don't have anything you can really, usefully, do with it that I've found.

2 Replies

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    There is an ActiveX component in TestComplete that generates the events.  The "Sender" is that component... basically, it needs to be there, but you don't have anything you can really, usefully, do with it that I've found.