SlideShare a Scribd company logo
1 of 15
Presented By :
Dilruk G.A. (148209B)
Jagoda S.D.
(148214K)
Friday, April 24, 2015 1
Model-Driven Testing with
UML 2.0
Zhen Ru Dai
Fraunhofer FOKUS, Kaiserin-Augusta-Allee 31, 10589 Berlin, Germany
dai@fokus.fraunhofer.de
Index …
 Introduction
 Approaches to Model-Driven Testing
 The UML 2.0 Testing Profile (U2TP)
 A Methodology on Model-Driven Test
Development
 Test Design Model Transformation
 Summary
Friday, April 24, 2015 2
Introduction
 The Model-Driven Architecture (MDA) is not only
about system modeling.
 The early integration of testing into the
development process becomes more and more
important.
 U2TP bridges the gap between designers and
testers by providing a means for using UML for
both system modeling and test specification.
Friday, April 24, 2015 3
Approaches to Model-Driven Testing
Friday, April 24, 2015 4
The UML 2.0 Testing Profile
(U2TP)
 The Architecture Concepts
 System Under Test (SUT) – One or More Object
 Test Components – Objects within test system
 Test Context - Message between components
 Scheduler - Control the test execution and test components
 The Behavior Concepts
 State Machines and Activity Diagrams - define test stimuli,
observations, test control/invocations, coordination and
actions
 Test Case – Normative test behavior is specified
 Validation Action - performed by a local test component to
inform the arbiter about its local test verdict
 Test Verdict – Result of the executed test (pass, inconclusive,
etc.) Friday, April 24, 2015 5
The UML 2.0 Testing Profile
(U2TP)
 Test Data Concepts
 Wildcards– Handle unexpected events, or events containing many
different values
 Data pools – Associated with test context and include concrete test
data
 Data Selectors - Operations to retrieve test data from the data pool or
data partitions
 Coding Rules - Define the encoding and decoding of test data when
communicating with the SUT
 Time Concepts
 Group defines concepts to constrain and control test behavior with
regard to time
 Timers – Needed to manipulate and control test behavior as well as to
ensure the termination of test cases
 Time Zones – Used to group components within a distributed system,
allowing the comparison of time events within the same time zone
Friday, April 24, 2015 6
A Methodology on MDT Development
 Following must consider when transforming system
design model to test design model
 Define a new UML package as the test package of the system
 Import the classes and interfaces from system design package to test
pkg.
 Start with the test architecture and continue with test behavior
specification
 Two categories of Issues regarding test architecture
and test behavior
 Mandatories– Essential for a test design model with U2TP
 E.g. : SUT, Test Context
 Optional– Specific to test requirement and therefore not always
needed
 E.g. : test control, timers
 Additionally, there are optional and mandatory concepts which can
derive directly from existing system designFriday, April 24, 2015 7
U2TP Concepts & Methodology
on Test Design Model
Development
Friday, April 24, 2015 8
A Methodology on MDT Development
 Test Architecture
 Mandatory
 Assign the classes (in Class diagram) or objects (in Object Diagram) to SUT
 Specify test context listing the test attributes and test cases, also possible test
control and test configuration
 Optional
 Group the classes/objects (except SUT) to define test component – Not needed
for Unit Tests
 To Define the order of the test case execution use the test control
 Activity Diagram – one activity means one test case and activity flow is test flow
in test control specification
 Use Case Diagram – one use case means one test case
 Interaction Diagram use for the Test configuration
 Whenever two components exchange message each other, assign a channel
between them.
 Assign time zones if the test system is a distributed one.
 Provide Coding rule information
Friday, April 24, 2015 9
A Methodology on MDT Development
 Test Behavior
 Mandatory
 Use Interaction Diagrams for the specification of test case. Change the
instances and assign them with stereotype according to their roles.
 Assign verdicts at the end of each test case specification. Usually this is set to
pass
 Optional
 Define test objectives for each test case that is to be specified
 System behavior which are not used for tests should be taken for default.
 Interactions Diagrams like Sequence Diagrams, State Machiens or Activity
Diargrams should use to define this. Verdict Settings for this is either fail or
inconclusive.
 Use wildcards to catch unexpected behavior
 Timers should be derived from time constraint specifications within a State
Machine or Sequence Diagram
Friday, April 24, 2015 10
Test Design Model
Transformation
 Meta-model based transformation
◦ Source meta model is the UML Meta-Model and
Target is the U2TP Meta-Model
 Every mechanism cannot be performed by
transformation such as grouped the test
components or SUT
 Hence use mechanism called test directives and
its meta-model is Test Directive Meta-Model.
 Transformation rules applied to both UML & Test
Directive meta-model to create U2TP meta-
model
 All 3 models are based on MOF (Meta-Object
Facility is an Object Management Group (OMG)
standard for model-driven engineering)
Friday, April 24, 2015 11
Test Design Model
Transformation
Friday, April 24, 2015 12
Test Design Model
Transformation
 Used aspect-oriented, declarative or
pattern-based language to the
Transformation.
 Transformation Rules used for describe
the correspondence between pattern of
elements in source model and target
model.
 Patterns are reusable definitions.
 When patterns are used in the source of
a rule it is an query, but when it is used
in the target, it acts as a template.
 Tracking relationships associate the
source model elements and the target.
Friday, April 24, 2015 13
Test Transformation Example
Friday, April 24, 2015 14
Friday, April 24, 2015 15

More Related Content

What's hot

IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
ijceronline
 
Assessment 2 descriptor
Assessment 2  descriptorAssessment 2  descriptor
Assessment 2 descriptor
Praneel Chand
 
Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Calibration and validation model (Simulation )
Calibration and validation model (Simulation )
Rajan Kandel
 
A study on the efficiency of a test analysis method utilizing test-categories...
A study on the efficiency of a test analysis method utilizing test-categories...A study on the efficiency of a test analysis method utilizing test-categories...
A study on the efficiency of a test analysis method utilizing test-categories...
Tsuyoshi Yumoto
 

What's hot (20)

Testing
TestingTesting
Testing
 
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...IJCER (www.ijceronline.com) International Journal of computational Engineerin...
IJCER (www.ijceronline.com) International Journal of computational Engineerin...
 
SE18_Lec 03_ RUP
SE18_Lec 03_ RUPSE18_Lec 03_ RUP
SE18_Lec 03_ RUP
 
Test Techniques
Test TechniquesTest Techniques
Test Techniques
 
Assessment 2 descriptor
Assessment 2  descriptorAssessment 2  descriptor
Assessment 2 descriptor
 
Test software use case
Test software use caseTest software use case
Test software use case
 
Calibration and validation model (Simulation )
Calibration and validation model (Simulation )Calibration and validation model (Simulation )
Calibration and validation model (Simulation )
 
MuFinal
MuFinalMuFinal
MuFinal
 
Thetheoryofsoftwaretesting
ThetheoryofsoftwaretestingThetheoryofsoftwaretesting
Thetheoryofsoftwaretesting
 
Chapter 3 - The Generic Test Automation Architecture
Chapter 3 - The Generic Test Automation Architecture Chapter 3 - The Generic Test Automation Architecture
Chapter 3 - The Generic Test Automation Architecture
 
Bd36334337
Bd36334337Bd36334337
Bd36334337
 
A study on the efficiency of a test analysis method utilizing test-categories...
A study on the efficiency of a test analysis method utilizing test-categories...A study on the efficiency of a test analysis method utilizing test-categories...
A study on the efficiency of a test analysis method utilizing test-categories...
 
Zmitrowicz Test Strategy Test Forum Milan 2019
Zmitrowicz Test Strategy Test Forum Milan 2019Zmitrowicz Test Strategy Test Forum Milan 2019
Zmitrowicz Test Strategy Test Forum Milan 2019
 
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.
A Test Analysis Method for Black Box Testing Using AUT and Fault Knowledge.
 
Validation and verification
Validation and verificationValidation and verification
Validation and verification
 
Test cases
Test casesTest cases
Test cases
 
Dynamic analysis in Software Testing
Dynamic analysis in Software TestingDynamic analysis in Software Testing
Dynamic analysis in Software Testing
 
ScioTalks | Coverage Based Testing
ScioTalks | Coverage Based TestingScioTalks | Coverage Based Testing
ScioTalks | Coverage Based Testing
 
Peter Zimmerer - Passion For Testing, By Examples - EuroSTAR 2010
Peter Zimmerer - Passion For Testing, By Examples - EuroSTAR 2010Peter Zimmerer - Passion For Testing, By Examples - EuroSTAR 2010
Peter Zimmerer - Passion For Testing, By Examples - EuroSTAR 2010
 
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
EXPERIMENTAL EVALUATION AND RESULT DISCUSSION OF METAMORPHIC TESTING AUTOMATI...
 

Viewers also liked

‫فايروس الاختصارات
‫فايروس الاختصارات ‫فايروس الاختصارات
‫فايروس الاختصارات
Groh-alroh
 
su vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doaisu vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doai
menngan
 
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
 
sự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoáisự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoái
menngan
 
karakteristik komponen komponenn
karakteristik komponen komponennkarakteristik komponen komponenn
karakteristik komponen komponenn
rosmariasinurat19
 

Viewers also liked (20)

Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015Health recordsandinformationmanagersbill2015
Health recordsandinformationmanagersbill2015
 
Evaluation question 5
Evaluation question 5Evaluation question 5
Evaluation question 5
 
Evaluation question 5
Evaluation question 5Evaluation question 5
Evaluation question 5
 
Displays for advertising
Displays for advertisingDisplays for advertising
Displays for advertising
 
‫فايروس الاختصارات
‫فايروس الاختصارات ‫فايروس الاختصارات
‫فايروس الاختصارات
 
Military service in Swaziland
Military service in SwazilandMilitary service in Swaziland
Military service in Swaziland
 
su vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doaisu vab dong cua ti gia hoi doai
su vab dong cua ti gia hoi doai
 
Potassium humte
Potassium humtePotassium humte
Potassium humte
 
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
 
BitonicSortSIMD
BitonicSortSIMDBitonicSortSIMD
BitonicSortSIMD
 
Dracula Presentation with Answers
Dracula Presentation with AnswersDracula Presentation with Answers
Dracula Presentation with Answers
 
Day 6
Day 6Day 6
Day 6
 
销售人员手册080905
销售人员手册080905销售人员手册080905
销售人员手册080905
 
sự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoáisự vận động của tỷ giá hối đoái
sự vận động của tỷ giá hối đoái
 
SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表SITCON2014 LT 快倒的座位表
SITCON2014 LT 快倒的座位表
 
La comida marroquí
La comida marroquíLa comida marroquí
La comida marroquí
 
HydraFS
HydraFSHydraFS
HydraFS
 
La ciudad de tanger
La ciudad de tanger La ciudad de tanger
La ciudad de tanger
 
karakteristik komponen komponenn
karakteristik komponen komponennkarakteristik komponen komponenn
karakteristik komponen komponenn
 
Bitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array ProcessorBitonic Sort in Shared SIMD Array Processor
Bitonic Sort in Shared SIMD Array Processor
 

Similar to Model-Driven Testing with UML 2.0

SAP Testing Services
SAP Testing ServicesSAP Testing Services
SAP Testing Services
r_shanki
 
Generation and Optimization of Test cases for Object-Oriented Software Using ...
Generation and Optimization of Test cases for Object-Oriented Software Using ...Generation and Optimization of Test cases for Object-Oriented Software Using ...
Generation and Optimization of Test cases for Object-Oriented Software Using ...
cscpconf
 

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

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
 
Modeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDrawModeling and Testing Dovetail in MagicDraw
Modeling and Testing Dovetail in MagicDraw
 
How To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test AutomationHow To Transform the Manual Testing Process to Incorporate Test Automation
How To Transform the Manual Testing Process to Incorporate Test Automation
 
Prioritizing Test Cases for Regression Testing A Model Based Approach
Prioritizing Test Cases for Regression Testing A Model Based ApproachPrioritizing Test Cases for Regression Testing A Model Based Approach
Prioritizing Test Cases for Regression Testing A Model Based Approach
 
Testify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeedTestify smart testoptimization-ecfeed
Testify smart testoptimization-ecfeed
 
Formal meth
Formal methFormal meth
Formal meth
 
Ijsea04031006
Ijsea04031006Ijsea04031006
Ijsea04031006
 
power point presentation of software testing amravati.pptx
power point presentation of software testing amravati.pptxpower point presentation of software testing amravati.pptx
power point presentation of software testing amravati.pptx
 
Software Engineering (Testing Activities, Management, and Automation)
Software Engineering (Testing Activities, Management, and Automation)Software Engineering (Testing Activities, Management, and Automation)
Software Engineering (Testing Activities, Management, and Automation)
 
SAP Testing Services
SAP Testing ServicesSAP Testing Services
SAP Testing Services
 
Qa documentation pp
Qa documentation ppQa documentation pp
Qa documentation pp
 
Generation and Optimization of Test cases for Object-Oriented Software Using ...
Generation and Optimization of Test cases for Object-Oriented Software Using ...Generation and Optimization of Test cases for Object-Oriented Software Using ...
Generation and Optimization of Test cases for Object-Oriented Software Using ...
 
Test Director Ppt Training
Test Director Ppt TrainingTest Director Ppt Training
Test Director Ppt Training
 
Introduction to testing.
Introduction to testing.Introduction to testing.
Introduction to testing.
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
12 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 200912 Rational Solo Pruebas 2009
12 Rational Solo Pruebas 2009
 
MTLM Visual Studio 2010 ALM workshop - day1
MTLM Visual Studio 2010 ALM workshop  - day1MTLM Visual Studio 2010 ALM workshop  - day1
MTLM Visual Studio 2010 ALM workshop - day1
 
Test automation wipro
Test automation   wiproTest automation   wipro
Test automation wipro
 
UNIT V TESTING.pptx
UNIT V TESTING.pptxUNIT V TESTING.pptx
UNIT V TESTING.pptx
 
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
Predicting Machine Learning Pipeline Runtimes in the Context of Automated Mac...
 

More from Asanka Dilruk (6)

oracle tables
oracle tablesoracle tables
oracle tables
 
Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs Software architecture quality attributes & Trade-offs
Software architecture quality attributes & Trade-offs
 
Agile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical StudyAgile Requirements Engineering Practices: An Empirical Study
Agile Requirements Engineering Practices: An Empirical Study
 
Oracle DB Performance Tuning Tips
Oracle DB Performance Tuning TipsOracle DB Performance Tuning Tips
Oracle DB Performance Tuning Tips
 
Understanding Android Security
Understanding Android SecurityUnderstanding Android Security
Understanding Android Security
 
Windows OS Architecture in Summery
Windows OS Architecture in SummeryWindows OS Architecture in Summery
Windows OS Architecture in Summery
 

Recently uploaded

AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 

Recently uploaded (20)

Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
MarTech Trend 2024 Book : Marketing Technology Trends (2024 Edition) How Data...
 
Define the academic and professional writing..pdf
Define the academic and professional writing..pdfDefine the academic and professional writing..pdf
Define the academic and professional writing..pdf
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdfPayment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
Payment Gateway Testing Simplified_ A Step-by-Step Guide for Beginners.pdf
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Software Quality Assurance Interview Questions
Software Quality Assurance Interview QuestionsSoftware Quality Assurance Interview Questions
Software Quality Assurance Interview Questions
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 

Model-Driven Testing with UML 2.0

  • 1. Presented By : Dilruk G.A. (148209B) Jagoda S.D. (148214K) Friday, April 24, 2015 1 Model-Driven Testing with UML 2.0 Zhen Ru Dai Fraunhofer FOKUS, Kaiserin-Augusta-Allee 31, 10589 Berlin, Germany dai@fokus.fraunhofer.de
  • 2. Index …  Introduction  Approaches to Model-Driven Testing  The UML 2.0 Testing Profile (U2TP)  A Methodology on Model-Driven Test Development  Test Design Model Transformation  Summary Friday, April 24, 2015 2
  • 3. Introduction  The Model-Driven Architecture (MDA) is not only about system modeling.  The early integration of testing into the development process becomes more and more important.  U2TP bridges the gap between designers and testers by providing a means for using UML for both system modeling and test specification. Friday, April 24, 2015 3
  • 4. Approaches to Model-Driven Testing Friday, April 24, 2015 4
  • 5. The UML 2.0 Testing Profile (U2TP)  The Architecture Concepts  System Under Test (SUT) – One or More Object  Test Components – Objects within test system  Test Context - Message between components  Scheduler - Control the test execution and test components  The Behavior Concepts  State Machines and Activity Diagrams - define test stimuli, observations, test control/invocations, coordination and actions  Test Case – Normative test behavior is specified  Validation Action - performed by a local test component to inform the arbiter about its local test verdict  Test Verdict – Result of the executed test (pass, inconclusive, etc.) Friday, April 24, 2015 5
  • 6. The UML 2.0 Testing Profile (U2TP)  Test Data Concepts  Wildcards– Handle unexpected events, or events containing many different values  Data pools – Associated with test context and include concrete test data  Data Selectors - Operations to retrieve test data from the data pool or data partitions  Coding Rules - Define the encoding and decoding of test data when communicating with the SUT  Time Concepts  Group defines concepts to constrain and control test behavior with regard to time  Timers – Needed to manipulate and control test behavior as well as to ensure the termination of test cases  Time Zones – Used to group components within a distributed system, allowing the comparison of time events within the same time zone Friday, April 24, 2015 6
  • 7. A Methodology on MDT Development  Following must consider when transforming system design model to test design model  Define a new UML package as the test package of the system  Import the classes and interfaces from system design package to test pkg.  Start with the test architecture and continue with test behavior specification  Two categories of Issues regarding test architecture and test behavior  Mandatories– Essential for a test design model with U2TP  E.g. : SUT, Test Context  Optional– Specific to test requirement and therefore not always needed  E.g. : test control, timers  Additionally, there are optional and mandatory concepts which can derive directly from existing system designFriday, April 24, 2015 7
  • 8. U2TP Concepts & Methodology on Test Design Model Development Friday, April 24, 2015 8
  • 9. A Methodology on MDT Development  Test Architecture  Mandatory  Assign the classes (in Class diagram) or objects (in Object Diagram) to SUT  Specify test context listing the test attributes and test cases, also possible test control and test configuration  Optional  Group the classes/objects (except SUT) to define test component – Not needed for Unit Tests  To Define the order of the test case execution use the test control  Activity Diagram – one activity means one test case and activity flow is test flow in test control specification  Use Case Diagram – one use case means one test case  Interaction Diagram use for the Test configuration  Whenever two components exchange message each other, assign a channel between them.  Assign time zones if the test system is a distributed one.  Provide Coding rule information Friday, April 24, 2015 9
  • 10. A Methodology on MDT Development  Test Behavior  Mandatory  Use Interaction Diagrams for the specification of test case. Change the instances and assign them with stereotype according to their roles.  Assign verdicts at the end of each test case specification. Usually this is set to pass  Optional  Define test objectives for each test case that is to be specified  System behavior which are not used for tests should be taken for default.  Interactions Diagrams like Sequence Diagrams, State Machiens or Activity Diargrams should use to define this. Verdict Settings for this is either fail or inconclusive.  Use wildcards to catch unexpected behavior  Timers should be derived from time constraint specifications within a State Machine or Sequence Diagram Friday, April 24, 2015 10
  • 11. Test Design Model Transformation  Meta-model based transformation ◦ Source meta model is the UML Meta-Model and Target is the U2TP Meta-Model  Every mechanism cannot be performed by transformation such as grouped the test components or SUT  Hence use mechanism called test directives and its meta-model is Test Directive Meta-Model.  Transformation rules applied to both UML & Test Directive meta-model to create U2TP meta- model  All 3 models are based on MOF (Meta-Object Facility is an Object Management Group (OMG) standard for model-driven engineering) Friday, April 24, 2015 11
  • 13. Test Design Model Transformation  Used aspect-oriented, declarative or pattern-based language to the Transformation.  Transformation Rules used for describe the correspondence between pattern of elements in source model and target model.  Patterns are reusable definitions.  When patterns are used in the source of a rule it is an query, but when it is used in the target, it acts as a template.  Tracking relationships associate the source model elements and the target. Friday, April 24, 2015 13
  • 15. Friday, April 24, 2015 15

Editor's Notes

  1. If I ask a question that how many of you aware about UML system modeling, probably all of you raised your hands saying we know. But when I ask how many of you aware about UML test profile and how to use UML for test modeling, most of you may not aware about this. So in this paper the main contribution is that describing a methodology for how to apply UML 2.0 Test profile concepts to an existing UML system design model effectively in order to retrieve a test design model. So The MDA is not only about system modelling But also can be applied to test modelling. As in the software development process steps, testing and test code generation is done at the last, but it is worth to have early integration of testing into development process. This allow reduction of time and cost. So from the UML 2.0 version it was introduced UML test profile to model system testing, U2TP bridges ,..
  2. platform independent system design models (PIM) platform specific system design models (PSM) platform independent test design model (PIT) platform specific test design model (PST)
  3. The UML 2.0 Testing Profile provides concepts to develop test specifications and test models for black-box testing. U2TP introduce four main logical concepts which are architeture concepts, behavir concepts, test data concepts and time concepts. Together, these concepts define a modeling language for visualizing, specifying,analyzing, constructing and documenting a test system. One or more objects can be identified as the System Under Test (SUT). Test components are objects within a test system which can communicate with the SUT or other components to realize the test behavior. Test context ….. The scheduler controls the test execution and test components. It is responsible for the creation of test components, a synchronized start of the different test components, and the detection of test case termination.