Introtoframework
Introtoframework
0
Framework
Agenda
• What’s the hype all about?
• Why to Develop an Automation Framework.
• Features of Automation Framework.
• Types of Framework.
• Framework and Automation Tools.
• Hybrid Framework in Caritor.
• Got the IDEA!!!! Have a look at it NOW…….
What’s the hype all about?
Automation Framework:
• To improve the efficiency and effectiveness of the Automation testing process it is important to find ways
to improve Re-usability of scripts.
• A test automation framework is a set of assumptions, concepts, and practices that provide support for
automation testing.
• It mainly contains Component functions which can be used on every application irrespective of the
environment in which they are built
• Since the framework's functions automatically performs validations on every object within every action,
many hours of script coding and debugging also avoided.
Why to Develop an Automation Framework.
Advantages:
• Re-usability of scripts
• Can be used independent of AUT and dependent on technology and testing tool
• Scripts can be developed even when application development is still in progress
• Uniformity is maintained for all the scripts
Disadvantages:
• Initial cost and effort required would be quite high
• Constant changes to framework would lead to increased re-work of scripts
Features of Automation Framework.
• The test framework should be application-independent - "We should focus our
automation framework to deal with the common components that make up our
unique applications.“
• The test framework must be easy to expand, maintain, and perpetuate- "We must
always remember: our ultimate goal is to simplify and perpetuate a successful
automation framework.“
• The test strategy/design should remove most testers from the complexities of the
test framework.
Components of Automation Framework
Types of Framework
• Functional Decomposition or Modular Approach
Advantage:
Disadvantage:
• Development of Master Script code and Keyword functions that drive the AUT and the data
Pros:
Robust framework
Knowledge on Key Words usage is sufficient
Cons:
More initial time and effort is required than anyother framework
Details steps for each test condition need to be documented
Keyword Driven Framework
Types of Framework
Data Driven Approach
• A data-driven framework is where test input and output values are read from data
files
• Utilises a modular design where files are used to input as well as verify data
You can implement modularity by nesting test scripts and using the library files (or
objects) to implement functions, procedures, or methods.
Framework and Automation Tools.
AUTOMATION FRAMEWORK ARCHITECTURE
Framework
Function Common
library Functions
Abstract Layer
Test Script
Object (Driver Script)
Repository Keywords
AUT
AUT
Hybrid Framework in Caritor.
Process Model to build framework:
Testing&
Analysis Design Implementation Tweaking
Hybrid Framework in Caritor.
• Keyword Reference Document (KRD).
Dialog;<name>::Dialog;<name>::Dialog;
r Context Window;<windowname> <name>
Dialog;<name>::Dialog;<name>::Dialog;
r Context Dialog;<name> <name>
Button;<buttonname>
r Perform Click
Button;<buttonname>
r Check Enabled:<True/False>
Demo