SlideShare a Scribd company logo
Model-Driven
Testing with UML
2.0 Presenter :
Ishara Amarasekera
Zhen Ru Dai
Contribution
Introduce a methodology of how to apply UML 2.0 Testing Profile
(U2TP) concepts to an existing UML system design model effectively
in order to retrieve a test design model.
“
Due to increasing complexity of today’s
software systems, the early integration of
testing into the development process
becomes more and more important. By
doing so, design mistakes and
implementation faults can be detected in
an early stage of the design process.
This allows reduction of time and costs.
Model
Driven
Testing
Model Driven
Architecture
⊙ Test design models might be transformed from system design
models directly. This enables the early integration of test
development into the overall development process.
⊙ The model-driven architecture approach defines system
functionality using a platform-independent model (PIM) using an
appropriate domain-specific language (DSL).
⊙ Then, given a platform model corresponding to CORBA, .NET,
the Web, etc.
⊙ PIM is translated to one or more platform-specific models (PSMs)
that computers can run.
⊙ In another transformation step, system code may also be derived
from the PSM.
Approaches to
Model-Driven
Testing
Approaches to
Model-Driven
Testing
⊙ The same abstraction in terms of platform independent, platform
specific modeling and system code generation can be applied to
test design models
⊙ Once the system design model is defined at PIM level, a platform
independent test design model (PIT) can be derived.
⊙ This model can be transformed either directly to test code or to a
platform specific test design model (PST)
⊙ The same transformation technology can be used for deriving PSTs
from the PSM.
⊙ After each transformation step, the test design model can be refined
and enriched with test specific properties.
UML 2.0
Testing
Profile
Use of UML 2.0
Testing Profile
⊙ UML is a visual language that supports design and development
of complex object-oriented systems.
⊙ As the system complexity grows, the need for solid testing
increases.
⊙ UML itself, even the newest version 2.0 provides no means to
describe a test model.
⊙ Thus, a UML 2.0 profile for the testing, called the UML 2.0
Testing Profile (U2TP), has been defined
⊙ U2TP bridges the gap between designers and testers by
providing a means for using UML for both system modeling and
test specification. This allows a re-use of UML design documents
for testing and enables test development in an early system
development phase.
⊙ The UML 2.0 Testing Profile provides concepts to develop test
specifications and test models for black-box testing.
⊙ The profile introduces four logical concept groups covering the
followings.
1. Test Architecture
2. Test Behavior
3. Test Data
4. Time
⊙ Together, these concepts define a modeling language for
visualizing, specifying, analyzing, constructing and documenting a
test system.
UML 2.0
Testing Profile
Test
Architecture
⊙ Test architecture concepts needed to specify the structural aspects
of a test system including the following items
⊙ Test context which allows users to group test cases, to describe a
corresponding test configuration and to define the test control
⊙ The System Under Test (SUT), where one or more objects within a
test specification can be identified as the SUT.
⊙ Test components, which are defined as objects within the test
system that can communicate with the SUT or other components to
realize the test behavior.
⊙ The scheduler, which controls test execution and test component.
Test Behavior
⊙ The test behavior specifies the actions and evaluations that are
necessary to evaluate the test objective.
⊙ The test objective describes the aim of a test.
⊙ UML interaction diagrams, state machines, and activity diagrams
can be used to define test stimuli, observations from the SUT, test
control/invocations, coordination and actions.
Test Data
⊙ UML 2.0 Testing Profile supports wildcards, data pools, data partitions,
data selectors, and coding rules.
⊙ Wildcards are very useful for the handling of unexpected events, or
events containing many different values.
⊙ Therefore, the UML 2.0 Testing Profile introduces wildcards allowing
the specification of:
(1) Any value, denoting any value out of a set of possible values,
and
(2) Any or omitted values, denoting any value or the lack of a value (in
the case where multiplicities range from 0 upwards).
⊙ Data pools, data partitions, and data selectors support the repeated
execution of test cases with different data values to stimulate the SUT
in various ways.
⊙ Timing concepts are provided to complete the concepts needed for
precise and complete test modeling.
⊙ Two new timing concepts added are in UML 2.0; Timers and Time
zones.
⊙ Timers, to manipulate and control test behavior as well as to
ensure the termination of test cases
⊙ Time zones, to group components within a distributed system,
thereby allowing the comparison of time events within the same
time zone.
Time
UML 2.0
Testing Profile
Model
Driven
Testing With
UML 2.0
Model Driven
Test
Development
Methodology
⊙ Step 1: Define a new UML package as the test package of the
system.
⊙ Step 2 : Import the classes and interfaces from the system design
package in order to get access to messages and data types in the
test specification.
⊙ Step 3: Start with the specification of the test architecture and
continue with test behavior specifications.
⊙ Test data and time are mostly already comprised in either the test
architecture (e.g. time zone or data pool) or test behavior (e.g. timer
or data partitioning) specifications.
Mandatories
and Optional
Test
Architecture
Mandatory:
⊙ Assign the classes (in a Class Diagram) or objects (in an Object
Diagram) you would like to test to SUT class/object.
⊙ Specify a test context class listing the test attributes and test
cases, also possible test control and test configuration.
Optional :
⊙ Define test components depend on their functionalities. Group the
classes/objects (except the SUT) to test component classes/objects.
⊙ Specify the test control In order to define the order of test case
execution.
E.g.: Each Activity illustrates one test case.
Activity Flow describes the test flow.
Use Case – Each Use case depicts a test case
⊙ Retrieve test configuration easily by means of existing Interaction
Diagrams.
If there is no Interaction Diagram provided, connect the test components
and SUT to an appropriate test configuration so that the configuration is
relevant for all test cases included in the test suite.
⊙ Assign time zones to the components if the test system is a distributed
system.
⊙ Provide coding rule information.
Mandatories
and Optional
Test
Architecture
Mandatory:
⊙ Specification of test cases
For Interaction Diagrams, change (i.e. rename or group) the
instances and assign them with stereotypes according to
their roles (i.e. test component or SUT).
For Use Case Diagrams or Activity Diagrams provided in the
system design model, the use cases and activities are
specified in additional Interaction Diagrams. Thus, for each
use case or activity, a test case should be specified.
⊙ Assigning verdicts at the end of each test case specification.
Usually, the verdict in a test case is set to “pass”.
Mandatories
and Optional
Test Behavior
Optional :
⊙ Define test objectives for each test case that is to be specified.
⊙ Obtain system behavior which are not used for the tests from the
default specifications.
Interaction Diagrams like Sequence Diagrams, State Machines or Activity
Diagrams should be used here.
Use wildcards to catch unexpected behavior
⊙ Derive Timers from time constraint specifications within a Sequence
Diagram or State Machine.
Mandatories
and Optional
Test Behavior
Test Design
Model
Transformation
⊙ Now the Test UML package is ready next, need a grouping
mechanism, which should be provided by the Test Directives Meta-
Model.
⊙ Test Derivative Model - The relationship between the objects
which should be grouped to test component is specified
⊙ The output test model consists of the test component and the SUT
instance.
Test Design
Model
Transformation
Conclusion
Test architecture and behavior can be specified for the test design
model by performing appropriate transformation rules on the different
system design diagrams by applying U2TP concepts .
Thanks!
Any questions?
You can find me at
@username &
user@mail.me

More Related Content

What's hot

UML and Case study
UML and Case study UML and Case study
UML and Case study
Mihika-QA
 
CS8592-OOAD Lecture Notes Unit-5
CS8592-OOAD Lecture Notes Unit-5 CS8592-OOAD Lecture Notes Unit-5
CS8592-OOAD Lecture Notes Unit-5
Gobinath Subramaniam
 
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
Luca Berardinelli
 
Target-based test path prioritization for UML activity diagram using weight a...
Target-based test path prioritization for UML activity diagram using weight a...Target-based test path prioritization for UML activity diagram using weight a...
Target-based test path prioritization for UML activity diagram using weight a...
IJECEIAES
 
PRFC SysML 1.4
PRFC SysML 1.4PRFC SysML 1.4
PRFC SysML 1.4
Pascal Roques
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9
koolkampus
 
uml reference package_diagram
uml reference package_diagramuml reference package_diagram
uml reference package_diagram
Mohamed Zakarya Abdelgawad
 
Object Oriented Testing
Object Oriented TestingObject Oriented Testing
Object Oriented Testing
AMITJain879
 
Object modeling
Object modelingObject modeling
Object modeling
Preeti Mishra
 
An Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning ApplicationsAn Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning Applications
butest
 
Case stydy cs701
Case stydy cs701 Case stydy cs701
Case stydy cs701
Dinkar Mishra
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
PRIANKA R
 
10.1.1.135.9447
10.1.1.135.944710.1.1.135.9447
10.1.1.135.9447
ravindravce
 
Structured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and DesignStructured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and Design
Motaz Saad
 
Modularizing Arcihtectures Using Dendrograms1
Modularizing Arcihtectures Using Dendrograms1Modularizing Arcihtectures Using Dendrograms1
Modularizing Arcihtectures Using Dendrograms1
victor tang
 
SECh910
SECh910SECh910
Ch10
Ch10Ch10
Ch10
phanleson
 
M03 2 Behavioral Diagrams
M03 2 Behavioral DiagramsM03 2 Behavioral Diagrams
M03 2 Behavioral Diagrams
Dang Tuan
 
Object Oriented Analysis & Design
Object Oriented Analysis & DesignObject Oriented Analysis & Design
Object Oriented Analysis & Design
vishykn
 
2.1.1 PROBLEM SOLVING & DESIGN
2.1.1 PROBLEM SOLVING & DESIGN2.1.1 PROBLEM SOLVING & DESIGN
2.1.1 PROBLEM SOLVING & DESIGN
Buxoo Abdullah
 

What's hot (20)

UML and Case study
UML and Case study UML and Case study
UML and Case study
 
CS8592-OOAD Lecture Notes Unit-5
CS8592-OOAD Lecture Notes Unit-5 CS8592-OOAD Lecture Notes Unit-5
CS8592-OOAD Lecture Notes Unit-5
 
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
fUML-Driven Design and Performance Analysis of Software Agents for Wireless S...
 
Target-based test path prioritization for UML activity diagram using weight a...
Target-based test path prioritization for UML activity diagram using weight a...Target-based test path prioritization for UML activity diagram using weight a...
Target-based test path prioritization for UML activity diagram using weight a...
 
PRFC SysML 1.4
PRFC SysML 1.4PRFC SysML 1.4
PRFC SysML 1.4
 
Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9Formal Specification in Software Engineering SE9
Formal Specification in Software Engineering SE9
 
uml reference package_diagram
uml reference package_diagramuml reference package_diagram
uml reference package_diagram
 
Object Oriented Testing
Object Oriented TestingObject Oriented Testing
Object Oriented Testing
 
Object modeling
Object modelingObject modeling
Object modeling
 
An Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning ApplicationsAn Approach to Software Testing of Machine Learning Applications
An Approach to Software Testing of Machine Learning Applications
 
Case stydy cs701
Case stydy cs701 Case stydy cs701
Case stydy cs701
 
Unit 1- OOAD ppt
Unit 1- OOAD  pptUnit 1- OOAD  ppt
Unit 1- OOAD ppt
 
10.1.1.135.9447
10.1.1.135.944710.1.1.135.9447
10.1.1.135.9447
 
Structured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and DesignStructured Vs, Object Oriented Analysis and Design
Structured Vs, Object Oriented Analysis and Design
 
Modularizing Arcihtectures Using Dendrograms1
Modularizing Arcihtectures Using Dendrograms1Modularizing Arcihtectures Using Dendrograms1
Modularizing Arcihtectures Using Dendrograms1
 
SECh910
SECh910SECh910
SECh910
 
Ch10
Ch10Ch10
Ch10
 
M03 2 Behavioral Diagrams
M03 2 Behavioral DiagramsM03 2 Behavioral Diagrams
M03 2 Behavioral Diagrams
 
Object Oriented Analysis & Design
Object Oriented Analysis & DesignObject Oriented Analysis & Design
Object Oriented Analysis & Design
 
2.1.1 PROBLEM SOLVING & DESIGN
2.1.1 PROBLEM SOLVING & DESIGN2.1.1 PROBLEM SOLVING & DESIGN
2.1.1 PROBLEM SOLVING & DESIGN
 

Similar to Model-Driven Testing with UML 2.0

11 Model-Driven Testing with UML 2
11 Model-Driven Testing with UML 211 Model-Driven Testing with UML 2
11 Model-Driven Testing with UML 2
Asanka Dilruk
 
Modeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDrawModeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDraw
Gregory Solovey
 
12 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 200912 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 2009
Pepe
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
Moataz Nabil
 
Model–driven system testing service oriented systems
Model–driven system testing service oriented systemsModel–driven system testing service oriented systems
Model–driven system testing service oriented systems
Rifad Mohamed
 
Unit iii
Unit iiiUnit iii
Unit iii
Jaya Prasanna
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
flufftailshop
 
Formal meth
Formal methFormal meth
Formal meth
memoalwandy
 
Testify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeedTestify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeed
Minh Nguyen
 
From use case to software architecture
From use case to software architectureFrom use case to software architecture
From use case to software architecture
Ahmad karawash
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
naina-rani
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
Novika Damai Yanti
 
types of testing with descriptions and examples
types of testing with descriptions and examplestypes of testing with descriptions and examples
types of testing with descriptions and examples
Mani Deepak Choudhry
 
Presentation Of Mbt Tools
Presentation Of Mbt ToolsPresentation Of Mbt Tools
Presentation Of Mbt Tools
Husnain Muhammad
 
12 bước phân tích hệ thống thông tin.
12 bước phân tích hệ thống thông tin.12 bước phân tích hệ thống thông tin.
12 bước phân tích hệ thống thông tin.
Toàn Nguyễn
 
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
Lola Burgueño
 
Cs8592 ooad unit 1
Cs8592 ooad unit 1Cs8592 ooad unit 1
Cs8592 ooad unit 1
VADUGANATHAND1
 
Cs8592 ooad unit 1
Cs8592 ooad unit 1Cs8592 ooad unit 1
Cs8592 ooad unit 1
MAYILVELKUMARPONNUSA
 
Minimal Testcase Generation for Object-Oriented Software with State Charts
Minimal Testcase Generation for Object-Oriented Software with State ChartsMinimal Testcase Generation for Object-Oriented Software with State Charts
Minimal Testcase Generation for Object-Oriented Software with State Charts
ijseajournal
 
fdocuments.in_unit-2-ooad.ppt
fdocuments.in_unit-2-ooad.pptfdocuments.in_unit-2-ooad.ppt
fdocuments.in_unit-2-ooad.ppt
RAJESH S
 

Similar to Model-Driven Testing with UML 2.0 (20)

11 Model-Driven Testing with UML 2
11 Model-Driven Testing with UML 211 Model-Driven Testing with UML 2
11 Model-Driven Testing with UML 2
 
Modeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDrawModeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDraw
 
12 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 200912 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 2009
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
Model–driven system testing service oriented systems
Model–driven system testing service oriented systemsModel–driven system testing service oriented systems
Model–driven system testing service oriented systems
 
Unit iii
Unit iiiUnit iii
Unit iii
 
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdfNunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
Nunit vs XUnit vs MSTest Differences Between These Unit Testing Frameworks.pdf
 
Formal meth
Formal methFormal meth
Formal meth
 
Testify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeedTestify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeed
 
From use case to software architecture
From use case to software architectureFrom use case to software architecture
From use case to software architecture
 
Object oriented methodologies
Object oriented methodologiesObject oriented methodologies
Object oriented methodologies
 
Test design techniques
Test design techniquesTest design techniques
Test design techniques
 
types of testing with descriptions and examples
types of testing with descriptions and examplestypes of testing with descriptions and examples
types of testing with descriptions and examples
 
Presentation Of Mbt Tools
Presentation Of Mbt ToolsPresentation Of Mbt Tools
Presentation Of Mbt Tools
 
12 bước phân tích hệ thống thông tin.
12 bước phân tích hệ thống thông tin.12 bước phân tích hệ thống thông tin.
12 bước phân tích hệ thống thông tin.
 
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
A Generic Neural Network Architecture to Infer Heterogeneous Model Transforma...
 
Cs8592 ooad unit 1
Cs8592 ooad unit 1Cs8592 ooad unit 1
Cs8592 ooad unit 1
 
Cs8592 ooad unit 1
Cs8592 ooad unit 1Cs8592 ooad unit 1
Cs8592 ooad unit 1
 
Minimal Testcase Generation for Object-Oriented Software with State Charts
Minimal Testcase Generation for Object-Oriented Software with State ChartsMinimal Testcase Generation for Object-Oriented Software with State Charts
Minimal Testcase Generation for Object-Oriented Software with State Charts
 
fdocuments.in_unit-2-ooad.ppt
fdocuments.in_unit-2-ooad.pptfdocuments.in_unit-2-ooad.ppt
fdocuments.in_unit-2-ooad.ppt
 

More from Ishara Amarasekera

Key Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapKey Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery Roadmap
Ishara Amarasekera
 
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptxUI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
Ishara Amarasekera
 
How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 steps
Ishara Amarasekera
 
iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application Tutorial
Ishara Amarasekera
 
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseA Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
Ishara Amarasekera
 
Activity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone AccelerometersActivity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone Accelerometers
Ishara Amarasekera
 
Layered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social networkLayered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social network
Ishara Amarasekera
 
Goal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided TourGoal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided Tour
Ishara Amarasekera
 
Feedback Queueing Models for Time Shared Systems
Feedback Queueing Models for Time Shared SystemsFeedback Queueing Models for Time Shared Systems
Feedback Queueing Models for Time Shared Systems
Ishara Amarasekera
 

More from Ishara Amarasekera (9)

Key Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery RoadmapKey Steps in Agile Software Delivery Roadmap
Key Steps in Agile Software Delivery Roadmap
 
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptxUI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
UI Evaluation for Mobile Dashboard based on Jakob Nielsen's Principles.pptx
 
How to write a simple java program in 10 steps
How to write a simple java program in 10 stepsHow to write a simple java program in 10 steps
How to write a simple java program in 10 steps
 
iOS Contact List Application Tutorial
iOS Contact List Application TutorialiOS Contact List Application Tutorial
iOS Contact List Application Tutorial
 
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column DatabaseA Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
A Common Database Approach for OLTP and OLAP Using an In-Memory Column Database
 
Activity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone AccelerometersActivity Recognition using Cell Phone Accelerometers
Activity Recognition using Cell Phone Accelerometers
 
Layered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social networkLayered programatical api framework for real time mobile social network
Layered programatical api framework for real time mobile social network
 
Goal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided TourGoal-Oriented Requirements Engineering: A Guided Tour
Goal-Oriented Requirements Engineering: A Guided Tour
 
Feedback Queueing Models for Time Shared Systems
Feedback Queueing Models for Time Shared SystemsFeedback Queueing Models for Time Shared Systems
Feedback Queueing Models for Time Shared Systems
 

Recently uploaded

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 

Recently uploaded (20)

Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 

Model-Driven Testing with UML 2.0

  • 1. Model-Driven Testing with UML 2.0 Presenter : Ishara Amarasekera Zhen Ru Dai
  • 2. Contribution Introduce a methodology of how to apply UML 2.0 Testing Profile (U2TP) concepts to an existing UML system design model effectively in order to retrieve a test design model.
  • 3. “ Due to increasing complexity of today’s software systems, the early integration of testing into the development process becomes more and more important. By doing so, design mistakes and implementation faults can be detected in an early stage of the design process. This allows reduction of time and costs.
  • 5. Model Driven Architecture ⊙ Test design models might be transformed from system design models directly. This enables the early integration of test development into the overall development process. ⊙ The model-driven architecture approach defines system functionality using a platform-independent model (PIM) using an appropriate domain-specific language (DSL). ⊙ Then, given a platform model corresponding to CORBA, .NET, the Web, etc. ⊙ PIM is translated to one or more platform-specific models (PSMs) that computers can run. ⊙ In another transformation step, system code may also be derived from the PSM.
  • 7. Approaches to Model-Driven Testing ⊙ The same abstraction in terms of platform independent, platform specific modeling and system code generation can be applied to test design models ⊙ Once the system design model is defined at PIM level, a platform independent test design model (PIT) can be derived. ⊙ This model can be transformed either directly to test code or to a platform specific test design model (PST) ⊙ The same transformation technology can be used for deriving PSTs from the PSM. ⊙ After each transformation step, the test design model can be refined and enriched with test specific properties.
  • 9. Use of UML 2.0 Testing Profile ⊙ UML is a visual language that supports design and development of complex object-oriented systems. ⊙ As the system complexity grows, the need for solid testing increases. ⊙ UML itself, even the newest version 2.0 provides no means to describe a test model. ⊙ Thus, a UML 2.0 profile for the testing, called the UML 2.0 Testing Profile (U2TP), has been defined ⊙ U2TP bridges the gap between designers and testers by providing a means for using UML for both system modeling and test specification. This allows a re-use of UML design documents for testing and enables test development in an early system development phase.
  • 10. ⊙ The UML 2.0 Testing Profile provides concepts to develop test specifications and test models for black-box testing. ⊙ The profile introduces four logical concept groups covering the followings. 1. Test Architecture 2. Test Behavior 3. Test Data 4. Time ⊙ Together, these concepts define a modeling language for visualizing, specifying, analyzing, constructing and documenting a test system. UML 2.0 Testing Profile
  • 11. Test Architecture ⊙ Test architecture concepts needed to specify the structural aspects of a test system including the following items ⊙ Test context which allows users to group test cases, to describe a corresponding test configuration and to define the test control ⊙ The System Under Test (SUT), where one or more objects within a test specification can be identified as the SUT. ⊙ Test components, which are defined as objects within the test system that can communicate with the SUT or other components to realize the test behavior. ⊙ The scheduler, which controls test execution and test component.
  • 12. Test Behavior ⊙ The test behavior specifies the actions and evaluations that are necessary to evaluate the test objective. ⊙ The test objective describes the aim of a test. ⊙ UML interaction diagrams, state machines, and activity diagrams can be used to define test stimuli, observations from the SUT, test control/invocations, coordination and actions.
  • 13. Test Data ⊙ UML 2.0 Testing Profile supports wildcards, data pools, data partitions, data selectors, and coding rules. ⊙ Wildcards are very useful for the handling of unexpected events, or events containing many different values. ⊙ Therefore, the UML 2.0 Testing Profile introduces wildcards allowing the specification of: (1) Any value, denoting any value out of a set of possible values, and (2) Any or omitted values, denoting any value or the lack of a value (in the case where multiplicities range from 0 upwards). ⊙ Data pools, data partitions, and data selectors support the repeated execution of test cases with different data values to stimulate the SUT in various ways.
  • 14. ⊙ Timing concepts are provided to complete the concepts needed for precise and complete test modeling. ⊙ Two new timing concepts added are in UML 2.0; Timers and Time zones. ⊙ Timers, to manipulate and control test behavior as well as to ensure the termination of test cases ⊙ Time zones, to group components within a distributed system, thereby allowing the comparison of time events within the same time zone. Time
  • 17. Model Driven Test Development Methodology ⊙ Step 1: Define a new UML package as the test package of the system. ⊙ Step 2 : Import the classes and interfaces from the system design package in order to get access to messages and data types in the test specification. ⊙ Step 3: Start with the specification of the test architecture and continue with test behavior specifications. ⊙ Test data and time are mostly already comprised in either the test architecture (e.g. time zone or data pool) or test behavior (e.g. timer or data partitioning) specifications.
  • 18. Mandatories and Optional Test Architecture Mandatory: ⊙ Assign the classes (in a Class Diagram) or objects (in an Object Diagram) you would like to test to SUT class/object. ⊙ Specify a test context class listing the test attributes and test cases, also possible test control and test configuration.
  • 19. Optional : ⊙ Define test components depend on their functionalities. Group the classes/objects (except the SUT) to test component classes/objects. ⊙ Specify the test control In order to define the order of test case execution. E.g.: Each Activity illustrates one test case. Activity Flow describes the test flow. Use Case – Each Use case depicts a test case ⊙ Retrieve test configuration easily by means of existing Interaction Diagrams. If there is no Interaction Diagram provided, connect the test components and SUT to an appropriate test configuration so that the configuration is relevant for all test cases included in the test suite. ⊙ Assign time zones to the components if the test system is a distributed system. ⊙ Provide coding rule information. Mandatories and Optional Test Architecture
  • 20. Mandatory: ⊙ Specification of test cases For Interaction Diagrams, change (i.e. rename or group) the instances and assign them with stereotypes according to their roles (i.e. test component or SUT). For Use Case Diagrams or Activity Diagrams provided in the system design model, the use cases and activities are specified in additional Interaction Diagrams. Thus, for each use case or activity, a test case should be specified. ⊙ Assigning verdicts at the end of each test case specification. Usually, the verdict in a test case is set to “pass”. Mandatories and Optional Test Behavior
  • 21. Optional : ⊙ Define test objectives for each test case that is to be specified. ⊙ Obtain system behavior which are not used for the tests from the default specifications. Interaction Diagrams like Sequence Diagrams, State Machines or Activity Diagrams should be used here. Use wildcards to catch unexpected behavior ⊙ Derive Timers from time constraint specifications within a Sequence Diagram or State Machine. Mandatories and Optional Test Behavior
  • 22. Test Design Model Transformation ⊙ Now the Test UML package is ready next, need a grouping mechanism, which should be provided by the Test Directives Meta- Model. ⊙ Test Derivative Model - The relationship between the objects which should be grouped to test component is specified ⊙ The output test model consists of the test component and the SUT instance.
  • 24. Conclusion Test architecture and behavior can be specified for the test design model by performing appropriate transformation rules on the different system design diagrams by applying U2TP concepts .
  • 25. Thanks! Any questions? You can find me at @username & user@mail.me