SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Downloaden Sie, um offline zu lesen
A Tool to Support Testing Activities

                              Gilson Doi Junior                Adilson Luiz Bonif´cio
                                                                                 a


                                               November 7th, 2011




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   1 / 15
Summary

   1    Concepts

   2    Motivation

   3    Tool
          Test case generation methods
          FSM generation

   4    Similar Tools

   5    Experiment

   6    Results

   7    Future works


Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   2 / 15
Concepts


  Concepts


           Testing
                   Check whether an implementation behaves according to the
                   specification
                   Guarantee reliable systems
                   Find faults (avoiding financial damage or human losses)
           Model-based testing
                   Provide a rigorous testing framework
                   Black-box approach
                   Reduce ambiguities with formalisms
                   Support automated testing activities
           Finite State Machine (FSM)
                   Specify input and outputs
                   It can be used to specify systems’ behavior



Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   3 / 15
Motivation


  Motivation




           Few model-based testing tools support FSM models
           Lack of a pool of models to support practical experiments
           Lack of an standard to describe FSM
           Tools that only implements one test case generation method
           Compare some test case generation methods




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   4 / 15
Tool


  Tool



                                                       Test suite              Oracle
                                   Specification                                           Verdict
                                                       generator              execution



                                 Implementation



                                       Pool                   FSM generator                Pool of
                                       size                                                models




                                                   Figure: Tool’s architecture




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a              A Tool to Support Testing Activities             November 7th, 2011   5 / 15
Tool


  Tool(2)


           Specification and IUT
                   Describe FSM models
           Test suite generator
                   Need the Specification model
                   Apply one of test case generation methods
           Oracle execution
                   Apply the test suite to the specification and implementation model
                   Compare both behaviors and gives a verdict
           FSM generator
                   Generate FSM models to provide a pool to the testing framework




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   6 / 15
Tool    Test case generation methods


  Test case generation methods



           We implemented three methods to FSM test case generation closely
           related, but distinct in the following aspects:
                   W-method
                           Uses the Characterization sets that distinguish every pair of states
                   Wp-method
                           Uses Identification sets that distinguish every single state
                   G-method
                           Uses R sets that distinguish families of equivalent states




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities              November 7th, 2011   7 / 15
Tool    FSM generation


  FSM generation(1)




           Obtain the pool of FSM
           Define a standard grammar to describe FSM
           Similar approaches
                   Sidhu and Leung (1989) apply changes on a model to derive distinct
                   IUT
                   Sim˜o and Petrenko (2010) present a similar algorithm that obtain only
                       a
                   restrict models




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   8 / 15
Tool    FSM generation


  FSM generation(2)



           Specifications
                   Generates FSM according to test case generation methods
           Implementation candidates (IUT)
                   Are unknown to the tester
                   Generates FSM with few restrictions: upper bound on the number of
                   states and input and output alphabet
                   Distinct transitions can be obtained with distinct combinations of input
                   and output symbol for each pair of states
                   Distinct FSM are derived by creating distinct transitions on the same
                   pair of states




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   9 / 15
Similar Tools


  Similar tools



           Similar Tools:
                   JTorX
                   Spec Explorer
                   TGV
           None of them:
                   Deals with FSM models
                   Generates formal models
                   Implements the W-method, Wp-method or G-method




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   10 / 15
Experiment


  Practical Experiments(1)




           A pool of FSM models obtained through the FSM generator
           The test suite were obtained by the Test Suite Generator
           Each FSM of the pool is tested as a IUT candidate
           The results are checked by the oracle




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   11 / 15
Experiment


  Practical Experiments(2)


                                      b/0                 b/0                  a/1


                                                a/0                 a/0
                                       s0                  s2                   s3     b/1


              W-method                         Wp-method                  G-method
              ba, aba, bba,                    ba, aba, baba,             a, aaa, aba, baa, bba,
              baba,    bbba,                   bbba                       baaa, baba, bbba, bbaaa,
              bbaba, bbbba                                                bbaba, bbbaa, bbbba




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a          A Tool to Support Testing Activities    November 7th, 2011   12 / 15
Results


  Results

     [1]                       [2]                     [3]                       [4]          [5]
     5                         Method          W       91                        24           0
     5                         Method          Wp      57                        17           0
     5                         Method          G       432                       72           0
     10                        Method          W       88                        22           0
     10                        Method          Wp      86                        21           0
     10                        Method          G       2112                      224          0


       1   Number of states
       2   Method
       3   Test Suite Length
       4   Number of Test Sequences
       5   Implementations in conformance
Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a          A Tool to Support Testing Activities   November 7th, 2011   13 / 15
Results


  Future works




           Replace QT data structures by C++ STL to improve the performance
           A graphical interface to aid the task of specifying formal models
           based on the proposed grammar
           Integrate test case generation methods for real-time systems and
           systems with data flow transformations




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   14 / 15
Results


  Thanks




           Questions?




Gilson Doi Junior, Adilson Luiz Bonif´cio ()
                                     a         A Tool to Support Testing Activities   November 7th, 2011   15 / 15

Weitere ähnliche Inhalte

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Empfohlen

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Empfohlen (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Apresentacao SBESC 2011

  • 1. A Tool to Support Testing Activities Gilson Doi Junior Adilson Luiz Bonif´cio a November 7th, 2011 Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 1 / 15
  • 2. Summary 1 Concepts 2 Motivation 3 Tool Test case generation methods FSM generation 4 Similar Tools 5 Experiment 6 Results 7 Future works Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 2 / 15
  • 3. Concepts Concepts Testing Check whether an implementation behaves according to the specification Guarantee reliable systems Find faults (avoiding financial damage or human losses) Model-based testing Provide a rigorous testing framework Black-box approach Reduce ambiguities with formalisms Support automated testing activities Finite State Machine (FSM) Specify input and outputs It can be used to specify systems’ behavior Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 3 / 15
  • 4. Motivation Motivation Few model-based testing tools support FSM models Lack of a pool of models to support practical experiments Lack of an standard to describe FSM Tools that only implements one test case generation method Compare some test case generation methods Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 4 / 15
  • 5. Tool Tool Test suite Oracle Specification Verdict generator execution Implementation Pool FSM generator Pool of size models Figure: Tool’s architecture Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 5 / 15
  • 6. Tool Tool(2) Specification and IUT Describe FSM models Test suite generator Need the Specification model Apply one of test case generation methods Oracle execution Apply the test suite to the specification and implementation model Compare both behaviors and gives a verdict FSM generator Generate FSM models to provide a pool to the testing framework Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 6 / 15
  • 7. Tool Test case generation methods Test case generation methods We implemented three methods to FSM test case generation closely related, but distinct in the following aspects: W-method Uses the Characterization sets that distinguish every pair of states Wp-method Uses Identification sets that distinguish every single state G-method Uses R sets that distinguish families of equivalent states Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 7 / 15
  • 8. Tool FSM generation FSM generation(1) Obtain the pool of FSM Define a standard grammar to describe FSM Similar approaches Sidhu and Leung (1989) apply changes on a model to derive distinct IUT Sim˜o and Petrenko (2010) present a similar algorithm that obtain only a restrict models Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 8 / 15
  • 9. Tool FSM generation FSM generation(2) Specifications Generates FSM according to test case generation methods Implementation candidates (IUT) Are unknown to the tester Generates FSM with few restrictions: upper bound on the number of states and input and output alphabet Distinct transitions can be obtained with distinct combinations of input and output symbol for each pair of states Distinct FSM are derived by creating distinct transitions on the same pair of states Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 9 / 15
  • 10. Similar Tools Similar tools Similar Tools: JTorX Spec Explorer TGV None of them: Deals with FSM models Generates formal models Implements the W-method, Wp-method or G-method Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 10 / 15
  • 11. Experiment Practical Experiments(1) A pool of FSM models obtained through the FSM generator The test suite were obtained by the Test Suite Generator Each FSM of the pool is tested as a IUT candidate The results are checked by the oracle Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 11 / 15
  • 12. Experiment Practical Experiments(2) b/0 b/0 a/1 a/0 a/0 s0 s2 s3 b/1 W-method Wp-method G-method ba, aba, bba, ba, aba, baba, a, aaa, aba, baa, bba, baba, bbba, bbba baaa, baba, bbba, bbaaa, bbaba, bbbba bbaba, bbbaa, bbbba Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 12 / 15
  • 13. Results Results [1] [2] [3] [4] [5] 5 Method W 91 24 0 5 Method Wp 57 17 0 5 Method G 432 72 0 10 Method W 88 22 0 10 Method Wp 86 21 0 10 Method G 2112 224 0 1 Number of states 2 Method 3 Test Suite Length 4 Number of Test Sequences 5 Implementations in conformance Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 13 / 15
  • 14. Results Future works Replace QT data structures by C++ STL to improve the performance A graphical interface to aid the task of specifying formal models based on the proposed grammar Integrate test case generation methods for real-time systems and systems with data flow transformations Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 14 / 15
  • 15. Results Thanks Questions? Gilson Doi Junior, Adilson Luiz Bonif´cio () a A Tool to Support Testing Activities November 7th, 2011 15 / 15