Detecting OS & IE Version in (C#) Coded UI Tests

Using ProcessStartInfo and ApplicationUnderTest.Launch(ProcessStartInfo startInfo) you can launch a process under another user, but this will not work for Coded UI Tests in IE because you cannot access the DOM inside IE. Instead you can use the approach described there: http://blogs.msdn.com/b/siddharthapandey/archive/2009/12/13/testing-webpages-that-uses-windows-authentication-for-different-credentials.aspx As mentioned the login dialog is different depending on Windows version. There might also…


Debug CSS and layout problems using 3D view in Firefox

Differen browsers have different debugging strengths and capabilities. E.g. IE has great UI Responsiveness analyzer http://msdn.microsoft.com/en-us/library/ie/dn255009.aspx: Chrome has an excellent debugging plugin for AngularJS called Batarang https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk: Firefox has a well hidden 3D view for displaying the composition of your UI https://developer.mozilla.org/en-US/docs/Tools/3D_View. It is not available by default. You have to enable it by: Presse…


Fixing: Error in Release Management when using "MTM Automated Tests Manager" – build name restriction

If you want to run an automated test as part of your deployment “MTM Automated Tests Manager” tool as described here: http://nakedalm.com/execute-tests-release-management-visual-studio-2013/ Make sure that your build name does NOT contain any spaces. Due to a bug/limitation in the powershell script used by Release Management this will fail if your build name contains any spaces.

3

Debugging and diagnosing MS Fakes

Once in a while the automatic Fakes generation might fail. Below is a few hint on how to start debugging. Make sure that build action of the .Fakes file is set to Fakes: This kicks off the actual generation of the fakes assemblies when you build the project. To get detailed debugging information you can set…