Dear Friends,In recent days we are trailing, exploring and learning more in Automation Testing using Coded UI Test Automation. With that note I am creating this learning log post for us to share learned items and gain more information on CUITe. Thank you Suganya M from my team in consolidating this log list and Special thanks for those of my team and other who are going to contribute a lot into this.View the Learning Log till now from our QA Team…

# Defect knowledge sharing
# Cloud Computing
# Usability Testing
# Visual Basic
# Coded UI Test Automation and lot more to come…

In line to this we are moving forward with a complete automation testing as a solution for better Product Quality and Competency this year. Though these are basic stuff but the initiative and support shown is excellent which helped in sharing and learning new things.

Herewith I have list few of our learned and few for our learning item…

Reference Link:
http://executeautomation.com/blog/functional-tools/visual-studio-coded-ui/# How to create CodedUI project?
–New Project -> Visual Basic/C#  -> Test -> CodedUI Test Project
# How to Create Automation Test from existing recorded test case method?
–open CodedUItest.vb file -> Right click in the page  -> Generate Code for CodedUI test -> Use Existing Action Recording
# How to Create Automation Test from new CodedUI record and playback?
–open CodedUItest.vb file -> Right click in the page  -> Generate Code for CodedUI test -> Use CodedUI test builder
# How to Create New Assertion ?
–CodedUI test builder-> Drag Cross hair -> create new Assertion
# How to Create multiple Assertion in a single method?
–CodedUI test builder-> Drag Cross hair -> create multiple Assertion -> Generate Method
# How to Reuse Assertion within same method?
–Call Assertion method whenever to check that validation
# Code Reusability -> Frequently called methods group into single method ?
–Frequently used methods can group in to single method then we call it whenever we want
# Scroll bar not readable while record?
–Coded ui not consider the scroll bar option. With out scroll the page it can able to detect the clickable element in the page
# Unable to delete the code getting Regenerate?
–Delete the unwanted code in the class “UIMap.uitest”
# How to Rename the method?
–If we want to rename the method, it can be done in the place where the method got generate.
Eg: Rename the recorded method in UIMap.Designer file
# How to remove the model window default save password in IE browser?
–Open IE -> Tools -> Internet Option -> Content Tab -> Uncheck Username & Password -> ok
# What are the default files created in CodedUI project?
–While create coded UI project by default CodedUI files & 3 UI files got created.
1,CodedUItest.vb/CodedUItest.c#  – Class,Methods
2,UiMap.UITest – XML File
3,UIMap.vb/UIMap.Cs
4,UIMap.Designer.vb/UIMap.Designer.cs
# How to generate method from recording?
–Do the above steps -> CodedUI builder got opened -> Click record button -> Record the action -> click pause button -> click generate code button
# Unable to Read Controls
Eg:Combo expandable issue?
AM Chart# Error: System.Runtime.InteropServices.COMException will be show while run upon mouse click same from and to date in datepicker. To avoid the To date can be a keyed in.# How to Edit assertion method and reuse in another method?
# Unable to automate the auto increment employee id while create new employee?
# While Run Test , exception not get handled in assertion error occurred?
# Unable to built some CodedUI project?
# Unable to read “User name” input field in Login page?
# How to Put Policy for Automatic Code Generate?
# Unable to create Assertion for Grid?
# Unable to read role card in user while record?
# Copy file and paste in to another project ?
# Create Assertion for icon and background color?
# How to manage feature action based test.
Eg: Pending Request(Color Change)?
# Action Delay , Method Delay , Partial Execution?
# How to Order Playlist?
http://blogs.msdn.com/b/slange/archive/2010/06/02/ordering-method-execution-of-a-coded-ui-test.aspx
# How to Split / Modify Method?
# Create Assertion for multiple parameter?
# Analyze Test Context – Property?
# Manual Coded Element (Click,Type,Assertion,Sub-Method,Class)?
# Analyze Coded UI Execution method?
# Naming Conversion for of the following?
1, VB file
2, Class
3, Main Method
4,Assertion Method
# How to regenerate the deleted method in UITest Map?
# How to eliminate mouse actions from code?
Thank You.
Sampath kumar Mohan