test automation processes and types
TRANSCRIPT
Test Automation Processes & Types
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Overview
Test Automation Processes
Test Automation Types
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Process [1] Agile Process- Software development methods in which requirements
and solutions evolve through collaboration between self-organizing, cross-functional teams.
- It is a kind of framework that focuses on frequently delivering small increments of working software.
- It promotes adaptive planning- Early delivery.- Continuous improvement - Encourages rapid and flexible response to change. ‘
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Process[2] Continuous Integration – Volatile Applications
Continuous integration is a process in which all development work is integrated at a predefined time or event and the resulting work is automatically tested and built. The idea is that development errors are identified very early in the process. - Jenkins [Continuous Build System]Jenkins is one open source tool to perform continuous integration.
- Generate test reports - Integrate with many different Version Control Systems - Push to various artifact repositories - Deploys directly to production or test environments - Notify stakeholders of build status
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
CI Workflow
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
CI Workflow Cont.• Code Repositories
- SVN, Mercurial, Git• Continuous Build Systems
- Jenkins, Bamboo, Cruise Control• Test Frameworks
- JUnit, Cucumber, CppUnit• Artifact Repositories
- Nexus, Artifactory, Archiva
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Types of Test Automation[1] Data Driven Testing – Maintain Data
Repository• Which allows you to automatically run a test case
multiple times with different input and validation values.
• Input and validation data values can be stored in one or more central data sources or databases (Data Repository)
• Or even you can use Excel sheets as the format for storing your data - Ex: Selenium Web driver
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Types of Test Automation[2] Keyword Driven Testing (KDT)
Create test cases using pre-defined words (key words) and parameters and finally they will "translate" this into automated scripts. In KDT pre-defined keywords used to describe the steps and expected resultsKDT can be used to achieve a number of goals:– Improve communication between testers– Avoid inconsistency in test documents– Serve as the infrastructure for Test Automation
based on Keyword Driven Testing.
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Keyword Driven Testing (KDT)• Parameters
- In most cases, parameters should be defined for the created keywords. The parameters are additional information required in order to generate the test conditions.
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Types of Test Automation
[3] Hybrid Driven Testing – Data Driven + Keyword Driven
Hybrid testing is a combination of Data Driven testing along with keyword. Here we’ll use some keywords as the driving parameters in data driven testing the data sheet.
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Types of Test Automation[4] Domain Driven Testing• Encapsulate complex business logic in to a domain
models. It closes the gap between business requirement and code
• Domain experts and product managers which directly involves with business decisions are preparing clear and concise specifications.
• Write specifications in natural language so everyone is on the same page - Each scenario describes how the system is being used
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Types of Test Automation
[5] Test Driven Testing• First the developer writes an test case according to
the requirement and then implement the code to pass that test
• Developer focused unit/ component level tests• Helps to create well-written unit of code by
implementing unit tests• Validates ‘Building the Code Right’
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Types of Test Automation[6] Behavior Driven Testing
Acceptance Criteria- Plain Text: Feature File with
Scenarios
Step Definitions(Ruby)
DDT TDTBDT
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Behavior Driven Testing Cont.Business readable and domain specific language that allows you to describe a behavior of a system without putting details on how that behavior is developed
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Types of Test Automation[7] Acceptance Test Driven Testing• ATDT is a development practice that encourages
teams to think in terms of business goals. These goals are supported by application capabilities and features. Each feature must deliver real and measurable business value
• ATDD is an agile system development approach in which; – Acceptance tests are defined early in the process (in some cases during the development process) – Acceptance tests act as both detailed requirements and test cases at the same time
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Acceptance Test Driven Testing Contd.• ATDD is a communication process between the
customer, developer & tester• Validates ‘Building the Right Code’ • Executable specifications – Express requirements such
that they are also executable tests – Meaningful to business, developers & testers
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
ProcessWhen Test Automation ?
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
THANK YOU
Copyright © 2003-2012. Zone24x7 www.zone24x7.comwww.zone24x7.comCopyright © 2003-2012. Zone24x7 www.zone24x7.comCopyright © 2012 Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.comCopyright © 2013. Zone24x7 Inc. www.zone24x7.com
Q & A