19
Test Automation Processes & Types

Test Automation Processes and Types

Embed Size (px)

Citation preview

Page 1: Test Automation Processes and Types

Test Automation Processes & Types

Page 2: Test Automation Processes and 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

Page 3: Test Automation Processes and 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. ‘

Page 4: Test Automation Processes and 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[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

Page 5: Test Automation Processes and 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

CI Workflow

Page 6: Test Automation Processes and 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

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

Page 7: Test Automation Processes and 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

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

Page 8: Test Automation Processes and 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

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.

Page 9: Test Automation Processes and 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

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.

Page 10: Test Automation Processes and 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

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.

Page 11: Test Automation Processes and 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

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

Page 12: Test Automation Processes and 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

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’

Page 13: Test Automation Processes and 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

Types of Test Automation[6] Behavior Driven Testing

Acceptance Criteria- Plain Text: Feature File with

Scenarios

Step Definitions(Ruby)

DDT TDTBDT

Page 14: Test Automation Processes and 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

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

Page 15: Test Automation Processes and 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

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

Page 16: Test Automation Processes and 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

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

Page 17: Test Automation Processes and 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

ProcessWhen Test Automation ?

Page 18: Test Automation Processes and 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

THANK YOU

Page 19: Test Automation Processes and 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

Q & A