Model-Based Testing to
              Help You Enhance Your
              Agile Testing Process!!
                         ...
Agenda


                                                                                                                 ...
Game 1

      Customer                                                                                R&D
• Make groups of...
Game 2

•   Customer and R&D are side by side
•   Customer presents their business needs
•   R&D gives a cost for each
•  ...
History

    In the 50s, NASA and IBM were doing
    iterative and incremental developments
    Search for methods adapted...
Agile Manifesto: values!

    Individuals and interactions over
    processes and tools
    Working software over comprehe...
Most popular methods:
Scrum
    Early 90s by Jeff Sutherland, Ken Schwaber and
    Mike Beedle



                        ...
Most popular methods: XP

    Late 90s by Kent Beck, Ward Cunningham & Ron
    Jeffries




                              ...
Smartesting: an agile
company!




                                                                                       ...
Pre-requisites for agile
testing

    Communication
    Test Driven Development
      – Customer provides acceptance tests...
Lisa Crispin & Janet
Gregory’s Quadrant

                                                                Business-Facing

...
Smartesting

                                                                Business-Facing


                        •Fu...
Mike Cohn’s Test Pyramid




                                GUI
                               tests                     ...
Challenges

    During one iteration :
      – Functional changes
      – Technical changes
      – Automating tests for t...
Game 3

•        Iteration 1, you have 4 types of bricks:

Draw 6 columns of 8 bricks each using at
least one type of each...
Model-Based Testing

    Generation of test cases with oracles from
    a behavioural model (e.g. state machine)
    of th...
FOREX-SPOT

• FOREX-SPOT is a web application to buy/sell currencies and to know if we
make money or not.




            ...
FOREX-SPOT

    Transaction:



    Actions (Depending of the transaction
    status and the user, actions are available
 ...
Transaction lifecycle




                                                                                                ...
Requirements covered by
previous iterations
                                   Id                                         ...
Modeling for Testing

 Business entities




                                                                             ...
Modeling for Testing

    Expected behaviour




                                                                         ...
Iteration “STEP-IN”




    New user introduced: BOSS
    New action: Approve
                                            ...
TODO list

     Manage new requirements:
                                   Id                                            ...
DEMO

                                                                                                                  25...
How does MBT fit into Aglity?

    Individuals & interactions
      – Testers & developers are working together
    Workin...
Questions?


                                                                                                             ...
Fore more…




                                                                                                           ...
Upcoming SlideShare
Loading in...5
×

Model-Based Testing to Help You Enhance Your Agile Testing Process

939

Published on

pre-tutorial STeP-IN 2010

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

  • Be the first to like this

No Downloads
Views
Total Views
939
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
49
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Model-Based Testing to Help You Enhance Your Agile Testing Process

  1. 1. Model-Based Testing to Help You Enhance Your Agile Testing Process!! February 6th Frederic OEHL Consultant oehl@smartesting.com 1 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  2. 2. Agenda QA? Agility? MBT? 2 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  3. 3. Game 1 Customer R&D • Make groups of 4 • Make groups of 6 • Write a specification • Introduce yourself to your group • Introduce yourself to • Do the job and your group deliver 3 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  4. 4. Game 2 • Customer and R&D are side by side • Customer presents their business needs • R&D gives a cost for each • Customer pass first order • Customer pass second order 4 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  5. 5. History In the 50s, NASA and IBM were doing iterative and incremental developments Search for methods adapted to software development (frequent business and technology changes) 2001 Agile Manifesto 5 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  6. 6. Agile Manifesto: values! Individuals and interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negotiation Responding to change over following a plan 6 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  7. 7. Most popular methods: Scrum Early 90s by Jeff Sutherland, Ken Schwaber and Mike Beedle 2- 4 weeks 7 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  8. 8. Most popular methods: XP Late 90s by Kent Beck, Ward Cunningham & Ron Jeffries 8 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  9. 9. Smartesting: an agile company! 9 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  10. 10. Pre-requisites for agile testing Communication Test Driven Development – Customer provides acceptance tests – Developers write unit tests first Continuous integration – Building tool: ant, maven, etc. – Build manager: Hudson, Cruisecontrol, etc. 10 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  11. 11. Lisa Crispin & Janet Gregory’s Quadrant Business-Facing Functional tests Exploratory testing Examples Scenarios Supporting the team Story tests Usability testing SimulationsAutomated & User Acceptance testing Critique product Prototypes Manual Manual Alpha/Beta Unit tests Automated Tools Performance & load testing Component tests Security testing « ility » testing Technology-Facing 11 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  12. 12. Smartesting Business-Facing •Functional test with •Exploratory testing on Friday Fitnesse & QC/QTP •Usability testing by PS Supporting the team •Alpha/Beta Critique product •JUnit tests •Performance Technology-Facing 12 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  13. 13. Mike Cohn’s Test Pyramid GUI tests Behaving like expected Acceptance tests Unit/Component Increasing trust tests 13 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  14. 14. Challenges During one iteration : – Functional changes – Technical changes – Automating tests for the iteration – Exploratory testing –… 14 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  15. 15. Game 3 • Iteration 1, you have 4 types of bricks: Draw 6 columns of 8 bricks each using at least one type of each brick • Iteration 2, there is a change update your tests 15 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  16. 16. Model-Based Testing Generation of test cases with oracles from a behavioural model (e.g. state machine) of the system under test. BEFORE NOW 16 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  17. 17. FOREX-SPOT • FOREX-SPOT is a web application to buy/sell currencies and to know if we make money or not. 17 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  18. 18. FOREX-SPOT Transaction: Actions (Depending of the transaction status and the user, actions are available of not): 18 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  19. 19. Transaction lifecycle 19 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  20. 20. Requirements covered by previous iterations Id Description APPLYNEW_TRANSACTION Only the front office can do “Apply” on APPLYREPOENED_TRANSACTION an OPEN transaction CANCELFO_USER The back office and front office can CANCELBO_USER cancel a transaction COMMITCRLY_ERROR Only the front office can do “Commit”. COMMITCRLY_SUCCESS Commit fails when: COMMITERROR_CURRENCY • the portfolio does not own the currency sold COMMITOTHER • CRLY try to sell/buy HKD COMMITSOGEPAR_ERROR • SOGEPAR try to buy HKD with COMMITSOGEPAR_SUCCESS AUX … … 20 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  21. 21. Modeling for Testing Business entities 21 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  22. 22. Modeling for Testing Expected behaviour 22 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  23. 23. Iteration “STEP-IN” New user introduced: BOSS New action: Approve 23 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  24. 24. TODO list Manage new requirements: Id Description APPROVE Only the boss can set the “Approve” status on a “BOSS review” transaction CANCELBOSS_USER The boss can cancel a transaction Updating the model Updating the application Updating the “keywords” Running the tests! 24 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  25. 25. DEMO 25 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  26. 26. How does MBT fit into Aglity? Individuals & interactions – Testers & developers are working together Working software – Increased test coverage, “executable” model Customer collaboration – Test models are unambiguous communication tools Responding to change – Test models are easier to update than large test suites 26 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  27. 27. Questions? 27 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  28. 28. Fore more… 28 © SMARTESTING 2009 – This document is the property of Smartesting. It may not be reproduced in whole or in part
  1. Gostou de algum slide específico?

    Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.

×