ReSharper Code Cleanup does not fix “Convert to Lambda Expression” issues. 09 July 2012 Donovan-Brown Work (0) Problem: ReSharper Code Cleanup does not fix “Convert to Lambda Expression” issues. Solution: Use regular expression find and replace to correct. Explanation: I am a recent ReSharper convert so my code does not match the format suggested by ReSharper. The Code Cleanup feature ... [More]
Registering Workgroup Test Agent with Test Controller in Domain 22 June 2012 Donovan-Brown Work (0) Problem: I have a test controller in a domain and a test agent in a workgroup and I can’t register the agent with the controller. Solution: Create shadow accounts on the agent machine and on the controller machine that are in the Administrators Group. Shadow accounts are accounts with... [More]
Custom Action causes install to fail 26 December 2011 Donovan-Brown Work (0) Normal 0 false false false EN-US X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"... [More]
How to mole System.dll 15 December 2011 Donovan-Brown Work (0) Problem: I get “no suitable method found to override” errors when I mole system.dll. Solution: Modify the System.moles file in your project and exclude everything except the types you are trying to mole. Explanation: I was trying to mole the SerialPort class in System.IO.Ports. Afte... [More]
What to do when my CUIT thows a PlaybackFailureException 09 October 2011 Donovan-Brown Work (0) Updated (Oct 11, 2011) Problem: I have a textbox that has a maximum length of five characters. I want to record a Data Driven CUIT to test that you cannot type in more than five characters. However, when I attempt to set the textbox to a six character value the CUIT throws a PlaybackFailureE... [More]
How to fail a TFS2010 Build from workflow 04 October 2011 Donovan-Brown Work (0) Problem: I have tried setting the BuildDetail.CompilationStatus and BuildDetail.Status but my build keeps Partially Succeeding. Solution: Use the SetBuildProperties activity to set the status to fail.
Build workspace folder already mapped. 03 October 2011 Donovan-Brown Work (0) Problem: My Team Build keeps failing with an error that my source folder is already mapped in another workspace. The path C:\Builds\1\Demo\Reports\Sources is already mapped in workspace 7_1_WIN-GS9GMUJITS8. Solution: Use the tf.exe tool to delete the workspace holding on to that location. Explan... [More]
How to enable code coverage in my Team Build 03 October 2011 Donovan-Brown Work (0) Problem: I am not getting code coverage results in my build. Solution: Ensure you have a test settings file selected in your build definition. Explanation: On the process tab of your build definition expand the Automated Testing section under Basic and make sure the TestSettings File is pointin... [More]
CUIT Demo of Feature Pack 2 Coded UI Test Editor 01 October 2011 Donovan-Brown Work (0) Problem: I have a Coded UI Test that is failing on Playback. Solution: Use the Coded UI Test Editor in Feature Pack 2 to adjust the UI Map and add actions to your test. Explanation: I felt a write up would be too hard to follow so I recorded a video instead which you can watch below. In this ... [More]
I don't want Entity Framework code counted in code coverage. 29 September 2011 Donovan-Brown Work (0) Problem: The code generated by the Entity Framework is distorting my code coverage numbers. Solution: Add a Code Generation Item and add the [DebuggerNonUserCode] attribute to the generated classes. Explanation: As I described in a previous post here the [DebuggerNonUserCode] hides the code ... [More]