Welcome to MSDN Blogs Sign in | Join | Help
Creating UI automation without writing a single line of code or script!

Check out this totally kickass feature in VSTS 2010 aka Dev10 – the Coded UI Test (CUIT). This is a brand new test type in VSTT that lets users do functional UI automation. As GUI testers will already know, UI automation is one of the most tedious to write and get all the timing right. What CUIT will do for you is to automatically generate C# or VB.NET code from a series of recorded actions that you did while testing your app. Adding validations is a breeze – just point and click. Point to the object you want, pick the property you want to validate and type in the expected value – this validation gets automatically generated.

For more on CUIT, check out this cool video on Channel 9 – this shows an end to end demo of how to create and run a CUIT. Let me know what you think!

Posted: Wednesday, May 06, 2009 1:33 PM by anutthara

Comments

Gadigeppa said:

Dear Anu,

I am using VSTS 2008 in our project, I have to write script in c# to automate GUI testing. can you please helpme in scripting by giving valuble suggestions how to go ahead..?

PL:customer expecting to use VSTS-2008.

Regards,

Gadigeppa

# May 8, 2009 1:59 AM

anutthara said:

Hi Gadigeppa - the CUI test type I mention in the blog is available only in VSTS 2010, I am afraid.

But for VSTS 2008, you can still use the unit test type to write your UI automation tests using other libraries and run those in VS. More info on 2008 can be found in msdn: http://www.microsoft.com/visualstudio/en-us/default.mspx

# May 8, 2009 10:43 AM

Gadigeppa said:

Hi Anutthara,

I am writing automation script for entire system, since I have to use GUI for testing I thought UI automation will be the good option.

     If you have an idea how to use and which all the librries to use for GUI system testing[like accuss contorls of window,child window,buttons,menus,list box......etc] please let me  know.

Regards,

Gadigeppa

# May 11, 2009 5:11 AM

Gadigeppa said:

Hi Anutthara,

I am automation test script for system testing. since I need to test GUI, if you have reference material,or sample scripting methods, please share so it will be helpful for me to quickly start scripting.

I found UI-AUtomation API is good for GUI automation, can you please chk is this the feaseable solution to go for GUI automation testing.

Thanks in adavance.

Regards,

Gadigeppa.

# May 11, 2009 8:02 AM

anutthara said:

Gadigeppa -

I'd suggest you read the basics of UI automation on some of the well know testing sites (like stickyminds or Dr. Dobb's) to get a good starting point.

By UI automation API, I assume you meant the UIA fx from MSFT: http://msdn.microsoft.com/en-us/library/ms747327.aspx

This is indeed good to use for UI automation. However, you would need to use this to build your own libraries and then use the libraries in turn to drive your app. More info can be found at the same link.

Hope that helps.

# May 12, 2009 3:28 AM

Gadigeppa said:

Hi Anutthara,

I gone through the link you have told, if you have find any scripting example or if you have scripting using UI automation for GUI  testing  can you please share to me.

Regards,

Gadigeppa

# May 21, 2009 2:30 AM

anutthara said:

Let's follow this up offline. You can mail me at anutthar at microsoft dot com

# May 21, 2009 10:08 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker