Inotdead
13 years agoNew Contributor
.NET Assembly events
Hello, I have a simple .NET assembly which contains an event which looks like this: public delegate void myEventHandler(string s); public static event myEventHandler myEvent; I...
- 13 years ago
Anton,
TestComplete can handle events of external ActiveX objects (COM servers). As for managed events, you cannot create script handlers for them, unless the tested application is a COM server.
A possible workaround is to create a C# handler for the event in your assembly and then, from within this handler, call the needed TestComplete script or test. If you are using a Connected Application, you can run a TestComplete test by using the Connect.RunTest method. If you don't use a Connected Application, you can connect to and work with TestComplete via COM.