Cannot run Coded UI tests as different user on Windows 8.1
问题 We have a Coded UI test suite which depends on running our tests as different users. We accomplish this by using the following ApplicationUnderTest.Launch overload: ApplicationUnderTest.Launch(browserLocation, null, url, username, GetSecurePassword(password), domain); We use Visual Studio 2013 premium (update 3) and had no problem when running on Windows 7 and Windows 2012 R2. Now we have migrated to Windows 8.1 and we are no longer able to run as a different user. We get the following