Forum Discussion
kahlerb
14 years agoNew Contributor
Hi Margaret, thank you for your help.
So i got tests for an app, where sometimes a window is (correctly) destroyed during method execution and sometimes not. I've written the OnLogError Event Handler to recognise this.
My solution was now not to check the "LogParams.Str".
Actually I check if the name of the object under test is part of "LogParams.AdditionalText" (with the InStr()-Function)
So that works really good, and the test cases recognises properly where a destroyed window is correct behavior and where not.
So i got tests for an app, where sometimes a window is (correctly) destroyed during method execution and sometimes not. I've written the OnLogError Event Handler to recognise this.
My solution was now not to check the "LogParams.Str".
Actually I check if the name of the object under test is part of "LogParams.AdditionalText" (with the InStr()-Function)
So that works really good, and the test cases recognises properly where a destroyed window is correct behavior and where not.