Microsoft

Coded UI Test: Why does application close after each test in Visual Studio 2012?

Nov 8, 2012Aditya_msft
Coded UI Test: Why does application close after each test in Visual Studio 2012?
SummaryAI, from the source post

This post addresses a bug in Visual Studio 2012 related to the `CloseOnPlaybackCleanup` flag in Coded UI Tests. Previously, the flag was not honored, causing applications to remain open after test completion. In VS 2012, the fix ensures the flag is respected, meaning applications will close by default after each test. To reuse an application instance across multiple tests, `CloseOnPlaybackCleanup` must be set to `false` for the `ApplicationUnderTest` or `BrowserWindow` object.

More from the Coded UI Test Deprecation and Alternatives trail