automated-testsui-automationui-testingwhite-framework

UI Automation White framework "NonComVisibleBaseClass was detected" exception


I am testing an application which loads a powerpoint (.ppt or .pptx) file insert it. Application gives same look an feel like powerpoint with some extra setting when the file is loaded inside the application. When I try to automate the application, I click a button to load the powerpoint file into the application. After the loading process white framework fails to continue playback.

When I restart the same test again I got "NonComVisibleBaseClass was detected" exception.

I can only continue my testing after restarting the entire application. Does anyone face this kind of issue? your answers will really helpful to continue my testing.


Solution

  • It's known issue.
    http://social.msdn.microsoft.com/Forums/en-US/27c3bae8-41fe-4db4-8022-e27d333f714e/noncomvisiblebaseclass-was-detected?forum=Vsexpressvb

    1. Navigate to Debug->Exceptions...
    2. Expand "Managed Debugging Assistants"
    3. Uncheck the NonComVisibleBaseClass Thrown option.
    4. Click [Ok]