Test Automation - Let's Talk Business

3,619 views

Published on

0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,619
On SlideShare
0
From Embeds
0
Number of Embeds
7
Actions
Shares
0
Downloads
230
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Test Automation - Let's Talk Business

  1. 1. Test Automation Let’s talk business Igor Gershovich Connected Testing, Inc. www.connectedtesting.com [email_address]
  2. 2. Overview <ul><li>Test Automation Myths </li></ul><ul><li>Return on Investment (ROI) </li></ul><ul><li>Frameworks </li></ul>
  3. 3. Test Automation Myths
  4. 4. 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>
  5. 5. 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>
  6. 6. 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>
  7. 7. 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>
  8. 8. 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>
  9. 9. 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>
  10. 10. Absolutely Unscientific research: Employer demand by tool expertise (May, 2008)
  11. 11. Dice search results across US (30 days) Tool Search string Matches QTP Qtp OR quicktest OR &quot;quick test“ 613 Functional Tester &quot;rational robot&quot; OR &quot;functional tester” 118 SilkTest silktest OR &quot;silk test” 86 TestComplete testcomplete OR &quot;test complete” 26 TestPartner testpartner OR &quot;test partner“ 19 VSTE VSTE AND test 45 WATIR watir 26 Selenium Selenium 108
  12. 13. Excerpt from IDC Report: “ Worldwide Automated Software Quality 2007-2011 Forecast and 2006 Vendor Shares…”
  13. 15. 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. 16. Return On Investment (ROI)
  15. 17. 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?
  16. 18. 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>
  17. 19. 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>
  18. 20. 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>
  19. 21. 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>
  20. 22. 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>
  21. 23. Automation Frameworks
  22. 24. 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>
  23. 25. 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>
  24. 26. 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>
  25. 27. 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>
  26. 28. 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>
  27. 29. <ul><li>We’ll be concentrating on Keyword-Driven testing since it is the most beneficial framework for large-scale test automation. </li></ul>
  28. 30. 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>
  29. 31. 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>
  30. 32. Classic Keyword-Driven Example Object Action Data Textfield (username) Enter Text <username>
  31. 33. Recent Success with Keyword-Driven approach <ul><li>Estimate using Modular Framework: 1 year </li></ul><ul><li>Estimate with Keyword-Driven Framework: 6 months </li></ul><ul><li>Project was completed in 4 months by 1 person , 2 month ahead of schedule. </li></ul><ul><li>This was the first project for the automation developer utilizing the Keyword-Driven Framework. </li></ul><ul><li>170 components were developed (1 component per Web page). </li></ul><ul><li>109 Regression Test cases were automated. </li></ul>
  32. 34. Example of Test Data for Keyword-Driven test automation developed by Connected Testing Inc. for TestComplete and QTP
  33. 35. 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>
  34. 36. 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>

×