E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER T EST D ESIGN T ECHNIQUES C OPYRIGHT © 2012 DSR C ORPORATION.

Slides:



Advertisements
Similar presentations
2017/3/25 Test Case Upgrade from “Test Case-Training Material v1.4.ppt” of Testing basics Authors: NganVK Version: 1.4 Last Update: Dec-2005.
Advertisements

EMBEDDED SYSTEM SOFTWARE AND RTOS BASICS DIAGRAMS
Bernard Casier Member Quality Audit Cell The Flemish Quality Audit System Brussels, 26 th June 2012.
Chapter 1 The Study of Body Function Image PowerPoint
Mathematical Treasure-hunt: Sequences
By Rick Clements Software Testing 101 By Rick Clements
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
IWDS – Extensive Training for Case Managers
0 - 0.
Addition Facts
Relational data integrity
Normal forms - 1NF, 2NF and 3NF
Chapter 12 Analysing quantitative data
Photo Composition Study Guide Label each photo with the category that applies to that image.
A Comparative Survey of Enterprise Architecture Frameworks
Credit Card Understanding Your Credit Card Credit Cards 101 Trivia.
Test Design Overview.
Chapter 5 – Enterprise Analysis
Equivalence Partitioning
Software testing.
1 Software Unit Test Coverage And Test Adequacy Hong Zhu, Patrick A. V. Hall, John H.R. May Presented By: Arpita Gandhi.
Test process essentials Riitta Viitamäki,
GpiI-2C Identifying software project stages, tasks and deliverables
Motion and Measurement Nic Gilbertson & Funda Gonulates Strengthening Tomorrows Education in Measurement (STEM) Project Michigan State University Math-in-Action.
Software Testing and Quality Assurance
Withdrawal Transaction Use Case Primary Actor: Customer Pre-conditions: The customer must have a valid ATM card and PIN. Post-conditions: The customer.
Welcome, Panel of Examiner and Process Development Members! Washington State Quality Award PEPD #1 Training 2008.
Secretary update Tips and Tools for Todays Secretary Grand Lodge F&AM of WI
Central Tendency- Nominal Variable (1)
Copyright © 2012, 2008, 2004 Pearson Education, Inc. Mrs. Rivas International Studies Charter School. Bell Ringer.
1. LEED-Registered Projects, 2013 Source: U.S. Green Building Council. LEED Building Project Directory (as of 12/31/2013). Calculations by CPWR Data Center.
1 CS 446 – Tutorial 6 Frid. Nov. 6 th, 2009 Implementation Tutorial.
CMPT 275 Software Engineering
© 2012 National Heart Foundation of Australia. Slide 2.
1 ASX Listing Rule Amendments – Reporting Requirements for Mining Companies and the JORC Code 2012 ASX Presentation 2013.
Graphing Ax + By = C Topic
Chapter 10 Software Testing
Introduction to the Standards for Professional Learning
Bridges Policy Manuals for RSS Understanding and Navigating the SharePoint Manuals Updated: 10/22/2013.
Project 6: Working with If Statements Essentials for Design JavaScript Level One Michael Brooks.
Addition 1’s to 20.
Test B, 100 Subtraction Facts
Week 1.
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
1 Unit 1 Kinematics Chapter 1 Day
©2004 Brooks/Cole FIGURES FOR CHAPTER 11 LATCHES AND FLIP-FLOPS Click the mouse to move to the next page. Use the ESC key to exit this chapter. This chapter.
Employment Ontario Literacy and Basic Skills Performance Management Reports Training For Service Providers.
January Structure of the book Section 1 (Ch 1 – 10) Basic concepts and techniques Section 2 (Ch 11 – 15): Inference for quantitative outcomes Section.
By Hui Bian Office for Faculty Excellence Spring
Reviewing your Program CS 5010 Program Design Paradigms “Bootcamp” Lesson 2.4 © Mitchell Wand, This work is licensed under a Creative Commons.
E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER I NTRODUCTION TO Q UALITY A SSURANCE C OPYRIGHT © 2012 DSR C ORPORATION.
Embedded Systems Software Training Center
Test Design Techniques
Dynamic Black-Box Testing Part 2
Embedded Systems Software Training Center Unit Testing Workshop Copyright © 2012 DSR Corporation.
E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER S OFTWARE D ESIGN C OPYRIGHT © 2011 DSR C ORPORATION.
E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER P ROJECT M ANAGEMENT P ROCESSES C OPYRIGHT © 2012 DSR C ORPORATION.
Black Box Testing Techniques Chapter 7. Black Box Testing Techniques Prepared by: Kris C. Calpotura, CoE, MSME, MIT  Introduction Introduction  Equivalence.
Putting Experience to the test
E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER T EST D ESIGN T ECHNIQUES C OPYRIGHT © 2012 DSR C ORPORATION.
Dynamic Black-Box Testing Part 1 What is dynamic black-box testing? How to reduce the number of test cases using: Equivalence partitioning Boundary value.
Embedded Systems Software Training Center
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Testing techniques and methods
Test Design Techniques Software Testing: IN3240 / IN4240
BCS3233 – Software Testing Introduction to ST
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Presentation transcript:

E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER T EST D ESIGN T ECHNIQUES C OPYRIGHT © 2012 DSR C ORPORATION

Objectives Understand which test design techniques exist and how to choose the correct ones C OPYRIGHT © 2012 DSR C ORPORATION 2

Class Materials Software Engineering Introduction diagrams are available here: Hands-on Exercises are available here: C OPYRIGHT © 2012 DSR C ORPORATION 3

Agenda 1.Categories of Test Design Techniques 2.Specification-Based Techniques 3.Test Coverage 4.Structure-Based Techniques 5.Experience-Based Techniques 6.Usage of Test Design Techniques C OPYRIGHT © 2012 DSR C ORPORATION 4

E MBEDDED S YSTEMS S OFTWARE T RAINING C ENTER C ATEGORIES OF T EST D ESIGN T ECHNIQUES C OPYRIGHT © 2012 DSR C ORPORATIONS

Test Design Techniques Classification C OPYRIGHT © 2012 DSR C ORPORATION Foundations of Software Testing. ISTQB Certification. Dorothy Graham, Erik Van Veenendaal 6

Test Cases Designing with Decision Tables C OPYRIGHT © 2012 DSR C ORPORATION Foundations of Software Testing. ISTQB Certification. Dorothy Graham, Erik Van Veenendaal Loan Calculation Example: The final step of this technique is to write test cases to exercise each of the four rules in the table. Test cases may be enhanced with EP and BVA approaches. 7

State Transition Testing with State Diagram C OPYRIGHT © 2012 DSR C ORPORATION Foundations of Software Testing. ISTQB Certification. Dorothy Graham, Erik Van Veenendaal TC1. Normal Case: the correct PIN is entered the first time. TC2. Error case enters an incorrect PIN each time so that the system eats the card. TC3. PIN was incorrect the first time but OK the second time. TC4. PIN was correct on the third try. 8

Testing for Invalid Transitions: State Matrix C OPYRIGHT © 2012 DSR C ORPORATION Foundations of Software Testing. ISTQB Ceritfication. Dorothy Graham, Erik Van Veenendaal 9

Use Case Example C OPYRIGHT © 2012 DSR C ORPORATION Foundations of Software Testing. ISTQB Certification. Dorothy Graham, Erik Van Veenendaal 10

Summary The test design techniques are determined by their primary sources and are used to find different defects, so a composition of them must be used to achieve good product quality. Specification-based test design techniques are good to use when there is good specification. Equivalence partitioning, boundary analysis, decision tables, and state transition techniques are the most useful. Code-based test design techniques involve code analysis and various code coverage criteria. It allows finding many anomalies in the code. The decision/condition code coverage criterion is the most useful. Experience-based techniques are complementary to code-based and specification-based techniques and are applicable for low-risk systems in conditions that lack requirements and are time pressured. C OPYRIGHT © 2012 DSR C ORPORATION 11

Questions 1.Classify the Test Design Techniques. What is the most useful to make testing most effective? 2.What is a key characteristic of specification-based testing techniques? 3.What is a key characteristic of structure-based testing techniques? 4.What code coverage metrics do you know? What are they used for? What are the strong and week sides of every metric? C OPYRIGHT © 2012 DSR C ORPORATION 12

Task 1 C OPYRIGHT © 2012 DSR C ORPORATION 13 Postal rates for 'light letters' are 25p up to l0g, 35p up to 50g plus an extra l0p for each additional 25g up to l00g. Suggest the test design techniques for this functionality. Describe the test design in any form. Foundations of Software Testing. ISTQB Certification. Dorothy Graham, Erik Van Veenendaal

Task 2 C OPYRIGHT © 2012 DSR C ORPORATION 14 If you are flying with an economy ticket, there is a possibility that you may get upgraded to business class, especially if you hold a gold card in the airline's frequent flier program. If you don't hold a gold card, there is a possibility that you will get bumped off the flight if it is full and you check in late. This is shown on the activity diagram below. Suggest a test technique to test the program that implements this functionality. Describe the test design using this technique. Foundations of Software Testing. ISTQB Certification. Dorothy Graham, Erik Van Veenendaal

Task 3 C OPYRIGHT © 2012 DSR C ORPORATION 15 Analyze the diagram below. Suggest a test technique to test the program that implements this functionality. Describe the test design using this technique. What coverage value have you achieved? Foundations of Software Testing. ISTQB Certification. Dorothy Graham, Erik Van Veenendaal

Task 4 C OPYRIGHT © 2012 DSR C ORPORATION 16 Analyze the part of software code below. Define the test cases that allow you to achieve 100% coverage for the following criteria: Statement coverage Decision coverage Condition coverage if ((x>0) && ((y>0)|| (z>0))) statement1; else statement2;

References 1.Foundations of Software Testing. ISTQB Certification. Dorothy Graham, Erik Van Veenendaal, Isabel Evans, Rex Black 2.SWEBOK. Guide to the Software Engineering. Body of Knowledge Version / A project of the IEEE Computer Society Professional Practices Committee 3.IEEE Std , IEEE Standard Glossary of Software Engineering Terminology 4.Code Coverage Analysis. By Steve Cornett. Copyright © Bullseye Testing Technology Testing Technologyhttp:// 5.DO-178B, Software Considerations in Airborne Systems and Equipment Certification, RCTA, December 1992, pp.31, 74.RCTA gcova Test Coverage Program. 8.LCOV - the LTP GCOV extension. C OPYRIGHT © 2012 DSR C ORPORATION 17