SlideShare a Scribd company logo
XP
           Acceptance Testing




2011   1   28
•           @haru01

                •      :

                •   @t_wada,@kakutani
                    TDD




2011   1   28
•   XP

                •   Acceptance Testing
                                    Developer

                •


2011   1   28
2011   1   28
Great Software




                 Customers Developers
                        Testers
2011   1   28
2011   1   28
•

                •   10        XP   Customer Tests

                •   3        BDD

                •        Testing




2011   1   28
WaterFall
                            #1




            3
2011   1   28
WaterFall



                            A

                            B

                            C



2011   1   28
#1   #2   #3

                               .....




            3
2011   1   28
A

                    B   B

                C   C   C



2011   1   28
Whole Team

            Customers   Developers   Testers   Customers   Developers



                                                       Testers




2011   1   28
XP      Small Relases, User Stories,
                Customer Tests                          ,




                      Customers       Developers



                                Testers


2011   1   28
2011   1   28
•

                •10                     XP
                    Customer Test
                •                 BDD

                •   Acceptance Test




2011   1   28
Exteme Programming




2011   1   28
2011   1   28
Christopher Alexander
                Kent Beck   Ward Cunningham




2011   1   28
Christopher Alexander




2011   1   28
2011   1   28
Customer Test

                • Wiki
                • CRC
                •


2011   1   28
Customer Test
                Testers Customers Developers




                Red Green
                Acceptance or Reject



2011   1   28
2011   1   28
Customer Test




2011   1   28
Customer Tests




                  http://itpro.nikkeibp.co.jp/article/COLUMN/20080828/313626/

2011   1   28
Ward Cunningham

                        ✓XP
                        ✓CRC
                        ✓Wiki
                        ✓Fit
                                  XP, CRC, Wiki   Fit
2011   1   28
Fit
                 “Great software requires
                 collaboration and
                 communication.
                 -- http://fit.c2.com/




2011   1   28
Fit
                 “Fit is a tool
                 for enhancing collaboration
                 in software development.
                 -- http://fit.c2.com/




2011   1   28
Fit
                 “It automatically compares
                 customers' expectations to
                 actual results.
                 -- http://fit.c2.com/




2011   1   28
Fit

                •       (Cusutomers       )
                         (            )

                    •
                    •

2011   1   28
Customers, Developers,
            Testers




2011   1   28
2011   1   28
Fit
       Customers                Developers
                                               Fixture




                      Testers                Production
                                               Code


2011   1   28
Fit         Acceptance Testing



                                                Spec & Example
                                                       (Word)
                                       Unit
                             Unit
                                      Testing
                            Testing
                                      (TDD)
                            (TDD)
                                                   Fixtrue




       AceptanceTDD RSpec


2011    1   28
Conversation




                             ✓
                Acceptance




                             ✓
                                                          describe




                  Refactor   ✓
                                                    Red
                             Green

2011   1   28
Conversation




2011   1   28
Example(       )           Spec



  Customers                                  Developers




                           Testers
                    -- http://fit.c2.com/

2011   1   28
describe




2011   1   28
Human Readable & Executable Specification


                                                        Spec(      )

                                                        Example(       )


                (                     Example    Spec
                      )



                          -- http://fit.c2.com/

2011   1   28
red -> green




2011   1   28
2011   1   28
Acceptance (or Reject)




2011   1   28
2011   1   28
•   3

                •   10             XP        Customer Tests



                •       3                            BDD
                •   15(   )Acceptance Test




2011   1   28
Behavior
                Driven
                Development
2011   1   28
BDD

                •   XP    CustomerTest(Accetance TDD)
                    TDD

                •
                    •            :Given, When, Then

                •         :Cucumber, Steak, RSpec


2011   1   28
BDD


                              ATDD
                      (   )


2011   1   28
Conversation




                             ✓
                Acceptance




                             ✓
                                                          describe




                  Refactor   ✓
                                                    Red
                             Green

2011   1   28
BDD

                •Given             • Example
                               •   (

                • When
                • Then


2011   1   28
step



                https://github.com/ruby-no-kai/rubykaigi/blob/master/features/toppage.feature

2011   1   28
http://tatsu-zine.com/books/cuke



2011   1   28
2011   1   28
•
                    •   Fit, Cucumber, Steak, Selenium

                •
                    •     Bridging the Communication Gap

                    •     User Stories Applied

                •   Example Given, When, Then


2011   1   28
2011   1   28
Testing




                          Customers Developers



                                 Testers


2011   1   28
“Great software requires
                collaboration and
                communication.
                -- http://fit.c2.com/




2011   1   28
Conversation




                             ✓
                Acceptance




                             ✓
                                                          describe




                  Refactor   ✓
                                                    Red
                             Green

2011   1   28
Customer Test / BDD


                •   Example(      •   Given
                                  •   When
                                  •   Then




2011   1   28
Customer Test / BDD

                • Fit
                • Cucumber



2011   1   28
Great Software




                 Customers Developers
                        Testers
2011   1   28
Happy Testing



2011   1   28
Testing




2011   1   28
5-6

                Testing




                          Testing


                Testing

2011   1   28
(   )




2011   1   28
http://www.flickr.com/photos/cestomano/2297242391/sizes/z/in/photostream/


2011   1   28
http://www.flickr.com/photos/cestomano/2297242391/sizes/z/in/photostream/


2011   1   28

More Related Content

XP Customer Testing