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…


Conditional backup of SQL Database in Release Management

The default “Backup SQL Database” in RM uses sqlcmd.exe (http://msdn.microsoft.com/en-us/library/ms162773.aspx) and the following arguments: Which works fine if there is a DB to backup. Sometimes you want RM to be able to do the deployment of a clean machine with no database created, This will cause the Backup SQL Database to fail during the first…

1

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…