EXPO-QA: Test Automation - Let's Talk Business


Published on

1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

EXPO-QA: Test Automation - Let's Talk Business

  1. 1. Igor Gershovich Connected Testing, Inc. www.connectedtesting.com
  2. 2. About Connected Testing, Inc <ul><li>Connected Testing is an independent consulting company specializing in Test Automation and Performance Testing </li></ul><ul><li>We are located in Denver, Colorado, USA </li></ul><ul><li>We have extensive experience across a range of industries including Financial Services, Healthcare, Aerospace, Transportation, Telecommunications </li></ul>
  3. 3. Overview <ul><li>Test Automation Myths </li></ul><ul><li>Return on Investment (ROI) </li></ul><ul><li>Frameworks </li></ul>
  4. 4. Test Automation Myths
  5. 5. Myth #1 - Test Automation is simple, that every tester can do it <ul><li>This myth is promoted by the tool sales people. They are trying to promote the following test automation process: </li></ul><ul><ul><li>Record the script </li></ul></ul><ul><ul><li>Enhance the script by adding functions and data driving </li></ul></ul><ul><ul><li>Run the scripts </li></ul></ul><ul><ul><li>Report results </li></ul></ul><ul><li>Under the influence of this myth the QA manager can proudly report: All our testers are developing test automation. </li></ul>
  6. 6. Reality - Test automation is a software development task <ul><li>Automation should be designed, developed and tested </li></ul><ul><li>You need to have some kind of a programming background to implement test automation. Test Automation is not as complex as C++/C#/Java development. </li></ul><ul><li>Test automation standards should be developed </li></ul><ul><li>Automated test components are assets that should be treated like application source code </li></ul>
  7. 7. Myth #2 – Commercial test tools are expensive <ul><li>Under the influence of this myth some companies, especially the small ones: </li></ul><ul><ul><li>Try to develop their own test automation tools </li></ul></ul><ul><ul><li>Use scripting languages like Perl and Ruby </li></ul></ul><ul><ul><li>Use shareware test tools </li></ul></ul><ul><ul><li>Do not consider test automation at all </li></ul></ul>
  8. 8. Reality – Commercial tools are cheap <ul><li>Per seat license for the most expensive automation tool is $8K </li></ul><ul><li>This tool will be used for 5 years. </li></ul><ul><li>Maintenance/Support fees are 20% of tool cost or $1,800 per year </li></ul><ul><li>The cost of this tool is $8K/5+$1,800 = $3,100 per year </li></ul><ul><li>The automation developer cost with overhead is $100K per year </li></ul><ul><li>The cost of this tool is just 3% of the person who uses it, but productivity gain can be very significant </li></ul>
  9. 9. Commercial Tool Benefits: <ul><li>Customer support. Many of the open source tools come and go with little to no support </li></ul><ul><li>Most commercial tools are constantly being updated as technologies change </li></ul><ul><li>Most commercial tools usually have more functionality (QTP can test various GUI applications: Web, .Net, Java, VB, C/C++, PowerBuilder, etc. vs. WATIR – Web only) </li></ul><ul><li>Commercial tools usually have a large community of users, which translates into better availability of qualified resources </li></ul><ul><li>Commercial tools require less advanced programming </li></ul><ul><li>More test automation frameworks are available for commercial tools </li></ul><ul><li>Commercial tools are integrated with Test Management tools which makes reporting and execution much simpler. </li></ul>
  10. 10. Over 300 Test Tools are available (http://www.softwareqatest.com) <ul><li>Load/Performance tools – 54 </li></ul><ul><li>Web Functional/Regression – 60 </li></ul><ul><li>Java Test tools - 48 </li></ul><ul><li>Other Web tools – 76 </li></ul><ul><li>Which tool is right for you? </li></ul>
  11. 11. Some Requirements for Tool evaluation <ul><li>Technologies that should be supported </li></ul><ul><li>Available training and documentation </li></ul><ul><li>Cost </li></ul><ul><li>Support </li></ul><ul><li>Distributed execution </li></ul><ul><li>Non-proprietary language </li></ul><ul><li>Tool Audience (The skills of people involved in test automation) </li></ul><ul><li>Easy to maintain automated tests with a central repository </li></ul>
  12. 12. Main Reasons for Test Automation failures <ul><li>Lack of Management Support </li></ul><ul><li>Inexperienced Test Automation staff </li></ul><ul><li>Over-engineering </li></ul>
  13. 13. Think of yourself like a business <ul><li>Facts: </li></ul><ul><ul><li>Average IT job tenure is about 2 years </li></ul></ul><ul><ul><li>Competitive intensity is rising </li></ul></ul><ul><li>What you should do: </li></ul><ul><ul><li>Invest your time/money in learning mainstream automation </li></ul></ul><ul><ul><li>Create a niche for yourself - add Configuration Management, Performance Testing or Project Management to your skillset </li></ul></ul><ul><ul><li>Market yourself </li></ul></ul>
  14. 14. Absolutely Unscientific research: Employer demand by tool expertise May, 2008 and Aug, 2009
  15. 15. Dice.com search results across US (30 days) Tool Search string Matches May, 08 Matches Aug, 09 QTP Qtp OR quicktest OR &quot;quick test“ 613 484 Functional Tester &quot;rational robot&quot; OR &quot;functional tester” 118 58 SilkTest silktest OR &quot;silk test” 86 31 TestPartner testpartner OR &quot;test partner“ 19 18 WATIR watir OR watiN or WatiJ 26 28 Selenium Selenium 108 140 Total 22% decline from May, 08 to Aug, 09 970 759
  16. 17. IDC Report: “Worldwide Automated Software Quality 2007-2011 Forecast and 2006 Vendor Shares…”
  17. 18. Return On Investment (ROI)
  18. 19. Classic ROI Calculation ROI = BENEFIT/COST Automation Cost = Price Of HW + Price of SW + Development Cost + Maintenance Cost + Execution Cost Manual Testing Cost = Development Cost + Maintenance Cost + Execution Cost ROI = (Manual Testing Cost - Automation Cost)/Automation Cost Looks right, Doesn’t it?
  19. 20. Problems with Classic ROI Calculation <ul><li>You can’t compare Automated Testing and Manual Testing. They are not the same and they provide different information about the AUT. </li></ul><ul><li>You can’t compare cost of multiple execution of automated tests vs. manual tests. You would never dream of executing that many test cases manually. </li></ul>
  20. 21. Automation Real ROI <ul><li>ROI value IS NOT the value of Automation vs. Cost of executing these tests manually </li></ul><ul><li>Automation ROI value IS the benefit of this type of testing, and it can be: </li></ul><ul><ul><li>Reducing Time to Market </li></ul></ul><ul><ul><li>Increased Test Efficiency (Productivity) </li></ul></ul><ul><ul><li>Increased Test Effectiveness </li></ul></ul>
  21. 22. Reduced Time to Market <ul><li>Can get a greater market share </li></ul><ul><li>Makes people available to work on other projects </li></ul><ul><li>Higher margins, if no competitive products are currently available </li></ul>
  22. 23. Productivity and Effectiveness <ul><li>More testing gets done faster, increasing the odds of finding defects </li></ul><ul><li>Defects found early have better chances of being fixed </li></ul><ul><li>Manual Testers can concentrate on clever ways to finding defects, instead of typing test inputs and verify output. </li></ul><ul><li>About 7% of bug fixes create new bugs, sometimes in already tested parts of the system. With automation you can rerun tests for those modules. This almost never happens when testing is done manually. </li></ul>
  23. 24. Example: 2-week Regression 1 st week 2 nd week Manual Testing Bug Fixes/ New Build Spot-check Manual Regression 1 st week 2 nd week Automated and Manual Testing – 1 st Run Automated Regression Bug Fixes/ New Build Automated and Manual Testing – 2 nd Run
  24. 25. Advantages of automated regression testing <ul><li>2 full regression runs </li></ul><ul><li>Most of bugs were found early and have a better chance to be fixed </li></ul><ul><li>Result: </li></ul><ul><ul><li>Better quality </li></ul></ul><ul><ul><li>much happier customer </li></ul></ul>
  25. 26. ROI summary <ul><li>Each project requires different types of automation - there is often no easy formula available to calculate ROI </li></ul><ul><li>Performing ROI calculation can help to determine upfront what type of automation, what level of skills, what tools will be required. </li></ul>
  26. 27. Automation Frameworks
  27. 28. Test Automation Framework <ul><li>A Test Automation Framework is a set of assumptions, concepts and tools that provide support for Automated Software Testing. </li></ul><ul><li>A correctly implemented Test Automation Framework can further improve ROI by reducing the development and maintenance costs. </li></ul>
  28. 29. Types of Test Automation Frameworks <ul><li>Modular </li></ul><ul><li>Data-Driven </li></ul><ul><li>Keyword–Driven </li></ul><ul><li>Model-Based </li></ul>
  29. 30. Modular framework <ul><li>The Modular framework is the natural progression derived from Record-and-Playback </li></ul><ul><li>The modular framework seeks to minimize repetition of code by grouping similar actions into “modules” (e.g.: login) </li></ul><ul><li>Test Data is in a script or in an internal table </li></ul><ul><li>This is what tool sales people are promoting. </li></ul>
  30. 31. Data-Driven/Keyword Driven <ul><li>These frameworks are similar in that the data is separated from the test script </li></ul><ul><li>The script is just a &quot;driver&quot; or delivery mechanism for the data. </li></ul><ul><li>The difference: </li></ul><ul><ul><li>In keyword-driven testing, the navigation data and test data are contained in the data source </li></ul></ul><ul><ul><li>In data-driven testing, only test data is contained in the data source. </li></ul></ul>
  31. 32. Model-Based testing <ul><li>Model-based testing is software testing in which test cases are derived in whole or in part from a model that describes some (usually functional) aspects of the system. </li></ul><ul><li>Model-based testing for complex software systems is still an evolving field. </li></ul>
  32. 33. <ul><li>We’ll be concentrating on Keyword-Driven testing since it is the most beneficial framework for large-scale test automation. </li></ul>
  33. 34. Advantages of Keyword-Driven Test automation <ul><li>This Framework addresses the most common problem with test automation: </li></ul><ul><li>Automation Engineers do not have domain knowledge and the End Users (Subject Matter Experts/Test Engineers) usually do not have automation expertise. </li></ul><ul><li>When properly implemented and maintained, it presents a superior ROI because each business event is designed, automated and maintained as a discrete entity. </li></ul><ul><li>Keywords can then be used to design test cases, but the design and automation overhead for the keyword has already been paid. </li></ul>
  34. 35. Advantages of Keyword-Driven Test automation <ul><li>Reduced the cost and time spent maintaining and updating tests </li></ul><ul><li>The modular structure of keyword-driven testing means that new tests can easily be created from pre-existing modules </li></ul><ul><li>The test team is capable of entirely automating tests, even without programming knowledge </li></ul><ul><li>Can be easily modified to use with different test tool </li></ul><ul><li>Reusability across different projects </li></ul>
  35. 36. Classic Keyword-Driven Example Object Action Data Textfield (username) Enter Text <username>
  36. 37. Example of Test Data for Keyword-Driven test automation developed by Connected Testing Inc. for TestComplete and QTP
  37. 38. Resources <ul><li>“ Everything you want to know about Test Automation…” by Brian Le Suer </li></ul><ul><li>“ Manager’s Guide to GUI Test Automation” by Yury Makedonov </li></ul><ul><li>“ The ROI of Test Automation” by Michael Kelly </li></ul><ul><li>“ What is my ROI?” by m Verify Corporation </li></ul><ul><li>SQA Forums </li></ul><ul><li>“ An Overview of Test Automation Frameworks” by Nathaniel Ritmeyer </li></ul><ul><li>“ The benefits of keyword-based software test automation” by David W. Johnson </li></ul><ul><li>Wikipedia </li></ul>
  38. 39. Igor Gershovich <ul><li>Company: Connected Testing, Inc. </li></ul><ul><li>E-Mail: [email_address] </li></ul><ul><li>Phone: 720-933-9395 </li></ul><ul><li>Website: www.connectedtesting.com </li></ul>