SlideShare a Scribd company logo
Business Informatics Group
Institute of Software Technology and Interactive Systems
Vienna University of Technology
Favoritenstraße 9-11/188-3, 1040 Vienna, Austria
phone: +43 (1) 58801-18804 (secretary), fax: +43 (1) 58801-18896
office@big.tuwien.ac.at, www.big.tuwien.ac.at
Model-based Detection of Runtime Inconsistencies
Author: Daniel Lehner
Advisors: Manuel Wimmer, Sabine Wolny
Motivation: traditional approach
2
I have to
stop my
car!
Motivation: self-driving car
3
Will my
car stop?
Challenge
4
• Limited information whether system works as expected
 Static verification: state explosion
 Testing: mostly done before deployment
 Runtime monitoring: a lot of manual effort required for setup
• For my thesis: How to reduce the manual effort for detecting runtime
inconsistencies by reusing already existing software models?
Research Questions
5
RQ1 (Automation): Automation potential of reusing existing models for
inconsistency detection.
RQ2 (Usability): Comparative evaluation of the usability of model
interaction features.
RQ3 (Coverage): Defect kinds which can be found by model-based
inconsistency detection.
RQ4 (Scalability): Parameters that influence execution time of model-
based inconsistency detection.
6
Approach: Inconsistency Detection Based on Models (IDBoM)
Design Time
Does actual behavior
match requirements?
UML Class Diagram
(expected structure)
UML Activity Diagram
(expected behavior)
Check for
- inconsistent structure
- inconsistent behavior
ClassB.getY()
Runtime
UML Sequence Diagrams
(runtime traces)
a:ClassAb:ClassB
getX()
ClassA
- getX()
ClassB
- getY()
response
7
Methodology: Design Science [1,2]
[1] Wieringa, Roel J. Design science methodology for information systems and software engineering. Springer, 2014
[2] Hevner, Alan R., et al. "Design science in information systems research." MIS quarterly (2004): 75-105
Research Questions
Requirements
Artefact: IDBoM
Dynamic Checking Service (DynCS)
Service-Oriented Querying and Management of Models (SOMQM)
Evaluation
What is the answer to RQs?
Validation
(Are requirements satisfied by artefact?)
Problem
Static/dynamic Analysis
Mapping table
Demonstration Case
Discussion of results
Related Work from LiteratureComparison of Results
Contribution
Is there some improvement?
8
Architecture of IDBoM
• RQ1 (Automation):
• Static analysis (demonstration case)
• RQ2 (Usability)
 Static analysis (comparison framework)
• RQ3 (Coverage)
 Functional testing + static analysis (demonstration case)
• RQ 4 (Scalabilty)
 Dynamic analysis (controlled simulation experiment)
9
Evaluation + applied methods
Demonstration case: autonomously driving car
Requirements: automation of the following steps
• Triggering the checking process
• Retrieving required information automation after process is triggered
• Calculating the checking result from retrieved information
• Processing the calculated checking result
Results: automation of the required steps is possible
 Given running and connected services
 Given existing design time models
10
Automation (RQ1)
11
Usability of model interactions (RQ 2) [1]
[1] Shackel, B. (2009). Usability–Context, framework, definition, design and
evaluation. Interacting with computers, 21(5-6), 339-346.
Parameter XMI MDT-UML SOMQM
Required setup for accessing
model content
Prerequisites on programming
language
Capabilities for managing
several models
Abstraction level
Requirements on model input
Documentation
Best satisfaction of parameter
Second best satisfaction of parameter
Worst satisfaction of parameter
Results: Usability of model interactions is improved for all
chosen parameters (RQ2)
• Demonstration case: autonomously driving car
• Derive inconsistency cases from CD and AD
• 23 cases identified, involving
 Unallowed method calls
 Incorrect message sequences, with particular regard to
• alternative execution paths
• parallel execution paths
 Inconsistencies between software versions
 Execution time constraints
• Results: IDBoM covers 22 cases
 Execution time constraints not yet supported
12
Coverage (RQ 3)
Identified potential parameters
 CD: # Classes, Associations, Operations
 AD: # Actions, Decision Nodes, Parallel Execution Paths
 SD: # Messages
Test data
Test program: check if message sequence is valid with respect to design
model
13
Scalability (RQ 4) – experiment setting (3/3)
[1] Pfleeger, S. L. (1995). Experimental design and analysis in software engineering, part 5:
analyzing the data. ACM SIGSOFT Software Engineering Notes, 20(5), 14-17.
• Results: Linear expansion of execution time for all tested parameters
• Runtime is mainly determined by the number of messages in SD
Scalabilty (RQ 4) – Results
14
#Classes in CD
#Actions in AD#Associations in CD
#Operations in CD#Messages in SD
15
 Model-based Detection of Runtime Inconsistencies allows
 End-to-end automation
 Linear development of execution time
 Usability of interacting with models improved by
 Using a service-oriented approach
 Combining querying and management of models
 Automating generation of documentation
 Contribution
 End-to-end solution for model-based inconsistency detection
 Including scalability and automation analysis
 Reusable solution for automated processing of model information
 with improved usability for developers
Conclusion
16
 Impact of chosen parameters for
 Improve absolute execution time values, exploiting
 Parallelization
 Cloud infrastructure
 Extension to an industrial setting
Future Work
Model-driven runtime inconsistency detection
Questions?
Find my Implementation on Github
• Inconsistency Checking Framework (Dynamic Checking Service):
https://github.com/derlehner/dyncs
• Model Interaction Framework
(Service-Oriented Management and Querying of Models):
https://github.com/derlehner/somqm
Contact me
daniel.lehner@jku.at
https://www.researchgate.net/profile/Daniel_Lehner
17
Business Informatics Group
Institute of Software Technology and Interactive Systems
Vienna University of Technology
Favoritenstraße 9-11/188-3, 1040 Vienna, Austria
phone: +43 (1) 58801-18804 (secretary), fax: +43 (1) 58801-18896
office@big.tuwien.ac.at, www.big.tuwien.ac.at
Daniel
Showcase of self-
driving car:
Class Diagram
Showcase of self-driving car: Activity Diagram
Functionality Example: incorrect method calls
Functionality Example: alternative execution paths
Functionality Example: parallel execution paths
Demonstration

More Related Content

PPTX
Iwsm2014 measuring cosmic software size from functional execution traces of...
PDF
Rayleigh model
PPT
Rejunevating software reengineering processes
PDF
Unit 1 sepm cleanroom engineering
PPTX
Machine learning for software engineering
PPT
Finance & Testing 2009 Highspeed Testautomation
PDF
Rayleigh model
PPTX
Cocomo model
Iwsm2014 measuring cosmic software size from functional execution traces of...
Rayleigh model
Rejunevating software reengineering processes
Unit 1 sepm cleanroom engineering
Machine learning for software engineering
Finance & Testing 2009 Highspeed Testautomation
Rayleigh model
Cocomo model

What's hot (20)

PDF
Reliability growth models
PDF
Software Defect Prediction Techniques in the Automotive Domain: Evaluation, S...
PPT
software effort estimation
PDF
Automated functional size measurement for three tier object relational mappin...
PPTX
#1 formal methods – introduction for software engineering
PPT
Software Project Managment
PDF
Automatic measurements of use cases with cosmic thomas fehlmann
PDF
Testing the Untestable: Model Testing of Complex Software-Intensive Systems
PPT
Software testing & its technology
PDF
Ac fr ogdgcmxqfucumvb3rtaloaj_brftdqxmm9hvb6ttcdlh-kap3doq8rsu8vhkdcpgfpozovb...
PPTX
Neurons On Wheels - Work Organisation
PDF
Documented Requirements are not Useless After All!
PPTX
Developing Tools for “What if…” Testing of Large-scale Software Systems
PPT
Chapter 14 software testing techniques
PPTX
Værktøjer udviklet på AAU til analyse af SCJ programmer
PPT
CS8494 SOFTWARE ENGINEERING Unit-4
PPTX
Software Size Estimation
PPT
Software Engineering (Testing techniques)
PPT
Vedic Calculator
PPT
Waterfall model
Reliability growth models
Software Defect Prediction Techniques in the Automotive Domain: Evaluation, S...
software effort estimation
Automated functional size measurement for three tier object relational mappin...
#1 formal methods – introduction for software engineering
Software Project Managment
Automatic measurements of use cases with cosmic thomas fehlmann
Testing the Untestable: Model Testing of Complex Software-Intensive Systems
Software testing & its technology
Ac fr ogdgcmxqfucumvb3rtaloaj_brftdqxmm9hvb6ttcdlh-kap3doq8rsu8vhkdcpgfpozovb...
Neurons On Wheels - Work Organisation
Documented Requirements are not Useless After All!
Developing Tools for “What if…” Testing of Large-scale Software Systems
Chapter 14 software testing techniques
Værktøjer udviklet på AAU til analyse af SCJ programmer
CS8494 SOFTWARE ENGINEERING Unit-4
Software Size Estimation
Software Engineering (Testing techniques)
Vedic Calculator
Waterfall model
Ad

Similar to Model-based Detection of Runtime Inconsistencies (20)

PPTX
Towards Design-space Exploration of Component Chains in Vehicle Software
PDF
Mdd test qa_test2014_bryan_bakker
PDF
Integrating AI in software quality in absence of a well-defined requirements
PDF
SICOMORO
PDF
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
PPTX
Tales from the trenches creating complex distributed systems
PPTX
6 Years of Performance Modeling at ABB
PPTX
Model Driven Testing: requirements, models & test
PPTX
How to Avoid Continuously Delivering Faulty Software
PDF
Paderborn
PPTX
On the Runtime Models for Complex, Distributed and Aware Systems
PDF
Measuring Productivity from Model-Based Development
PDF
Designing for Testability - Rohit Nayak
PPT
Sa 009 add
PDF
Model Based Test Validation and Oracles for Data Acquisition Systems
PPT
PPTX
How To Avoid Continuously Delivering Faulty Software
PDF
The Art of Applied Engineering - An Overview
PDF
Model Driven Engineering for Design-Runtime Interaction in Complex Systems: S...
PDF
Scalable and Cost-Effective Model-Based Software Verification and Testing
Towards Design-space Exploration of Component Chains in Vehicle Software
Mdd test qa_test2014_bryan_bakker
Integrating AI in software quality in absence of a well-defined requirements
SICOMORO
Making Model-Driven Verification Practical and Scalable: Experiences and Less...
Tales from the trenches creating complex distributed systems
6 Years of Performance Modeling at ABB
Model Driven Testing: requirements, models & test
How to Avoid Continuously Delivering Faulty Software
Paderborn
On the Runtime Models for Complex, Distributed and Aware Systems
Measuring Productivity from Model-Based Development
Designing for Testability - Rohit Nayak
Sa 009 add
Model Based Test Validation and Oracles for Data Acquisition Systems
How To Avoid Continuously Delivering Faulty Software
The Art of Applied Engineering - An Overview
Model Driven Engineering for Design-Runtime Interaction in Complex Systems: S...
Scalable and Cost-Effective Model-Based Software Verification and Testing
Ad

More from Daniel Lehner (20)

PDF
How Can I use the AI Hype in my Business Context?
PDF
Digital twins as key enabler for innovation in IoT systems
PDF
A Framework for Model-Driven Digital Twin Engineering
PDF
EU AI Act und seine Auswirkungen auf Unternehmen
PDF
Digitale Zwillinge und KI als Innovationstreiber im IoT
PDF
Digitale Zwillinge als Grundbaustein innovativer IoT Systeme
PDF
Towards Quantum-based Graph Matching for IoT Systems
PDF
Digital Twins for IoT Systems: Exploiting Synergies between Industry and Acad...
PDF
A Method for Template-based Architecture Modeling and its Application to Digi...
PDF
Digitale Zwillinge - Potenziale und Geschäftsmodelle
PDF
Schritt für Schritt zum digitalen Zwilling
PDF
What's a Digital Twin - and why you need a better one?
PDF
A Model-Driven Platform for Engineering Holistic Digital Twins
PDF
Git-basiertes Qualitätsmonitoring von Systems Engineering Modellen
PDF
Towards Reactive Planning With Digital Twins and Model-Driven Optimization
PDF
Git-based Model Management
PDF
How to Engineer Digital Twins
PDF
Modeling Capabilities of Digital Twin Platforms: Old Wine in New Bottles?
PDF
Next Level Unit Testing
PPTX
Sustainable Development and Management of Systems Engineering Models
How Can I use the AI Hype in my Business Context?
Digital twins as key enabler for innovation in IoT systems
A Framework for Model-Driven Digital Twin Engineering
EU AI Act und seine Auswirkungen auf Unternehmen
Digitale Zwillinge und KI als Innovationstreiber im IoT
Digitale Zwillinge als Grundbaustein innovativer IoT Systeme
Towards Quantum-based Graph Matching for IoT Systems
Digital Twins for IoT Systems: Exploiting Synergies between Industry and Acad...
A Method for Template-based Architecture Modeling and its Application to Digi...
Digitale Zwillinge - Potenziale und Geschäftsmodelle
Schritt für Schritt zum digitalen Zwilling
What's a Digital Twin - and why you need a better one?
A Model-Driven Platform for Engineering Holistic Digital Twins
Git-basiertes Qualitätsmonitoring von Systems Engineering Modellen
Towards Reactive Planning With Digital Twins and Model-Driven Optimization
Git-based Model Management
How to Engineer Digital Twins
Modeling Capabilities of Digital Twin Platforms: Old Wine in New Bottles?
Next Level Unit Testing
Sustainable Development and Management of Systems Engineering Models

Recently uploaded (20)

PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Empathic Computing: Creating Shared Understanding
PDF
KodekX | Application Modernization Development
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
cuic standard and advanced reporting.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Big Data Technologies - Introduction.pptx
PDF
Machine learning based COVID-19 study performance prediction
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
MIND Revenue Release Quarter 2 2025 Press Release
Empathic Computing: Creating Shared Understanding
KodekX | Application Modernization Development
NewMind AI Weekly Chronicles - August'25 Week I
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Advanced methodologies resolving dimensionality complications for autism neur...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Programs and apps: productivity, graphics, security and other tools
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
cuic standard and advanced reporting.pdf
Encapsulation theory and applications.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Spectral efficient network and resource selection model in 5G networks
Big Data Technologies - Introduction.pptx
Machine learning based COVID-19 study performance prediction

Model-based Detection of Runtime Inconsistencies

  • 1. Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna, Austria phone: +43 (1) 58801-18804 (secretary), fax: +43 (1) 58801-18896 office@big.tuwien.ac.at, www.big.tuwien.ac.at Model-based Detection of Runtime Inconsistencies Author: Daniel Lehner Advisors: Manuel Wimmer, Sabine Wolny
  • 4. Challenge 4 • Limited information whether system works as expected  Static verification: state explosion  Testing: mostly done before deployment  Runtime monitoring: a lot of manual effort required for setup • For my thesis: How to reduce the manual effort for detecting runtime inconsistencies by reusing already existing software models?
  • 5. Research Questions 5 RQ1 (Automation): Automation potential of reusing existing models for inconsistency detection. RQ2 (Usability): Comparative evaluation of the usability of model interaction features. RQ3 (Coverage): Defect kinds which can be found by model-based inconsistency detection. RQ4 (Scalability): Parameters that influence execution time of model- based inconsistency detection.
  • 6. 6 Approach: Inconsistency Detection Based on Models (IDBoM) Design Time Does actual behavior match requirements? UML Class Diagram (expected structure) UML Activity Diagram (expected behavior) Check for - inconsistent structure - inconsistent behavior ClassB.getY() Runtime UML Sequence Diagrams (runtime traces) a:ClassAb:ClassB getX() ClassA - getX() ClassB - getY() response
  • 7. 7 Methodology: Design Science [1,2] [1] Wieringa, Roel J. Design science methodology for information systems and software engineering. Springer, 2014 [2] Hevner, Alan R., et al. "Design science in information systems research." MIS quarterly (2004): 75-105 Research Questions Requirements Artefact: IDBoM Dynamic Checking Service (DynCS) Service-Oriented Querying and Management of Models (SOMQM) Evaluation What is the answer to RQs? Validation (Are requirements satisfied by artefact?) Problem Static/dynamic Analysis Mapping table Demonstration Case Discussion of results Related Work from LiteratureComparison of Results Contribution Is there some improvement?
  • 9. • RQ1 (Automation): • Static analysis (demonstration case) • RQ2 (Usability)  Static analysis (comparison framework) • RQ3 (Coverage)  Functional testing + static analysis (demonstration case) • RQ 4 (Scalabilty)  Dynamic analysis (controlled simulation experiment) 9 Evaluation + applied methods
  • 10. Demonstration case: autonomously driving car Requirements: automation of the following steps • Triggering the checking process • Retrieving required information automation after process is triggered • Calculating the checking result from retrieved information • Processing the calculated checking result Results: automation of the required steps is possible  Given running and connected services  Given existing design time models 10 Automation (RQ1)
  • 11. 11 Usability of model interactions (RQ 2) [1] [1] Shackel, B. (2009). Usability–Context, framework, definition, design and evaluation. Interacting with computers, 21(5-6), 339-346. Parameter XMI MDT-UML SOMQM Required setup for accessing model content Prerequisites on programming language Capabilities for managing several models Abstraction level Requirements on model input Documentation Best satisfaction of parameter Second best satisfaction of parameter Worst satisfaction of parameter Results: Usability of model interactions is improved for all chosen parameters (RQ2)
  • 12. • Demonstration case: autonomously driving car • Derive inconsistency cases from CD and AD • 23 cases identified, involving  Unallowed method calls  Incorrect message sequences, with particular regard to • alternative execution paths • parallel execution paths  Inconsistencies between software versions  Execution time constraints • Results: IDBoM covers 22 cases  Execution time constraints not yet supported 12 Coverage (RQ 3)
  • 13. Identified potential parameters  CD: # Classes, Associations, Operations  AD: # Actions, Decision Nodes, Parallel Execution Paths  SD: # Messages Test data Test program: check if message sequence is valid with respect to design model 13 Scalability (RQ 4) – experiment setting (3/3) [1] Pfleeger, S. L. (1995). Experimental design and analysis in software engineering, part 5: analyzing the data. ACM SIGSOFT Software Engineering Notes, 20(5), 14-17.
  • 14. • Results: Linear expansion of execution time for all tested parameters • Runtime is mainly determined by the number of messages in SD Scalabilty (RQ 4) – Results 14 #Classes in CD #Actions in AD#Associations in CD #Operations in CD#Messages in SD
  • 15. 15  Model-based Detection of Runtime Inconsistencies allows  End-to-end automation  Linear development of execution time  Usability of interacting with models improved by  Using a service-oriented approach  Combining querying and management of models  Automating generation of documentation  Contribution  End-to-end solution for model-based inconsistency detection  Including scalability and automation analysis  Reusable solution for automated processing of model information  with improved usability for developers Conclusion
  • 16. 16  Impact of chosen parameters for  Improve absolute execution time values, exploiting  Parallelization  Cloud infrastructure  Extension to an industrial setting Future Work
  • 17. Model-driven runtime inconsistency detection Questions? Find my Implementation on Github • Inconsistency Checking Framework (Dynamic Checking Service): https://github.com/derlehner/dyncs • Model Interaction Framework (Service-Oriented Management and Querying of Models): https://github.com/derlehner/somqm Contact me daniel.lehner@jku.at https://www.researchgate.net/profile/Daniel_Lehner 17
  • 18. Business Informatics Group Institute of Software Technology and Interactive Systems Vienna University of Technology Favoritenstraße 9-11/188-3, 1040 Vienna, Austria phone: +43 (1) 58801-18804 (secretary), fax: +43 (1) 58801-18896 office@big.tuwien.ac.at, www.big.tuwien.ac.at Daniel
  • 19. Showcase of self- driving car: Class Diagram
  • 20. Showcase of self-driving car: Activity Diagram