Automated Testing Tool for UML Behavioral Descriptions

Slides:



Advertisements
Similar presentations
Software Testing Techniques
Advertisements

Unit-V testing strategies and tactics.
Defect testing Objectives
การทดสอบโปรแกรม กระบวนการในการทดสอบ
DETAILED DESIGN, IMPLEMENTATIONA AND TESTING Instructor: Dr. Hany H. Ammar Dept. of Computer Science and Electrical Engineering, WVU.
1 Integration Testing CS 4311 I. Burnstein. Practical Software Testing, Springer-Verlag, 2003.
A Brief Introduction. Acknowledgements  The material in this tutorial is based in part on: Concurrency: State Models & Java Programming, by Jeff Magee.
CMSC 345, Version 11/07 SD Vick from S. Mitchell Software Testing.
Chapter 17 Software Testing Techniques
Chapter 9 Testing the System, part 2. Testing  Unit testing White (glass) box Code walkthroughs and inspections  Integration testing Bottom-up Top-down.
IMSE Week 18 White Box or Structural Testing Reading:Sommerville (4th edition) ch 22 orPressman (4th edition) ch 16.
CS 425/625 Software Engineering Software Testing
Tony Hoare ¢ Turing Award 1980 ¢ Program Verification ¢ Algol 60 ¢ Axiomatic Semantics ¢ Floyd-Hoare Logic ¢ Concurrent Programs ¢ Communicating Sequential.
Designing Unit Test Cases Vivek Gulati COMP595VAV Dept. of Computer Science California State University, Northridge.
Software Testing & Strategies
Andrew SuttonKent State University1 Software Modeling Andrew Sutton Department of Computer Science Kent State University.
1 Software Testing Techniques CIS 375 Bruce R. Maxim UM-Dearborn.
Chapter 13 & 14 Software Testing Strategies and Techniques
Testing Processes of Web Applications Susan Cohen.
Testing Dr. Andrew Wallace PhD BEng(hons) EurIng
CPIS 357 Software Quality & Testing
Introduction Telerik Software Academy Software Quality Assurance.
CMSC 345 Fall 2000 Unit Testing. The testing process.
Object Oriented Design and Programming Alan Goude Room: Sheaf 9323.
Testing Basics of Testing Presented by: Vijay.C.G – Glister Tech.
Software Engineering Research paper presentation Ali Ahmad Formal Approaches to Software Testing Hierarchal GUI Test Case Generation Using Automated Planning.
Software Testing. 2 CMSC 345, Version 4/12 Topics The testing process  unit testing  integration and system testing  acceptance testing Test case planning.
1 UML Basic Training. UML Basic training2 Agenda  Definitions: requirements, design  Basics of Unified Modeling Language 1.4  SysML.
Unit Testing 101 Black Box v. White Box. Definition of V&V Verification - is the product correct Validation - is it the correct product.
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
Copyright © 2013 Curt Hill UML Unified Modeling Language.
Computing and SE II Chapter 9: Design Methods and Design Models Er-Yu Ding Software Institute, NJU.
Unified Modeling Language. Object Oriented Methods ► What are object-oriented (OO) methods?  OO methods provide a set of techniques for analyzing, decomposing,
The UML Formal Methods for SoC Design Sorin Manolache
Software Engineering1  Verification: The software should conform to its specification  Validation: The software should do what the user really requires.
CS451 Lecture 10: Software Testing Yugi Lee STB #555 (816)
Object-Oriented Systems. Goals Object-Oriented Methodologies – The Rumbaugh et al. OMT – The Booch methodology – Jacobson's methodologies.
VI SEM CSE UNIT IV SOFTWARE ENGINEERING PROJECT MANAGEMENT TESTING STRATEGIES By Mr. Vaibhav V. Bhujade DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING DMIETR,
Software Testing Reference: Software Engineering, Ian Sommerville, 6 th edition, Chapter 20.
Defect testing Testing programs to establish the presence of system defects.
Modified from Sommerville’s originalsSoftware Engineering, 7th edition. Chapter 14 Slide 1 Object-Oriented Design.
Introduction to OOAD and UML
Slide 1 Unified Modeling Language, Version 2.0 Object-Oriented SAD.
Chapter 17 Software Testing Techniques
Introduction to UML.
Software Testing Strategies for building test group
Software Testing.
UML Diagrams By Daniel Damaris Novarianto S..
Evolution of UML.
Rekayasa Perangkat Lunak Part-13
Software Testing Techniques
IS301 – Software Engineering V:
University of Central Florida COP 3330 Object Oriented Programming
UML Diagrams Jung Woo.
Chapter 13 & 14 Software Testing Strategies and Techniques
WHITEBOX TESTING APPROACH
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Introduction to UML.
Static Testing Static testing refers to testing that takes place without Execution - examining and reviewing it. Dynamic Testing Dynamic testing is what.
Software testing.
Chapter 10 – Software Testing
Dynamic Modeling Lecture # 37.
Test Case Test case Describes an input Description and an expected output Description. Test case ID Section 1: Before execution Section 2: After execution.
Software Testing “If you can’t test it, you can’t design it”
Software Design Methodologies and Testing
Software Testing COM /12/2019 Testing/Spring 98.
Overview Activities from additional UP disciplines are needed to bring a system into being Implementation Testing Deployment Configuration and change management.
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Presented by KARRI GOVINDA RAO ,
Chapter 13 & 14 Software Testing Strategies and Techniques 1 Software Engineering: A Practitioner’s Approach, 6th edition by Roger S. Pressman.
Presentation transcript:

Automated Testing Tool for UML Behavioral Descriptions M.Tech. Project Guided by: Presented by: Venkat Prof. S.Ramesh Prof. Sridhar Iyer

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Outline of the Talk Overview of the Software Testing Literature Survey Stress on Statecharts Importance of Testing Statecharts Coverage Metrics Design Specification of StateTest Tool Conclusions Demo 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Testing Fundamentals Testing Objectives Test Information Flow 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Test Information Flow 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Test Case Design Three elements Test specification Test requirements Clues Fault Conditions Reachability Necessity Propagation 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY An Example void Check_square(int do_square,double x) { double y = x; if(do_square) y = x + x; printf(“squared value larger? %d\n”,y > x); } The fault is that + was used when * should have been 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Fault Conditions Reachability (do_square is true) Necessity (x!=2 && x!=0) Propagation (x <=1) (to differentiate the truth value between (x+x >x) and (x*x>x)) 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Testing Techniques White-Box Testing Basis path testing Deriving Test cases Flow graph Cyclomatic Complexity Finding independent paths Graph Matrices Control Structure Testing Condition testing Data flow testing Loop testing 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Testing Techniques Black-Box Testing Equivalence Partitioning (Range,specific value)one valid, two invalid inputs (Boolean,member of a set)one valid, one invalid inputs Boundary Value Analysis(BVA) Ex: (1). If 0<a<5, then test with (-1, 0, 1) and (4, 5, 6) Ex: (2). If the i/p has n values, then test with i/p s (n-1), (n), and (n+1) values Comparison Testing Specially for Safety-critical systems 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Testing Strategies Unit Testing To test the modules Integration Testing To test interfaces between modules Top-down Could be DFS / BFS followed Bottom-up Regression Testing Validation Testing Validation test criteria Configuration review Alpha and Beta testing System Testing Recovery Security Stress Performance 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Spiral Model of S/W Testing 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Literature Survey AdaTest and Cantata For State Machine Testing IPL Algo. For Coverage Metrics Property-Based Testing Suggests the Testing at Source code level, rather than at higher level TASPEC is the Central entity ATTOL Software ATTOL UnitTest, ATTOL SystemTset, ATTOL Coverage +1 Software Testing Tool +1Base, +1CR, +1CM, +1DataTree, +1Test, +1Reports, +1Reuse 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY A Brief Look At UML Result of the Three OO methodologies Booch Method by Grady Booch OMT by James Rumbaugh OOSE by Ivar Jacobson Statechart is one of the Nine building blocks supported by the UML 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Statecharts : A Visual Formalism for Complex Systems Origins Of Statecharts FSMs STDs Harel Statecharts Limitations of State Machines Doesn’t Provide State Hierarchy Have History Info. Have Concurrent States 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Semantics of Statecharts Event Transitions Event [Guard] / Action Transition 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Example for Statechart Semantics 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

More features of Statecharts Generalization Simplifies by Factorization Orthogonality Simplifies by Segmentation History Info. To memorize the substate last visited 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Example for Generalization 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Example for Orthogonality 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Example for History state 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Importance of Testing Statecharts Statecharts play crucial role in modeling Safety-critical systems Networking Protocols GUIs (Graphical User Interfaces) OOD (Object-Oriented Design) 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Methodology of Testing SCs 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Coverage Metrics State Coverage Ratio of number of states covered and total number of states in the given state model Event Coverage Ratio of number of events covered and total number of events in the given state model Transition Coverage Ratio of number transitions exercised and total number of transitions in the given state model State-Event Coverage Ratio of state-event pairs exercised and number of states multiply number of events in the given state model 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Design Specification of StateTest Tool Two inputs and Three outputs Input_1 : Statechart specification generated by Statechart Editor(SCE) by BARC Input_2 : Test Script File Output_1 : Pass / Fail report Output_2 : Coverage Metrics Output_3 : Error Report 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Statechart Spec. and Test Case’s Formats 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

DFD Level 0 for StateTest 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

DFD Level 1 for StateTest 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Implementation Details StateTest tool is implemented by using JAVA language StateTest tool has just four classes 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Object Specification of StateTest Four Classes StatesInfo Reads the Statechart specification file CopyStateHierarchy Reads the hierarchical from the StatesInfo class TestScriptReading Reads the Test Script file ReportGenerator Generates pass / fail report 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Initial Object Specification for StateTest 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

Detailed Object Specification for StateTest Tool 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Experiments Code generated by SCE (BARC tool) from the Statechart figures Statechart’s Specification as a 4-tuple by StateTest tool internally Experimented with many complex Statecharts Execution time of each test case is reasonable 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Conclusions StateTest Tool is effective for Statechart Testing Future work: Can be generalized to other input files… Orthogonality History 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY

M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY Thank You 11/12/2018 M.Tech Project Presentation By Guntapudi V R, SIT, IIT BOMBAY