Ask a Question

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

Super Contributor

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);

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.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

I am sad. I am going to cry. 🙂

Showing results for 
Search instead for 
Did you mean: