Coded UI Tests : WPF Utilities

added by jmix90
1/17/2012 8:36:37 AM

2 Kicks, 244 Views

I played a lot with Coded UI Tests API on WPF applications these last weeks. It turned out that this is a really powerful framework available to use but that we need to write a lot of code ourselves even for simple things. You may already know the coded ui test utilities of Gautam Goenka available on his blog. On this blog post, I want to introduce a set of complementary helper methods that you can use in your project. The links to the binaries/sources are at the end of the post.


1 comments

dpeterson
1/17/2012 8:38:20 AM
Those will be very handy, thanks for sharing. The TryInvoke method seems particularly handy. I feel it's always good to ensure that your application behavior isn't dictated by what controls are visible/enabled. It's easy to make mistakes and you don't want the user to be able to do something you don't want them to do just because the button is enabled, for instance.