How to reach nested controls using Coded UI Test Builder

by Donovan Brown 19. January 2011 22:26

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 determine if it was bold or not.  After further investigation I realized the style I was looking for was not on the link but actually on the span inside the link.  However, whenever I used the cross-hair icon I was only able to select the hyperlink and never the span.  Then I noticed that there is a button in the Add Assertions dialog on the far right that allows you to move to other controls relative to the one currently selected.  Once I clicked the down arrow on the button I was moved to the nested span inside the hyperlink.

 

Tags: , ,

Work

I can't get rid of an old Project Template

by Donovan Brown 19. January 2011 04:08

Problem

I was trying to learn how to create a custom Project Template and now I can't get rid of it!

Solution

Make sure all the .zip files for your Project Template have been deleted and run

devenv /setup

Explanation

Running devenv /setup will force Visual Studio to reset all the Project Templates and also get rid of old ones.

Tags: ,

Work

I can't get Code Coverage to work on IIS7

by Donovan Brown 14. January 2011 00:53

Problem:

I can’t get code coverage results on a 64 bit Windows 2008 Server running IIS 7.  I only get the following message:

“Empty results generated: none of the instrumented binary was used. Look at test run details for any instrumentation problems.”

Resolution:

If you are getting the following entry in the event log:

“Unable to connect to monitor.  Make sure the monitor is started and in the correct mode.”

Update the properties of the AppPool running your app.  Right click on the AppPool running your application under test and select Advanced Settings.  Change the value of Enable 32-Bit Applications to True.

 

Tags: , ,

Work

About the author

My name is Donovan Brown and I am a process consultant for Imaginet with a background in application development.  I also run one of the Nation’s fastest growing online registration sites for motorsports events DLBRacing.com.  When I am not writing software I race cars for fun.  DLBRacing.com has given me the opportunity to combine my two passions writing software and racing cars.

AdSense

Month List

AdSense