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]
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]
Having trouble testing my WPF app with Coded UI Test 17 September 2011 Donovan-Brown Work (0) Problem: I cannot find my WPF TextBlock using the Coded UI test because the value is data bound and changes. Solution: Set the Name attribute on the controls of your View which sets the AutomationId. Explanation: Many WPF developers only place the Name attribute on items they intend to access f... [More]
How do I validate data in my database during a web test 25 August 2011 Donovan-Brown Work (0) Problem: The only way I can verify the success of my web test is to read a value from a database. Solution: Create a custom validation rule that can validate the value in the database. Code: using System; using System.ComponentModel; using System.Data.SqlClient; using Mic... [More]
How to change the display name of my Find Text validation rule 03 August 2011 Donovan-Brown Work (0) Problem I can’t easily tell what my Find Text validation rule is searching for in my Web Test. Solution Change the DisplayName value in the Web Test xml to something more meaningful. From Solution Explorer right click on the Web Test and select Open With… then select XML (Text) Ed... [More]
How to Xcopy deploy using TFS 2010/2012 01 August 2011 Donovan-Brown Work (0) Problem I need my VS2010/VS2012 build to perform an “Xcopy deployment” of my ASP.NET application to an existing virtual directory. Solution Customize the build template to use the CopyDirectory activity to copy the ASP.NET application to the virtual directory. Explanation One of the... [More]
I get an unresolved reference to the object [#aspnet_Permissions] 29 July 2011 Donovan-Brown Work (0) Normal 0 false false false EN-US X-NONE X-NONE Problem When I import a database that uses ASP.NET Providers I get an unresolve... [More]
sysobject warnings in my DBPro projects 29 July 2011 Donovan-Brown Work (0) Problem My DBPro project references sysobjects and is causing build warnings for example: SQL04151: Procedure: [dbo].[aspnet_AnyDataInTables] has an unresolved reference to object [dbo].[sysobjects]. Solution Add the following DB reference to your database project: C:\Program... [More]
How to debug a Visual Studio Extension 09 March 2011 Donovan-Brown Work (0) Problem I am writing a class library to extend Visual Studio but I can't figure out how to debug it. Solution Right click on the class library project in Solution Explorer and select properties. This will display the property pages for the selected project. Click on the Debug tab on t... [More]
How to reach nested controls using Coded UI Test Builder 19 January 2011 Donovan-Brown Work (0) Problem I have a span nested inside an anchor tag and I cannot reach it with CodedUI Test Builder. Solution Use the control navigation button in the Add Assertions dialog. Explanation While trying to check the attributes on a link in a web application I could never see the font style to... [More]