Test-driven Development Practices in White Box Test Automation
Upcoming SlideShare
Loading in...5
×
 

Test-driven Development Practices in White Box Test Automation

on

  • 1,103 views

Test-driven development is a software development process that relies on the repetition of a very short development cycle. This process is heavily emphasized by those using Agile development ...

Test-driven development is a software development process that relies on the repetition of a very short development cycle. This process is heavily emphasized by those using Agile development methodologies. White-box testing (also known as clear box testing, glass box testing, transparent box testing, and structural testing) is a method of software testing that tests internal structures of an application, as opposed to its functionality. In this session, we will learn how to use white box test automation in the form of test-driven development at the unit, integration and system levels of the software testing process.

Statistics

Views

Total Views
1,103
Views on SlideShare
1,103
Embed Views
0

Actions

Likes
0
Downloads
6
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Test-driven Development Practices in White Box Test Automation Test-driven Development Practices in White Box Test Automation Presentation Transcript

  • Test-driven DevelopmentPractices in White Box TestAutomationErvin LohALM Program ManagerK365Labs Sdn Bhd
  • Typical result?
  • What is Test-driven Development?“Test-Driven Development seeks specification, not validation, letting you think through your design before you write your functional code” - Scott Ambler“Test-Driven Development is a powerful way to produce well designed code with fewer defects” - Martin Fowler
  • Test-driven Development Stages In Extreme Programming Explored (The Green Book), Bill Wake describes the test / code cycle: Write a single test Compile it. It shouldn’t compile because you’ve not written the implementation code Implement just enough code to get the test to compile Run the test and see it fail Implement just enough code to get the test to pass Run the test and see it pass Refactor for clarity and “once and only once” Repeat
  • Test Driven DevelopmentThe motto "Red, Green, Refactor."
  • Get Agile – Test DrivenDevelopment PracticesTools For Agility, Kent Beck Tools
  • The Demo Scenario The Configuration An application, Tailspin Toys that builds in Visual Studio 2010 A fully configured Visual Studio 2010 Premium and Team Foundation Server 2010 environment What’s Needed A lot: tests and builds
  • Step 1: Unit TestA method bywhich individualunits of sourcecode are tested todetermine if theyare fit for use.
  • Unit Tests with Visual Studio 2010
  • Step 2: Test Impact AnalysisA method toidentify the teststhat need to berun for the latestcode change.
  • Integrating Unit Tests andTest Impact Analysis with Visual Studio 2010
  • Step 3: Code CoverageA method todescribe thedegree to whichthe source codeof a program hasbeen tested.
  • Integrating Unit Tests andCode Coverage with Visual Studio 2010
  • Step 4: Build AutomationAn act ofautomating awide variety oftasks such ascompilingcomputer sourcecode into binarycode, packagingbinary code, andrunning tests.
  • Integrating Build Automation and Unit Tests
  • Quality Indicators 91 80 76 71 60 51 56 40 32.5 20 19 18 12 9 8 Iteration 1 Iteration 2 Iteration 3 Iteration 4 Iteration 5
  • Starting Test Driven DevelopmentCreating a cultural change is hard… ….. and it can be done
  • Questions & Answers
  • ResourcesBrian Marick’s Sitehttp://www.testdriven.comGuidelines for Test-Driven Developmenthttp://msdn.microsoft.com/en-us/library/aa730844(v=vs.80).aspxUsing TDD with ASP.NET MVChttp://msdn.microsoft.com/en-us/library/ff847525.aspxApply Test-Driven Development to your Database Projectshttp://msdn.microsoft.com/en-us/magazine/cc164243.aspxImprove the Design and Flexibility of Your Project with Extreme ProgrammingTechniqueshttp://msdn.microsoft.com/en-us/magazine/cc163982.aspx
  • Recommended Books test-driven development: A Practical Guide Dave Astels Prentice-Hall/Pearson Education, 2003 ISBN 0-13-101649-0 Review available on my web-site ______________________________________ Test-Driven Development: By Example Kent Beck Addison-Wesley, 2003 ISBN 0-321-14653-0
  • Recommanded BooksRefactoring: Improving the Design of Existing CodeMartin FowlerAddison-Wesley, 1999ISBN 0-201-48567-2__________________________________Test-Driven Development in Microsoft.NETJames W. Newkirk; Alexei A. VorontsovMicrosoft Press, 2004ISBN 0-7356-1948-4xUnit.net & xUnit Test Pattern
  • We value your feedback!Please remember to complete theoverall conference evaluation form andreturn it to the Registration Counter.