evolution of test automation state driven testing jan de
play

Evolution of Test Automation State Driven Testing Jan De Coster - PowerPoint PPT Presentation

Evolution of Test Automation State Driven Testing Jan De Coster November, 2011 Why test automation? Use computers to replace expensive manual testing Cant do it all manually Coverage of functionality Coverage of platforms


  1. Evolution of Test Automation State Driven Testing Jan De Coster November, 2011

  2. Why test automation? • Use computers to replace expensive manual testing • Can’t do it all manually – Coverage of functionality – Coverage of platforms – Coverage of complex data inputs • Catch problems earlier at less cost The trick is whether automation can provide an ROI

  3. Evolution of Test Automation Keyword Driven Testing Scripting Record/Replay

  4. Early Approach: Record and Playback • Create long recordings of user actions and make tests from them • Problems – Expensive to build scripts with nothing to reuse – Application changes tend to break lots of scripts – If not caught maintenance issues cause reliability problems

  5. Cost Benefit - Record and Playback Record and Playback Automation 120 100 80 60 40 20 0 1 6 11 16 21 26 31 36 41 46 51 56 61 Cost Benefit • Fragile and time consuming • Very high maintenance Tough to achieve benefits • 5

  6. What do I need? - An Automation Framework! How do I How do I use this incorporate test automation data into my language? scripts? How does the How can I be technology in my more efficient application and get more work? reusable code? What business How am I going logic and use to maintain this cases should I be over time? testing? Image: sippakorn / FreeDigitalPhotos.net

  7. What does an automation framework provide? • Structured way to add new automation • Capability to drive data into test cases • A roadmap and process to follow • Provides a way to reuse pieces of automation • Isolates change due to application change • Brings down the costs of test automation 7

  8. Keyword Testing Frameworks Action Object Type ObjectID ClickSubmit Button Submit TypeName TextField UserName VerifyName TextField UserName SelectRole DropDownList Roles VerifyTitle Window Browser Keyword Approach • Maps an Application Under Test to a set of action based keywords • Business savvy people assemble test cases using keywords • Develop test cases without programming knowledge 8

  9. Shortcoming: Keyword-driven Testing “While keyword-driven sounds wonderful, it is not a magical methodology that will solve all automation problems and cure world hunger. I worked on a keyword- driven project while I was an employee of a big corporation. We had an elaborate in-house tool, that could compose the keywords into larger blocks of actions, which were also reusable in tests. The project was a failure. The library of keywords became so huge that no one could figure out which keyword should be used in which context.” Source: http://testautomationblog.com/2010/05/16/keyword-driven-automated-testing/

  10. Next Generation of Test Automation State Driven Testing Keyword Driven Testing Scripting Record/Replay

  11. Cost benefit – Framework Automation Framework Automation 120 100 80 60 40 20 0 1 6 11 16 21 26 31 36 41 46 51 56 61 Cost Benefit • Maintenance and extension doesn’t scale • Application complexity • People and process complexity - hard for BA’s to participate • ROI is there but limited 11

  12. What’s needed? – A breakaway benefit! Breakaway Test Automation 120 100 80 60 !!! 40 20 0 1 6 11 16 21 26 31 36 41 46 51 56 61 Cost Benefit • All team members can participate • Handles application complexity well • Benefit continues to grow 12

  13. Software state transitions 13

  14. Next Generation Test Automation State Driven Testing • Organized and Test scalable Case Test Case Step 1 • Open for Design 2 3 4 5 different types 6 of test UI Object UI Object automation Framework State Transitions State Transitions – Mobile Design – SOA – App specific Action Action Action Action Action Action Automation Implementation 14

  15. State Driven Test Automation – Iterative Process Create Test Cases Design Leverage Collaboration Automation Implement Automation Iterate 15

  16. State Driven Testing value • Minimizes technical automation effort – Automates framework creation • Maximizes productivity of business experts – Accelerates the creation of test cases – Produces clear easily readable test cases • Minimizes maintenance costs – By reducing duplicate test automation • Enables agile approaches – By decoupling test design and test automation 16

  17. State Driven Testing – Breakaway benefit! Breakaway Test Automation 120 100 80 60 40 20 0 1 6 11 16 21 26 31 36 41 46 51 56 61 Cost Benefit 17

  18. MAXIMUS • Situation – Needed to automate an application quickly • Solution Within two weeks of beginning Automated Test Script development, the automation team developed over 2200 – 2 technical people, 2 business subject matter experts transaction based tests (this equates to approximately 150 – SilkCentral + SilkTest with state driven testing framework tests per tester per day – manual test development is – 2 weeks to implement and train approximately 15 test cases per tester per day). • 6 weeks later – All 4 people trained Janine Roy – MAXIMUS Test Team Lead – Test automation completed – Test case development underway – MAXIMUS very satisfied 18

  19. Thank You!

  20. 20

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend