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

Summary
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
- Changes to Coded UI Test in Visual Studio 2019
- Troubleshooting launch issues with xaml based apps using Coded UI Test
- Coded UI Test Extensibility V2
- Coded UI testing support for Silverlight using Visual Studio 2013
- Test controllers are not visible or marked offline in MTM when multiple versions of MTM are installed