Ttttt

Páginas: 12 (2841 palabras) Publicado: 7 de enero de 2012
Acceptance Test Driven Development
Naresh Jain naresh@agilefaqs.com

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 1

Tutorial Schedule
Brainstorming Overview about Acceptance Criteria and Tests Demo Some Exercises Overview of Tools Details look at Fit, FitNesse and FitLibrary Hands on Session Patterns and Anti Patterns Questions welcomed all the timeLicensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 2

Welcome

Continuum Hopes and Concerns

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 3

Warmup Scenarios
Pick one scenario and in relation to your scenario, what are the specific observable results that will tell you that the activity has been successfully completed?
Going out for Movie(THX sound and Digital projection) Going out for meal (one veg.) Going shopping ($50)
[10 Minutes]

Present back to the group your findings. [3 minutes per group]
Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 4

Acceptance Criteria and Tests: Definition
Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 5

Acceptance Criteria &Tests: Definition

Acceptance Criteria
Is a set of conditions that the Story must meet for it to be accepted as complete Is typically provided by the customer or product owner.

Is not a replacement for conversation. Is one of the results of the conversation Acceptance Criteria are NOT tests
Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 6

Writing acceptancecriteria
Acceptance Criteria should contain:
ACTOR VERB – DESCRIBING A BEHAVIOR OBSERVABLE RESULT To accommodate pre-conditions Acceptance Criteria can be expressed as

Given [Precondition] When [Actor + Action] Then [Observable Result]
Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 7

Acceptance Criteria & Tests: Definition

Acceptance Tests

Acceptance Criteria+ Examples (data + scenarios) Acceptance Tests
Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 8

Demo
Roman Numerals to Decimal Conversion Example

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 9

Thinking in Tables

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 10

Thinking in Tables

OnlyTables Execute
Ignored

Executed

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 11

Foundational Table Structure
Name of Fixture Interaction with Application

Thinking in Tables

Table structure depends on type of Fixture

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 12

Thinking in Tables

3 Foundation FixturesColumn Fixture Row Fixture Action Fixture

copyright (c) 2007 by Micah Martin & Naresh Jain. All rights reserved.
Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 13

Thinking in Tables

Column Fixture

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 14

Thinking in Tables

Row Fixture
Analogous to comparing against rows in adatabase table

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 15

Thinking in Tables

Action Fixture
Think GUI window
public class CountFixture extends Fixture { private int counter = 0; public void count() { counter++; } public int counter() { return counter; } }

Counter Window
Counter: Counter: 6 Count

Licensed Under Creative Commons by Naresh JainSaturday, November 29, 2008 16

FitLibrary

Extension to FIT Written by Rick Mugridge Adds some handy Fixtures

Licensed Under Creative Commons by Naresh Jain
Saturday, November 29, 2008 17

FitLibrary Fixtures
ArrayFixture for ordered lists SetFixture for unordered lists SetUpFixture Supports Graphics Tree structures Nested Tables

FitLibrary

Licensed Under Creative Commons by...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Ttttt
  • ttttt
  • Ttttt
  • Ttttt
  • Ttttt
  • ttttt
  • ttttt
  • ttttt

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS