Wednesday, July 23, 2014

Keyword Driven Framework - CodedUI

We can maintain actions (click, set etc.), keywords and object repository in excel sheet.  Below is a sample:


Now, create a class file in CodedUI test project and implement the logic for reading excel sheet and initializing variables. Distinguish the type of test control (HtmlEdit, HtmlHyperlink etc.) based on the Controltype and assign properties to the test control.