SlideShare a Scribd company logo
2
Most read
5
Most read
7
Most read
Esin Karaman 
SWE550 
Boğaziçi University 
1
Agenda 
Software testing process evalution 
What is model-based testing 
The process of model-based testing 
MBT (Model-based testing) Tools 
Prerequisites for MBT 
Benefits of MBT 
Limitations of MBT 
2
«Life is too short for manual testing.» 
Harry Robinson, test architect for Microsoft’s Engineering Excellence Group and a driving force behind Microsoft’s model-based testing initiative, 1999-2004 
3
Software testing process evalution 
4 
Manual Testing 
Capture/Replay 
Script Base Testing 
Keyword-Driven Automated Testing 
Model-Based
What is model-based testing? 
Model-based testing is a variant of testing for automatic generation of test cases using models describing some aspects of the software under test (SUT). 
It can automate the complete test design process, given a suitable model, and produces complete test sequences that can be transformed into executable tests cripts. 
Model-based testing is the automation of the design of black-box tests 
5
What is model-based testing? 
The difference from the usual black-box testing is that rather than manually writing tests based on the requirements documentation, we instead create a model of the expected SUT behaviour, which captures some of the requirements. Then the model based testing tools are used to automatically generate tests from that model. 
6
The process of model-based testing 
Create a model detailed enough to describe the characteristics that we want to test 
Automatically generate abstract test cases from the model by using a model-based testing tool 
Transform abstract test cases into into executable test scripts 
Execute test scripts by a test execution tool 
7
8 
Model-Based Testing Process
Modelling 
A model of the SUT is built on the grounds of requirements 
Includes expected behaviour 
Must be concise and precise 
9
Modelling (2) 
Model-based testing uses models of the SUT and its environment. 
Abstraction 
- Function 
- Data 
M1-M3 is suitable 
10
Modelling (3) 
Modelling notations 
State based (or Pre/Post) Notations 
Transition-based Notations 
Functional Notations 
Operational Notations 
Stochastic Notations 
Data-Flow Notations 
11
Test requirements selection 
Used to control the generation of tests Steps: 
Test selection criteria are defined 
Test selection criteria are then transformed into test case specifications 
12
Test selection criteria 
Defining «best» test selection criteria is not possible. Test engineer chooses adequate test selection criteria. Criteria types: 
Structural model coverage criteria 
Data coverage criteria 
Requirements-based coverage criteria 
Ad-Hoc test case specifications 
13
Test generation 
Once the model and the test case specification are defined, an abstract test suite is generated. 
Technology: 
Random 
Graph-search algorithms 
Model-checking 
Symbolic execution 
Theorem proving 
14
Test concretization(transformation) 
Concretize abstract test suite to executable level (test script). 
This can be done by a MBT Tool using some translation tables supplied by the test engineer. 
The resulting executable tests may be Junit in Java, or in a dynamic language such as Tcl or Python, or in a dedicated test scripting language. 
15
Test execution 
Test scripts are executed and outcomes are compared to expected ones. 
Tests are marked as pass, fail or inconclusive 
Two approaches: 
Online 
Offline 
16
Test execution(2) 
Online Testing 
Tests are executed as they are generated 
MBT tool is tightly coupled to the SUT 
Slow 
Offline Testing 
Tests are generated first, executed afterwards 
Decouples the generation and execution phases 
It can be used repeatedly for regression purposes 
17
MBT Tools 
TorX 
LTG (LEIRIOS Test Generator) 
Matlab Simulink V&V 
JUMBL 
AETG 
18
Prerequisites for MBT 
Someone enthusiastic 
Test execution maturity 
Modelling skills 
Access to training, tools, and experts 
The right kind of application 
19
Benefits of MBT 
Fault detection : MBT founds roughly the same number of errors as manually designed test suits 
Reduced testing cost and time 
Improved test quality 
Requirements defect detection 
Requirements evolution 
20
Limitations of MBT 
The model designers must be expert in the application area. This may require some training costs. 
Usually used only for functional testing, little experience for other kinds of testing. 
Sophisticated approach to testing, so it requires a reosonable level of test maturity. It is unwise to start using MBT without some experience with automated test execution. 
21
References 
Mark Utting, Alexander Pretschner and Bruno Legeard , A Taxonomy of Model-Based Testing, 2006 
Bruno Legeard, Mark Utting, Practical Model-Based Testing A Tools Approach, 2007 
A. Pretschner, W. Prenninger, S. Wagner, C. Kuhnel, M. Baumgartner, B. Sostawa, One Evaluation of Model-Based Testing and its Automation, 2005 
22

More Related Content

PPTX
Presentation on python
PDF
Problem Characteristics in Artificial Intelligence
PPT
Backtracking
PPTX
N queens using backtracking
PPTX
First and follow set
PPTX
Frame buffer
PPTX
Turing machine
PDF
Ai lecture 13(unit02)
Presentation on python
Problem Characteristics in Artificial Intelligence
Backtracking
N queens using backtracking
First and follow set
Frame buffer
Turing machine
Ai lecture 13(unit02)

What's hot (20)

PPT
Introduction to python
PPTX
Forms of learning in ai
PPTX
Propositional logic
PPTX
Hetro associative memory
PDF
Python Tutorial
PPTX
The n Queen Problem
PPTX
Pumping lemma
PPT
Turing Machine
PPTX
Controls events
PDF
Deep Learning State of the Art (2020)
PDF
intro.pptx (1).pdf
PPT
Context free grammars
PPT
Introduction to NP Completeness
PPTX
knowledge representation using rules
PPT
Problems, Problem spaces and Search
PDF
Visual Question Answering 2.0
PPTX
Fundamentals of Language Processing
PPTX
How to download and install Python - lesson 2
PDF
3b. LMD & RMD.pdf
PDF
Daa notes 3
Introduction to python
Forms of learning in ai
Propositional logic
Hetro associative memory
Python Tutorial
The n Queen Problem
Pumping lemma
Turing Machine
Controls events
Deep Learning State of the Art (2020)
intro.pptx (1).pdf
Context free grammars
Introduction to NP Completeness
knowledge representation using rules
Problems, Problem spaces and Search
Visual Question Answering 2.0
Fundamentals of Language Processing
How to download and install Python - lesson 2
3b. LMD & RMD.pdf
Daa notes 3
Ad

Viewers also liked (19)

PDF
Model-based Testing Principles
PDF
Model-based Testing: Today And Tomorrow
PDF
Model-Based Testing: Why, What, How
PDF
Software testing methods, levels and types
PPTX
Software testing ppt
PPTX
Preparing to set up your test environment
PDF
Aspect Oriented Software Engineering
PPTX
GreenDroid
PPT
Testing Fundamentals
DOC
Hybrid framework for test automation
PPTX
Fundamentals of testing
PPT
Hybrid framework
PDF
Adaptive Clinical Trials: Role of Modelling and Simulation
 
PDF
Scalable and Cost-Effective Model-Based Software Verification and Testing
PDF
Approaches to Software Testing
PPTX
Software testing methods
PPTX
Black box software testing
PDF
Model-based Testing using Microsoft’s Spec Explorer Tool: A Case Study
PDF
Fundamentals of information_theory_and_coding_design__discrete_mathematics_an...
Model-based Testing Principles
Model-based Testing: Today And Tomorrow
Model-Based Testing: Why, What, How
Software testing methods, levels and types
Software testing ppt
Preparing to set up your test environment
Aspect Oriented Software Engineering
GreenDroid
Testing Fundamentals
Hybrid framework for test automation
Fundamentals of testing
Hybrid framework
Adaptive Clinical Trials: Role of Modelling and Simulation
 
Scalable and Cost-Effective Model-Based Software Verification and Testing
Approaches to Software Testing
Software testing methods
Black box software testing
Model-based Testing using Microsoft’s Spec Explorer Tool: A Case Study
Fundamentals of information_theory_and_coding_design__discrete_mathematics_an...
Ad

Similar to Model Based Software Testing (20)

PDF
Model-Based Testing in The Test Automation
PPT
Ruud van Houwelingen - What Next for MBT? Implementing with Tools
PPTX
Next level of test automation with Model-based Testing (MBT): Experience and ...
PPTX
20220914-MBT-Experiences-SB1-final.pptx
PDF
ES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdf
PPT
Elise Greveraars - Tester Needed? No Thanks, We Use MBT!
PDF
Q44098893
PDF
Model-Based Testing: Concepts, Tools, and Techniques
PPT
Presentation Of Mbt Tools
PPTX
PDF
Hands-on Experience Model based testing with spec explorer
PPT
Bart Knaack - The Truth About Model-Based Quality Improvements
PPTX
Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.
PPTX
Model-based Testing (MBT) of web and mobile applications: A practical tutorial
PPTX
Testify smart testoptimization-ecfeed
PPTX
Assessing Model-Based Testing: An Empirical Study Conducted in Industry
PPTX
Manual Testing to Intelligent Test Automation.pptx
PPTX
QA Financial Forum London 2021 - Automation in Software Testing. Humans and C...
PDF
Holistic Model-Based Testing for Business Information Systems
PDF
Test Automation Beyond Test Execution
Model-Based Testing in The Test Automation
Ruud van Houwelingen - What Next for MBT? Implementing with Tools
Next level of test automation with Model-based Testing (MBT): Experience and ...
20220914-MBT-Experiences-SB1-final.pptx
ES2022-Minh-Nguyen-ShapingTestsIntoModelsForAutomatedTCGeneration.pdf
Elise Greveraars - Tester Needed? No Thanks, We Use MBT!
Q44098893
Model-Based Testing: Concepts, Tools, and Techniques
Presentation Of Mbt Tools
Hands-on Experience Model based testing with spec explorer
Bart Knaack - The Truth About Model-Based Quality Improvements
Model-Based Testing: Theory and Practice. Keynote @ MoTiP (ISSRE) 2012.
Model-based Testing (MBT) of web and mobile applications: A practical tutorial
Testify smart testoptimization-ecfeed
Assessing Model-Based Testing: An Empirical Study Conducted in Industry
Manual Testing to Intelligent Test Automation.pptx
QA Financial Forum London 2021 - Automation in Software Testing. Humans and C...
Holistic Model-Based Testing for Business Information Systems
Test Automation Beyond Test Execution

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
A Presentation on Artificial Intelligence
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation theory and applications.pdf
PPT
Teaching material agriculture food technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Electronic commerce courselecture one. Pdf
A comparative analysis of optical character recognition models for extracting...
A Presentation on Artificial Intelligence
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Tartificialntelligence_presentation.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Big Data Technologies - Introduction.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation theory and applications.pdf
Teaching material agriculture food technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
Spectral efficient network and resource selection model in 5G networks
NewMind AI Weekly Chronicles - August'25-Week II
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Network Security Unit 5.pdf for BCA BBA.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

Model Based Software Testing

  • 1. Esin Karaman SWE550 Boğaziçi University 1
  • 2. Agenda Software testing process evalution What is model-based testing The process of model-based testing MBT (Model-based testing) Tools Prerequisites for MBT Benefits of MBT Limitations of MBT 2
  • 3. «Life is too short for manual testing.» Harry Robinson, test architect for Microsoft’s Engineering Excellence Group and a driving force behind Microsoft’s model-based testing initiative, 1999-2004 3
  • 4. Software testing process evalution 4 Manual Testing Capture/Replay Script Base Testing Keyword-Driven Automated Testing Model-Based
  • 5. What is model-based testing? Model-based testing is a variant of testing for automatic generation of test cases using models describing some aspects of the software under test (SUT). It can automate the complete test design process, given a suitable model, and produces complete test sequences that can be transformed into executable tests cripts. Model-based testing is the automation of the design of black-box tests 5
  • 6. What is model-based testing? The difference from the usual black-box testing is that rather than manually writing tests based on the requirements documentation, we instead create a model of the expected SUT behaviour, which captures some of the requirements. Then the model based testing tools are used to automatically generate tests from that model. 6
  • 7. The process of model-based testing Create a model detailed enough to describe the characteristics that we want to test Automatically generate abstract test cases from the model by using a model-based testing tool Transform abstract test cases into into executable test scripts Execute test scripts by a test execution tool 7
  • 9. Modelling A model of the SUT is built on the grounds of requirements Includes expected behaviour Must be concise and precise 9
  • 10. Modelling (2) Model-based testing uses models of the SUT and its environment. Abstraction - Function - Data M1-M3 is suitable 10
  • 11. Modelling (3) Modelling notations State based (or Pre/Post) Notations Transition-based Notations Functional Notations Operational Notations Stochastic Notations Data-Flow Notations 11
  • 12. Test requirements selection Used to control the generation of tests Steps: Test selection criteria are defined Test selection criteria are then transformed into test case specifications 12
  • 13. Test selection criteria Defining «best» test selection criteria is not possible. Test engineer chooses adequate test selection criteria. Criteria types: Structural model coverage criteria Data coverage criteria Requirements-based coverage criteria Ad-Hoc test case specifications 13
  • 14. Test generation Once the model and the test case specification are defined, an abstract test suite is generated. Technology: Random Graph-search algorithms Model-checking Symbolic execution Theorem proving 14
  • 15. Test concretization(transformation) Concretize abstract test suite to executable level (test script). This can be done by a MBT Tool using some translation tables supplied by the test engineer. The resulting executable tests may be Junit in Java, or in a dynamic language such as Tcl or Python, or in a dedicated test scripting language. 15
  • 16. Test execution Test scripts are executed and outcomes are compared to expected ones. Tests are marked as pass, fail or inconclusive Two approaches: Online Offline 16
  • 17. Test execution(2) Online Testing Tests are executed as they are generated MBT tool is tightly coupled to the SUT Slow Offline Testing Tests are generated first, executed afterwards Decouples the generation and execution phases It can be used repeatedly for regression purposes 17
  • 18. MBT Tools TorX LTG (LEIRIOS Test Generator) Matlab Simulink V&V JUMBL AETG 18
  • 19. Prerequisites for MBT Someone enthusiastic Test execution maturity Modelling skills Access to training, tools, and experts The right kind of application 19
  • 20. Benefits of MBT Fault detection : MBT founds roughly the same number of errors as manually designed test suits Reduced testing cost and time Improved test quality Requirements defect detection Requirements evolution 20
  • 21. Limitations of MBT The model designers must be expert in the application area. This may require some training costs. Usually used only for functional testing, little experience for other kinds of testing. Sophisticated approach to testing, so it requires a reosonable level of test maturity. It is unwise to start using MBT without some experience with automated test execution. 21
  • 22. References Mark Utting, Alexander Pretschner and Bruno Legeard , A Taxonomy of Model-Based Testing, 2006 Bruno Legeard, Mark Utting, Practical Model-Based Testing A Tools Approach, 2007 A. Pretschner, W. Prenninger, S. Wagner, C. Kuhnel, M. Baumgartner, B. Sostawa, One Evaluation of Model-Based Testing and its Automation, 2005 22