Coded UI and Windows

I have a need to automate a Wix generated Windows application (not an App, that evidently doesn’t work).

To at least record where I am.. apart from the click to start the Coded UI test. So this was all generated (which yes we know is not a good thing, but it gives us the control names etc) , with some minor changes:

Desist01

Desist02

 

Desist03

Desist04

 

            ApplicationUnderTest.Launch("c:\\windows\\notepad.exe");

So just to get NotePad up, get some text in, and save it, is easy enough (in a non-maintainable way). But to test it, or this one at least, can we eg re-open the file, kind a key stroke to do ctrl-A, and expect to find the Kubla Khan entry verbatim, proving… that Notepad works 😉 .

Desist05

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s