cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

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

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
[Community Expert Group]
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
Extensions available
2 REPLIES 2
Community Hero

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

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
[Community Expert Group]
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
Extensions available
Highlighted
Super Contributor

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

I am sad. I am going to cry. Smiley Happy

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors