Coded UI Test Automation : Functional Automation In VSTS2010

VSTS 2010 has the Coded Ui Feature that is going to be heavily impinging on the Website related Test automation project dependency on several of the highly costly tools such as QTP RFT et al in near future.
The Coded Ui feature shall be demonstrated hitherto because it has been successfully used by the team across location to automate around 1200 oddd Test Scenarios at a pretty brisk pace.
How to Initiate ?
The Test project is what we select for creating an automation project under the Test project Template using
the coding language as of our choice ranging from  C# to VB through VC++ depending on the resource expertise availability.

Now creation of a Test Project results in a specific folder hierarchy that intricacies will be dealt separately .
But the point of immediate concern will be the roadmap to the creation of the complete basic functional test Automation
which is nothing but a demo with some screenshots organised in a step by step manner so as to let a layman can  proceed with the Test Automation getting realised to a success. The same shall be addressed in my next couple of posts.

Coded UI Advantage ?
The very basic issue that my experience with QTP automation suggests is the dependency on the hierarchy that
guides the compelete object Recognitiion mechanism in the QTP. This is a very organised manner of recognising the
various objects according to their Control Ids along with the Object Hierarchy which we at a very basic level relate
something as 
Browser-> Page-> Object controls and bla bla bla....

This results in some of the constraints related to further changes in the application that might result in the future
object recognition of the same control with some added prefix controls. One issue that I came across in this context that I would definitely like to share across is the incorportaion of the frame within the page that results in further object recognition of the same very control having the erstwhile control id in the hierarchial order of

Browser-> Page-> Frame.  
This is where I guess the QTP object recognition has faltered to address to the business needs.
And this simple loophole causes tremendously to the overall run of the scripts in the builds availed.

Near future might just carve out a niche for the new tool Coded UI Test Automation from the hubs of Microsoft development team capitalising onto the Market share of the most of the other Functional Test Automation Tool.

Hierarchy of Code creation during record time by Coded UI Approach ?

We can definitely take a lot more than just one or two posts discussing the overall hierarchy followed by the VSTS tool at a macro level. While creating the Test Project  under the Predefined templates by selecting the Test Project we move into a new view of the complete solution that   gets generated in VSTS. Namely the Solution Explorer. However if the same is not available do kindly click the View tab and select the Solution Explorer. It gets automatically hooked up onto the left pane of the window.

  • Suppose the name of the project is CodedUIDemo, the same name comes up under the complete hierarchy of the Test Project.
  • Now just right click the project name and click Add a Coded UI test to the project.
  • Wait for sometime , have a Kitkat break and come back.
  • I said the above for those having their RAM lesser than 2 GB.
  • Jokes apart , something that can be figured up from here is a small  "User Interface" comes as  a pop-Up in the right corner at the bottom.
  • Do note that there is  red button in the left side of the small sleek UI .
  • That very button when clicked provides the start to the Record Feature of the Coded UI Test Automation predominantly for the Functional Testing.
  • Other than this button we have three more featured buttons with some exciting functionality , but lets prefer going slow.
  • Until the red button is clicked , nothing gets recorded, but once you click this very red button, every action starts recorded.
  • Lets not be worried about every action getting recorded as it is pretty headache creating stuff.
  • Are you imagining the scenario like you are in the middle of doing some recording and the Chat window popping up and you getting excited your friend's chat interests more than the record you are in the middle of.
  • But take a chill - pill and do click the same button you had clicked to start recording which is currently displayed not as a red button but as a ..........
  • As a Window Media Player's "PAUSE" Button.
  • Just click the pause button and reply to the friend's chat message instantly congratulating him for his marriage getting fixed up with the lady he loves....
  • Dudes my lady love is in from work ..Lets carry on with this Interaction again with the following Posts.

Till then Hum hain rahi pyaar k fir milenge chalte chalte....

Post a Comment


  1. Yellow Font is not readable.

  2. Sorry buddy, Background change has been made to the blog due to recent comments regarding the same. Hence the uissue occured. I hope it suits the reader now.Thanks for your valuable inputs. You can go through below link for more on Coded Ui Testing:


Close Menu