Knowledge Share

Knowledge is NOT Power IMPLEMENTATION of knowledge is Power!!!
HomePortalGalleryCalendarFAQRegisterUsergroupsLog in

Share | 

 CODED UI Basics

View previous topic View next topic Go down 

Posts : 141
Points : 407
Reputation : 0
Join date : 2007-12-29
Location : Chennai

PostSubject: CODED UI Basics   Thu Oct 09, 2014 3:19 pm

C# Basics
1.       Keywords, Identifiers, Statements
2.       Variables
3.       Data Types
4.       Operators & Precedence
5.       Expressions
6.       Boolean Operators
7.       If statements(If- Else)
8.       Switch Statements
9.       Array List, Stack, Queue, Hash Table, Sorted List
10.   Overloading, inheritance
Coded UI Architecture
1.       Coded UI architecture
2.       Templates for testing
3.       User Interface with Automated UI Tests
Test Automation With Coded UI
1.       Create and Configure Test Projects for Automated Tests
2.       Creating a Coded UI Test
3.       Recording a Coded UI Test
4.       UI MAP – Coded UI Test Builder
5.       Generating Code
6.       Validations by using Assertions
7.       Defining Test Categories to Group Your Tests
8.       Defining Test Lists to Group Your Tests
9.       Setting Up Your Test Run Sequence Using Ordered Tests
10.   Creating an Automated Test That Runs an Executable Using Generic Tests
11.   Create Test Cases Using tcm.exe
12.   Data Driving CodedUI Tests
13.   Descriptive programming
Automation Frameworks
1.       Modularity Framework
2.       Library Architecture Framework
3.       Keyword-Driven Framework
4.       Data-Driven Framework
5.       Hybrid Framework
Modular approach in Coded UI Testing
Coded Ui Testing is not a very simple Automation Testing Approach and the challenges that come across while we approach the same is even more complex. The very recent issue we have come across is some Script Maintenance in the Coded UI Test files that have been executed to generate some positive ROI in the very near future.

Coded Ui Test generation is a very simple Automation testing technique with lots of support available in the internet.
·         Keep all the code blocks modular, small, simple.
Codes must not be having more than any one function flow such as create a mail account.
·         When putting any validations as Verification or assertion points, avoid using multiple in one function block.
·         There might be some code flow alteration in the Navigation path of the application, hence the Navigation flow code script must be free from the functional flow points.
·         Uimap.cs File is a Partial class file that can be used to an optimal extent by bringing in the feature of code Reusability and hence a lot more script maintenance ease.
·         Do keep in mind that the UImap.cs codes must not have any dependence on any script block that might be brought to any us.
·         When we enter the Script maintenance phase do not recode anything from fresh , just avoid re recording, and prefer  Code customization along with the partial class file.
Inspite of all this norms if at all the script maintenance is a seemingly big risk to proceed with, adopt some framework, such as complete customized approach for all possible event driven activities, such as a single function block that can handle all types of button clicks. A single function block that can handle all types of link click.

However this type of approach has lost its relevance as in the current Automation Scenario, we aim to generate some quick ROI rather than depending on the old outdated Regression based script execution to be processed upon to meet some ROI
Requirements of Hand-coded tests:

  • Recorded tests are hard to maintain.These test can't be integrated to any framework architecture and has very little scope of alterations.
  • Hand coded test gives the freedom of using any test design pattern to test. like using data driven design, keyword driven design or hybrid pattern.
  • Recorded test doesn't assure you the right result always.
  • Anyway to implement the logic and iterations you need to come down to code.
  • User may not have command on the Recorded script, so locating errors is difficult.
Back to top Go down
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
» What are the basic requirements for using Selenium IDE?
» How to open Command prompt by coding in C# having Selenium Rc server path ?
» Street Fighting Basics

Permissions in this forum:You cannot reply to topics in this forum
Knowledge Share :: Testing :: Automation :: VSTS :: CODED UI-
Jump to: