© 2009 Artisan Software Tools. All rights reserved. Testing Solutions with UML/SysML Andrew Stuart, Matthew Hause.

Slides:



Advertisements
Similar presentations
Model-Based Testing with Smartesting Jean-Pierre Schoch Sogetis Second Testing Academy 29 April 2009.
Advertisements

Integration of MBSE and Virtual Engineering for Detailed Design
Guaranteed Component Assembly with Round Trip Analysis for Energy Efficient High-integrity Multi-core Systems Artemis-AAL day 7 May, Budapest 1BME and.
Conformance Testing of MOST based Applications Towards Effective System Testing André Baresel, Michael Schmidt - DaimlerChrysler AG Contact:
UML Diagrams Jung Woo. What is UML? Standard language for specifying, visualizing, constructing, and documenting the artifacts of software systems, business.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
MotoHawk Training Model-Based Design of Embedded Systems.
OMG Systems Modeling Language (OMG SysML™) Matthew Hause ARTiSAN Software Tools Some slides reused from the OMG SysML™ Tutorial with permission.
UML Activity Diagrams In UML an activity diagram is used to display the sequence of actions They show the workflow from start to finish Detail the many.
1 Software Testing and Quality Assurance Lecture 12 - The Testing Perspective (Chapter 2, A Practical Guide to Testing Object-Oriented Software)
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
The Unified Software Development Process - Workflows Ivar Jacobson, Grady Booch, James Rumbaugh Addison Wesley, 1999.
1 © Wolfgang Pelz UML2 UML Part Two. 2 © Wolfgang Pelz UML2 Chapters Four & Twelve Interaction Diagrams.
© Copyright Eliyahu Brutman Programming Techniques Course.
November 18, 2004 Embedded System Design Flow Arkadeb Ghosal Alessandro Pinto Daniele Gasperini Alberto Sangiovanni-Vincentelli
© 2008 IBM Corporation Behavioral Models for Software Development Andrei Kirshin, Dolev Dotan, Alan Hartman January 2008.
Introduction to Software Testing
SysML: A Modeling Language for Systems of Systems
Unified Modeling Language(UML) BY
Process-oriented System Automation Executable Process Modeling & Process Automation.
UML Sequence Diagrams Michael L. Collard, Ph.D. Department of Computer Science Kent State University.
2005/05/25 Unified Modeling Lanauage 1 Introduction to Unified Modeling Language (UML) – Part One Ku-Yaw Chang Assistant Professor.
Free Mini Course: Applying SysML with MagicDraw
An Introduction to Software Architecture
© 2009 IBM Corporation Verification of embedded system specifications using collaborative simulation of SysML and Simulink models Ryo Kawahara*, Hiroaki.
Testing Workflow In the Unified Process and Agile/Scrum processes.
Object Management Group (OMG) Specifies open standards for every aspect of distributed computing Multiplatform Model Driven Architecture (MDA)
Software Engineering Research paper presentation Ali Ahmad Formal Approaches to Software Testing Hierarchal GUI Test Case Generation Using Automated Planning.
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
Paper written by Flavio Oquendo Presented by Ernesto Medina.
UML diagrams What is UML UML diagrams –Static modeoing –Dynamic modeling 1.
9-1 © Prentice Hall, 2004 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
9-1 © Prentice Hall, 2007 Chapter 9: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
An Introduction to the Unified Modeling Language
Object-Oriented Modeling: Static Models. Object-Oriented Modeling Model the system as interacting objects Model the system as interacting objects Match.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 8 Slide 1 System models.
SYSE 802 John D. McGregor Module 1 Session 2 Requirements Modeling in SysML.
1 Technical & Business Writing (ENG-715) Muhammad Bilal Bashir UIIT, Rawalpindi.
7-1 © Prentice Hall, 2007 Topic 7: Analysis Classes Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich, Jeffrey.
UML (Unified Modeling Language)
Effective SE Communication through Models and Representations David Long INCOSE Copyright © 2015 by D. Long. Published.
Analysis Classes. What Is an Analysis Class?  A class that represents initial data and behavior requirements, and whose software and hardware-oriented.
Fall 2007 Week 9: UML Overview MSIS 670: Object-Oriented Software Engineering.
T EST T OOLS U NIT VI This unit contains the overview of the test tools. Also prerequisites for applying these tools, tools selection and implementation.
1 © 2014 Atego. All Rights Reserved. Infrastructure Bridge Model Matthew Hause – Atego Chief Consulting Engineer
UML (Unified Modeling Language)
© Copyright 2010 Rockwell Collins, Inc. All rights reserved. Practical SysML Applications: A Method to Describe the Problem Space Ray Jorgensen David Lempia.
Systems Modeling Language (SysML). 2 What is SysML? A graphical modeling language in response to UML for Systems Engineering developed by the OMG, INCOSE,
Introduction to OOAD and UML
Method – Notation 8 Hours.
Introduction to UML.
Analysis Classes Unit 5.
UML Diagrams By Daniel Damaris Novarianto S..
Extending Model-Driven Engineering in Tango
Systems Analysis and Design With UML 2
Unified Modeling Language
UML Diagrams Jung Woo.
Software Design Methodology
SysML Training Crash Course
Behavioral Models for Software Development
Introduction to Software Testing
Introduction to UML.
Analysis models and design models
An Introduction to Software Architecture
Copyright © 2015, 2012, 2009 Elsevier Inc. All rights reserved.
Design Yaodong Bi.
Copyright © 2015, 2012, 2009 Elsevier Inc. All rights reserved.
Copyright © 2015, 2012, 2009 Elsevier Inc. All rights reserved.
Copyright © 2015, 2012, 2009 Elsevier Inc. All rights reserved.
Software Development Process Using UML Recap
Presentation transcript:

© 2009 Artisan Software Tools. All rights reserved. Testing Solutions with UML/SysML Andrew Stuart, Matthew Hause

© 2009 Artisan Software Tools. All rights reserved. 2 Agenda  Safety Critical Systems and Testing  SysML and Testing  Rail Case Study  Automotive Case Study  Conclusion

© 2009 Artisan Software Tools. All rights reserved. 3 Safety Critical Systems and Testing  The Problem −We are running out of time. −Systems are becoming more complex. −Time to market is decreasing. −Most important, safety critical systems must be properly tested.  The Solution −SysML and Model Based Systems Engineering (MBSE) −SysML supports modelling of the requirements, behaviour, structure, etc. −Can aid the verification, validation, and simulation of software, firmware and mechanical systems. −SysML can provide a practical solution of integrating testing into an MBSE approach.

© 2009 Artisan Software Tools. All rights reserved. 4 SysML Requirements Flow Down  Requirements are integrated into the model  Supports requirements hierarchies  Verify, Satisfy, Derive, Trace and Refine relationships

© 2009 Artisan Software Tools. All rights reserved. 5 Physical and Logical Structural Modelling  Parts shown by diamond notation, or by Parts Compartment  Compartments show properties of the block  Attributes are inherited from the parent

© 2009 Artisan Software Tools. All rights reserved. 6 Internal Block Diagram Shows parts (structural children) … … and ports (interaction points on blocks and parts) Supports integration of behavior and structure Port types Standard Ports Specify a set of operations and/or signals Typed by a UML interface Flow Ports Specify what can flow in or out of block/part Typed by a flow specification

© 2009 Artisan Software Tools. All rights reserved. 7 State Modelling  Models Complex state-based behaviour of system elements  Atomic, composite and concurrent states  Conditional behaviour

© 2009 Artisan Software Tools. All rights reserved. 8 Activity Modelling  Allows low level behavioural modelling of the system.  SysML Additions −«streaming» activities consume inputs after initialization −«continuous» flows −Probabilities −Interruptible regions

© 2009 Artisan Software Tools. All rights reserved. 9 Sequence Diagrams  Represents the interaction between collaborating parts of a system  Supports conditional behaviour, loops, parallel, etc.  Interactions can be messages, operations, etc.  Can be used to define test cases

© 2009 Artisan Software Tools. All rights reserved. 10 Parametric Diagram Defines parametric relationships between properties Constraint can be shown in compartment or in attached note

© 2009 Artisan Software Tools. All rights reserved. 11 Allocation Shown on IBD Allocations Allocation of activity invocation to parts shown in allocatedFrom compartment. Allocation of activity object nodes to Item flows shown via call-outs.

© 2009 Artisan Software Tools. All rights reserved. 12 Rail Case Study

© 2009 Artisan Software Tools. All rights reserved. 13 Radio Block Control (RBC) Validation Scenario  The RBC is responsible for continuous speed supervision and movement authority of the train. Safety Integrity Level 4 Product.  Eurobalise determines the Train Location and sends it to the RBC

© 2009 Artisan Software Tools. All rights reserved. 14 Traditional RBC Validation  Use case requirements model defined in Artisan −Analysis and design models used sequence and state diagrams  Flowcharts constructed from the model that capture all possible execution paths −Sequence diagrams (SD) generated for all valid paths. −Python scripts generated from the SD −Scripts exercised SUT −Not flexible when model changes

© 2009 Artisan Software Tools. All rights reserved. 15 Automated RBC Validation  Eliminates manual work −Excel files created automatically. Used as evidence.  Reduces human errors −Originally the files were hand-coded  Decreases the number of files used.  Enforces design standards.

© 2009 Artisan Software Tools. All rights reserved. 16 RBC Tool Integration  VB DLL reader imports from the model. .NET application manages imported information  Provides execution paths  Automatically produces documentation  Decreased validation costs by 75%!

© 2009 Artisan Software Tools. All rights reserved. 17 Automotive Case Study

© 2009 Artisan Software Tools. All rights reserved. 18 Automotive Platform Independent System Test  Test cases derived from use cases and modelled in sequence diagrams.  White box test cases can be derived from activity diagrams  Test cases automatically generated through a code generator and based on the model.  Executed on the test rig. −Results captured. −Documentation generated

© 2009 Artisan Software Tools. All rights reserved. 19 Testbench Overview  Provides a configurable remote test of the car thru the I/F  Interface to RTOS and AppUT through pre-defined test interface  Allows mapping of the test to the equipment to be used separately

© 2009 Artisan Software Tools. All rights reserved. 20 Testbench Tool Interaction  Dependencies show mapping between variables in test descriptions and parameters and signals performed using name matching  Library holds drivers for each platform.

© 2009 Artisan Software Tools. All rights reserved. 21 Automotive Tool Integration and Workflow

© 2009 Artisan Software Tools. All rights reserved. 22 Description of Automotive Model-based Testing  Shows how test scripts are abstracted in MBD  Scripts cross all levels; the models contain these perspectives.

© 2009 Artisan Software Tools. All rights reserved. 23 Standards for Model-based Testing

© 2009 Artisan Software Tools. All rights reserved. 24 UML 2.0 Testing Profile (U2TP) Test Architecture  Created in 2005 for modelling tests  Both case studies use this approach  Can make use of the SysML testcase stereotype.

© 2009 Artisan Software Tools. All rights reserved. 25 Test Case and Test Objective  Test context contains an arbiter and a scheduler (Previous slide)  Test case can be an operation or a behaviour  Test results can be pass, fail, error or inconclusive  Tests generally run using a sequence diagram  Automating test runs not included in U2TP, as it is tool dependent

© 2009 Artisan Software Tools. All rights reserved. 26 Conclusion  Test plans can and should be modelled  A model based approach provides the logical progression from: −Test Plan (and models) to, −Test Suite(s) (and models) to, −Test Case(s) (and models) to, −Test Scripts (and models)  Building models to test models and systems is more natural  ROI has been proven – in this instance saving 75% on testing

© 2009 Artisan Software Tools. All rights reserved. 27 Discussion and Comments