Forum Discussion

GAutomation's avatar
GAutomation
Frequent Contributor
5 years ago
Solved

How to log the results if Waitaliaschild method returns object does not have a child

We are having a separate function to log the results in a different location in mht file format. Converted all our project to use name mapping.   Some times it fails at w-=aliases.legaclt.wndLS...
  • cunderw's avatar
    5 years ago

    This will throw an exception, so unless you have logs being exported in the GeneralEvents_OnStopTest event handler it will never get called.

     

    You could try to catch the exception as well so the test engine isn't stopped.

     

    IMO though this should never be a case you run into while running tests. All tests and scripts should be reviewed by someone before being put in a regression or formally running test suite.