CSCE 747 Software Testing and Quality Assurance

Slides:



Advertisements
Similar presentations
Forms of Equivalence Class Testing Normal • only equivalence classes are valid and invalid input values • emphasis is on "single failures" • works.
Advertisements

Overview Functional Testing Boundary Value Testing (BVT)
Equivalence Class Testing
1 ECE 453 – CS 447 – SE 465 Software Testing & Quality Assurance Instructor Kostas Kontogiannis.
Functional Testing 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 01 – Functional Testing.
Boundary Value Testing A type of “Black box” functional testing –The program is viewed as a mathematical “function” –The program takes inputs and maps.
Software Testing and Quality Assurance
Testing an individual module
CS4723 Software Validation and Quality Assurance Lecture 02 Overview of Software Testing.
Chapter 5 Retrospective on Functional Testing Software Testing
Equivalence Class Testing
1 Functional Testing Motivation Example Basic Methods Timing: 30 minutes.
1 ECE 453 – CS 447 – SE 465 Software Testing & Quality Assurance Instructor Kostas Kontogiannis.
By Asst.Prof.Dr. Wararat Songpan (Rungworawut) Faculty of Computer Science, Department of Science, Khon Kaen University, Thailand 1 Chapter 3: Equivalence.
Earlier this millenium, it became law that every car is required to have at least liability insurance. Liability in legal terms means being responsible.
A General Discussion on Functional (Black-box) Testing What are some of the concerns of testers ? –Have we got enough time to test (effort & schedule)?
1 Software Testing & Quality Assurance Lecture 14 Created by: Paulo Alencar Modified by: Frank Xu.
Cause & Effect Graph Comparison Testing. Cause & Effect Graph This is basically a hardware testing technique adapted to software testing. It considers.
Lec 06 Path Testing Part II - 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 06 – Path Testing Part II 9/16/
Black Box Testing Techniques Chapter 7. Black Box Testing Techniques Prepared by: Kris C. Calpotura, CoE, MSME, MIT  Introduction Introduction  Equivalence.
1 Equivalence Class Testing Chapter 6. 2 Introduction Boundary Value Testing derives test cases with Massive redundancy Serious gaps Equivalence Class.
Driver’s Education Vehicle Insurance. What kind of Insurance do you need in Florida? 1.In Florida there are two vehicle insurance laws, the Financial.
Today’s Agenda  Reminder: HW #1 Due next class  Quick Review  Input Space Partitioning Software Testing and Maintenance 1.
1 Boundary Value Testing Chapter 5. 2 Introduction Input domain testing is the most commonly taught (and perhaps the most commonly used) software testing.
Overview Functional Testing Boundary Value Testing (BVT)
Equivalence Class Testing In chapter 5, we saw that all four variations of boundary value testing are vulnerable to –gaps of untested functionality, and.
Software testing School of Software Engineering, HUST 1.
Lec 09 Integration & System Testing- 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 09-Integration and System Testing 9/25/2013.
1 Software Testing & Quality Assurance Lecture 5 Created by: Paulo Alencar Modified by: Frank Xu.
Boundary Value Testing 1.A type of “Black box” functional testing –The program is viewed as a mathematical “function” –The program takes inputs and maps.
1 © 2011 Professor W. Eric Wong, The University of Texas at Dallas Requirements-based Test Generation for Functional Testing W. Eric Wong Department of.
1 Software Testing. 2 Equivalence Class Testing 3 The use of equivalence class testing has two motivations: –Sense of complete testing –Avoid redundancy.
Equivalence Class Testing Use the mathematical concept of partitioning into equivalence classes to generate test cases for Functional (Black-box) testing.
1 ECE 453 – CS 447 – SE 465 Software Testing & Quality Assurance Instructor Kostas Kontogiannis.
Boundary Value Testing
You Are The Driver The Highway Transportation System.
Lec 10 Integration Testing- 1 CSCE 747 Fall 2013 CSCE 747 Software Testing and Quality Assurance Lecture 10 – Integration Testing 9/30/
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.
A General Discussion on Functional (Black-box) Testing What are some of the concerns of testers ? –Have we got enough time to test (effort & schedule)?
Cause & Effect Graph Comparison Testing
Chapter 3: Equivalence Class Testing :EC Software Testing
Subject Name: Software Testing Subject Code: 10CS842 Prepared By:
ISP Coverage Criteria CS 4501 / 6501 Software Testing
Input Space Partition Testing CS 4501 / 6501 Software Testing
Basic Practice of Statistics - 5th Edition
CS5123 Software Validation and Quality Assurance
Chapter 5 Retrospective on Functional Testing Software Testing
Chapter 13 & 14 Software Testing Strategies and Techniques
Traffic Violations Attorney – Keep Your Driving Records Clean At Least
Overview Functional Testing Boundary Value Testing (BVT)
UNIT-4 BLACKBOX AND WHITEBOX TESTING
CSCE 747 Software Testing and Quality Assurance
COSC 4506/ITEC 3506 Software Engineering
Equivalence Class Testing
UML Class Diagram.
CSCE 747 Software Testing and Quality Assurance
Insurance Basics (Don’t Risk It)
CSCE 747 Software Testing and Quality Assurance
OOA&D II Bo Wang, Kan Qi Adapted from Alexey Tregubov’s Slides.
ISP Coverage Criteria CS 4501 / 6501 Software Testing
Graph Coverage for Specifications CS 4501 / 6501 Software Testing
Overview Functional Testing Boundary Value Testing (BVT)
Odds and Ends Parenting Teenagers Dealing With Your Kids as Adults
Domain Modeling.
Chapter 1: Boundary Value Testing
Overview Functional Testing Boundary Value Testing (BVT)
CSCE 747 Software Testing and Quality Assurance
Overview Functional Testing Boundary Value Testing (BVT)
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Chapter 13 & 14 Software Testing Strategies and Techniques 1 Software Engineering: A Practitioner’s Approach, 6th edition by Roger S. Pressman.
Presentation transcript:

CSCE 747 Software Testing and Quality Assurance Lecture 05 – Wrapping Up Functional Testing 9/11/2013

Jorgensen, Paul C. Software Testing 11/30/2018 Last Time Decision Table Based Testing Ch 7 pp 103-116 Decision Trees Decision Tables for Business Logic Decision Tables for Testing Junit testing Today Wrapup Functional Testing Ch 8 pp 117-127 Testing Effort Testing Efficiency Testing Effectiveness Guidelines Case Study – Insurance Premium Jorgensen, Paul C. Software Testing A Craftsman Approach

Functional Testing Review 11/30/2018 Functional Testing Review Black-box testing – Approaches Boundary values Equivalence Class Decision Table Software Testing A Craftsman’s Approach Jorgensen – 2008

Testing Effort

Jorgensen, Paul C. Software Testing Testing Effort Fig 8.1 Trendline of test cases by testing method Jorgensen, Paul C. Software Testing A Craftsman Approach

Jorgensen, Paul C. Software Testing Testing Effort Fig 8.1 Trendline of test case identification by testing method Jorgensen, Paul C. Software Testing A Craftsman Approach

Test Cases per Method –Triangle Problem Jorgensen, Paul C. Software Testing A Craftsman Approach

Test Cases per Method –NextDate Jorgensen, Paul C. Software Testing A Craftsman Approach

Test Cases per Method –Commission Problem Jorgensen, Paul C. Software Testing A Craftsman Approach

Limitation of Functional Testing fundamental limitation of functional testing: the twin possibilities of gaps of untested functionality and redundant tests. Jorgensen, Paul C. Software Testing A Craftsman Approach

Jorgensen, Paul C. Software Testing Guidelines Jorgensen, Paul C. Software Testing A Craftsman Approach

Looking for your keys Story Here is one of my favorite testing stories. An inebriated man was crawling around on the sidewalk beneath a streetlight. When a policeman asked him what he was doing, he replied that he was looking for his car keys. “Did you lose them here?” the policeman asked. “No, I lost them in the parking lot, but the light is better here.” Jorgensen, Paul C. Software Testing A Craftsman Approach

Jorgensen, Paul C. Software Testing Analogy to Testing This little story contains an important message for testers: Testing for faults that are not likely to be present is pointless. It is far more effective to have a good idea of the kinds of faults that are most likely (or most damaging) and then to select testing methods that are likely to reveal these faults. Jorgensen, Paul C. Software Testing A Craftsman Approach

Attributes for Selecting Testing Methods Whether the variables represent physical or logical quantities Whether dependencies exist among the variables Whether single or multiple faults are assumed Whether exception handling is prominent Jorgensen, Paul C. Software Testing A Craftsman Approach

an “Expert System” on Functional Testing Approach Selection “If the variables refer to physical quantities, domain testing and equivalence class testing are indicated. If the variables are independent, domain testing and equivalence class testing are indicated. If the variables are dependent, decision table testing is indicated. If the single fault assumption is warranted, boundary value analysis and robustness testing are indicated. If the multiple fault assumption is warranted, worst-case testing, robust worst-case testing, and decision table testing are indicated. If the program contains significant exception handling, robustness testing and decision table testing are indicated. If the variables refer to logical quantities, equivalence class testing and decision table testing are indicated.” Jorgensen, Paul C. Software Testing A Craftsman Approach

Decision Table for Technique Selection Jorgensen, Paul C. Software Testing A Craftsman Approach

Jorgensen, Paul C. Software Testing Case Study From Text “An insurance premium program computes the semiannual car insurance premium based on two parameters: the policyholder’s age and driving record: Using Premium = BaseRate*ageMultiplier - safeDrivingReduction The ageMultiplier is a function of the policyholder’s age, and the safe driving reduction is given when the current points (assigned by traffic courts for moving violations) on the policyholder’s driver’s license are below an age-related cutoff. Policies are written for drivers in the age range of 16 to 100. Once a policyholder has 12 points, the driver’s license is suspended (thus, no insurance is needed). The BaseRate changes from time to time; for this example, it is $500 for a semiannual premium.” Jorgensen, Paul C. Software Testing A Craftsman Approach

Safe Driving Reduction Table Jorgensen, Paul C. Software Testing A Craftsman Approach

Worst–case boundary value test cases Jorgensen, Paul C. Software Testing A Craftsman Approach

Refinement of Partition A1 = {age: 16 ≤ age < 25} A2 = {age: 25 ≤ age < 35} A3 = {age: 35 ≤ age < 45} A4 = {age: 45 ≤ age < 60} A5 = {age: 60 ≤ age < 100} P1 = {points = 0, 1} P2 = {points = 2, 3} P3 = {points = 4, 5} P4 = {points = 6, 7} P5 = {points = 8, 9, 10, 11, 12} A x P has 25 induced equivalence classes Jorgensen, Paul C. Software Testing A Craftsman Approach

Jorgensen, Paul C. Software Testing A Craftsman Approach

Fig 8.8 Detailed worst-case boundary test cases Jorgensen, Paul C. Software Testing A Craftsman Approach

Weak and Strong Eq. Class Test Cases Jorgensen, Paul C. Software Testing A Craftsman Approach

Decision Table Test Cases Jorgensen, Paul C. Software Testing A Craftsman Approach

Decision Table Test Cases Jorgensen, Paul C. Software Testing A Craftsman Approach

Jorgensen, Paul C. Software Testing Hybrid Test Cases Jorgensen, Paul C. Software Testing A Craftsman Approach