cancel
Showing results for 
Search instead for 
Did you mean: 

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

SOLVED
Highlighted
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
Highlighted
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
[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

View solution in original post

2 REPLIES 2
Highlighted
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
[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

View solution in original post

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. 🙂

New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
Let's start July with new challenges!

Create a script to pass custom command-line arguments as a test parameter for the TechCorner tag!

Will you dare to take the challenge?


Top Kudoed Authors