Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

#ATAGTR2018 Presentation "Design Patterns in Test Automation" By Shrinathacharya L M

11 views

Published on

Shrinathacharya L.M who is a Principal Engineer at Allscripts, conducted a Session on "Design Patterns in Test Automation" at Global Testing Retreat #ATAGTR2018

please refer our linkedin post for session details
https://www.linkedin.com/pulse/design-patterns-test-automation-shrinathacharya-lm-alliance/

Published in: Technology
  • Be the first to comment

  • Be the first to like this

#ATAGTR2018 Presentation "Design Patterns in Test Automation" By Shrinathacharya L M

  1. 1. #ATAGTR2018 Design Patterns in Test Automation Shrinathacharya L M, Principal Quality Engineer, Allscripts 27th September 2018
  2. 2. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Schematic Diagram
  3. 3. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Tester is Coder!! How many of you think?
  4. 4. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Tester is also a Designer!! How many of you think?
  5. 5. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) For every successful test automation, how best framework is built, what are the design patterns implemented in framework matters a lot. This paper talks about design patterns implementation in test automation framework starting from reusability, singleton, page object pattern, fluent interface (Method chaining) and talk on different types of automation framework. Also talk on how these patterns help in defining success of test automation and return on investment for test automation. This paper also gives the code snippet with example in explanation and advantages of using it. Abstract
  6. 6. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) What is Test Automation?  Developing the automation scripts for the test cases by writing code/script in C# or many other coding languages.  Involves design test automation framework  Implement design pattern in automation framework  Implement to generating execution reports  Develop utilities around automation
  7. 7. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) 3 Mantra’s for Successful Test Automation  Cost of Scripts Development  Apply AI algorithms to auto generate scripts  Cost of Maintenance  Execution Efficiency
  8. 8. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Design Patterns used in Test Automation  Page object pattern  Fluent Interface (Method Chaining)  Singleton pattern  Facade design pattern  Strategy design pattern  Observer design pattern
  9. 9. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Test Automation Frameworks • Data is pulled from flat file, excel, DB for inputs Data Driven Framework • Extension of data driven framework with action to be performed on application under test. Keyword Driven Framework • Combination of more than one framework Hybrid testing framework • Separating automation test scripts with module level scripts by abstraction layer for reusability and maintenance. Model Based Framework • Functional validation with set of rules. Behavior driven framework
  10. 10. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Architecture of Model Based Framework
  11. 11. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Page Object Pattern
  12. 12. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Page Object Pattern – C# Code in Test Script
  13. 13. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Singleton Design Pattern– C# Code in Test Script • A class with only one instance and provide a global point of access to it
  14. 14. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Model Based Framework Advantage  Cost of Maintenance of automation scripts is easy  Avoids duplication of code  Modify code at single place  Cost of Script development of automation script is cheaper  Greater Coverage of automating test cases  Page Object Pattern supports with reusability  Singleton – Only one instance of object created with global point of access.
  15. 15. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Fluent Interface (Method Chaining) Pattern  Method Chaining within a Class  Method Chaining with Multiple Class
  16. 16. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Typical Coding of Property Class and Usage
  17. 17. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Implementing Method Chaining in Single Class in C#
  18. 18. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Implementing Fluent Interface for Multiple Class in C#
  19. 19. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Continue…
  20. 20. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Advantages & Usage  Used in Unit Testing and Automation Testing  Readable and simple to understand by others  Used in framework development and query based support programming
  21. 21. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Test Automation Tools which supports C#
  22. 22. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Overcoming the challenges in Test Automation  Implementing Design Patterns which are required for Test Automation  Direct access to third part WebAPI’s in case of complexities.  Generating Web Based Reports  Integrate with Test Management Tools (Ex: MTM- Microsoft Test Management Tool)
  23. 23. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Author Biography Shrinathacharya L M Principal Quality Engineer shrinathacharya.lm@allscripts.com Allscripts • Developer by profession | Automation tester by heart | .NET programmer | Innovator • TechGig Percentile in C# 98.65 • Patents filed as USPTO • Specialist in automation framework development • 15+ years of experience in development, automation (Web, Windows, Mobile applications), Innovation • Member of technology committee at Allscripts • Speaker for Global Testing Retreat-2017 Conference, DevOps++ Summit, Panel member -Selenium Summit-20178 • Speaker at ATA 13th Meetup, DotNetBLR meetup • Published white paper in STC-2015, STC-2016 • Jury for STC-2018
  24. 24. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Question and Answers
  25. 25. #ATAGTR2018 As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial channels(Provided due credit is given to me/us) Thank You!!!

×