Positive and negative testing

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

Object Oriented Analysis And Design-IT0207 iiI Semester
Lecture 2: testing Book: Chapter 9 What is testing? Testing is not showing that there are no errors in the program. Testing cannot show that the program.
Reviewing your Program CS 5010 Program Design Paradigms “Bootcamp” Lesson 2.4 © Mitchell Wand, This work is licensed under a Creative Commons.
Marking Schema question1: 40 marks question2: 40 marks question3: 20 marks total: 100 marks.
White Box and Black Box Testing Tor Stålhane. What is White Box testing White box testing is testing where we use the info available from the code of.
Knapsack Problem Section 7.6. Problem Suppose we have n items U={u 1,..u n }, that we would like to insert into a knapsack of size C. Each item u i has.
Testing and Quality Assurance
1 Steve Chenoweth Tuesday, 10/04/11 Week 5, Day 2 Right – Typical tool for reading out error codes logged by your car’s computer, to help analyze its problems.
1 Advanced Material The following slides contain advanced material and are optional.
1 Joe Meehean. 2 Testing is the process of executing a program with the intent of finding errors. -Glenford Myers.
Terms: Test (Case) vs. Test Suite
White Box vs. Black Box Testing Tor Stålhane. What is White Box testing White box testing is testing where we use the info available from the code of.
CC0002NI – Computer Programming Computer Programming Er. Saroj Sharan Regmi Week 7.
Objectives Understand the basic concepts and definitions relating to testing, like error, fault, failure, test case, test suite, test harness. Explore.
Name Hometown Program Employer/Student Fun Fact 1.
SAT Review 1.Which is the equation of a line that passes through the pt (7, - 1) and is to y + 2x = 1. A. y = 2x – 15 B. y = –2x + 13 C. D. 2.Line p is.
Software Transition Testing Presented By: Varun Phanda
Testing and Debugging Version 1.0. All kinds of things can go wrong when you are developing a program. The compiler discovers syntax errors in your code.
ISV Innovation Presented by ISV Innovation Presented by Business Intelligence Fundamentals: Data Cleansing Ola Ekdahl IT Mentors 9/12/08.
Testing Methods Carl Smith National Certificate Year 2 – Unit 4.
From Quality Control to Quality Assurance…and Beyond Alan Page Microsoft.
Assignment 3 -- Solution 1. Problem 1 H 1 : r 1 [y] r 1 [x] r 2 [x] w 1 [y] c 1 w 2 [y] c 2 H 1 is normally-strict two-phase locked: rl 1 [y] r 1 [y]
Control Structures II Repetition (Loops). Why Is Repetition Needed? How can you solve the following problem: What is the sum of all the numbers from 1.
Software Requirements and Design Khalid Ishaq
Data Tables for Sensitivity Analysis JCHP Break Even Analysis.
The Software Development Process
Introduction to Loops For Loops. Motivation for Using Loops So far, everything we’ve done in MATLAB, you could probably do by hand: Mathematical operations.
White Box and Black Box Testing
Test Case Designing UNIT - 2. Topics Test Requirement Analysis (example) Test Case Designing (sample discussion) Test Data Preparation (example) Test.
Intoduction to Unit Testing Using JUnit to structure Unit Testing SE-2030 Dr. Mark L. Hornick 1.
TESTING FUNDAMENTALS BY K.KARTHIKEYAN.
Percent – Base and rate Problems You might know the “base / rate” problems as “is / of” problems. For example, 23 is what percent of 50 ?
Chapter Topics 2.1 Designing a Program 2.2 Output, Input, and Variables 2.3 Variable Assignment and Calculations 2.4 Variable Declarations and Data Types.
1. Black Box Testing  Black box testing is also called functional testing  Black box testing ignores the internal mechanism of a system or component.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Tevfik Bultan Lecture 4: Introduction to C: Control Flow.
1 Software Testing. 2 What is Software Testing ? Testing is a verification and validation activity that is performed by executing program code.
DEVRY COMP 122 Lab 4 Lab Report and Source Code Check this A+ tutorial guideline at
Controlling Servos with the Arduino
Regression Testing with its types
MIS 120 Test Planning.
Software Testing.
Lean Warehouse Management
Key Rule: Each Number has only one valid combination of Prime Factors.
Reviewing your Program
Sample requirements specification for lock and key system
Intro to PHP & Variables
CHAPTER 4 Test Design Techniques
Model Functions Input x 6 = Output Input x 3 = Output
Strategies For Software Test Documentation
Problem Solving Techniques
Cause and Effect Graphing
Karnaugh Maps Topics covered in this presentation: Karnaugh Maps
Sample requirements specification for lock and key system
Software Engineering Lecture #13.
Software Engineering Lecture #12.
The switch statement: an alternative to writing a lot of conditionals
WARM UP AND EXIT SLIP NOTEBOOK
BLACK BOX TESTING Using the black box approach, a tester considers the software-under test to be an opaque box. There is no knowledge of its inner structure.
ERRORS AND EXCEPTIONS Errors:
Comment on Testing & Test Case Generation
“Your Key To Success in Science”
Create an input-output table from the following rule or scenario
Whitebox Testing.
Objectives Construct truth tables for the following logic gates:
Test Cases, Test Suites and Test Case management systems
Introduction to Functions
ordered pairs mapping diagram (-2, -8) (-1, -4) (1, 4) (2, 8) x y table of values x y We can represent.
Implementation Plan system integration required for each iteration
Presentation transcript:

Positive and negative testing Positive testing tries to prove that a given product does what it is supposed to do. When a test case verifies the requirements of the product with set of expected o/p, it is called Positive TC. Example Lock and Key

“POSITIVE TESTING IS DONE TO VERIFY THE KNOWN TEST CONDITIONS”

Req No INPUT 1 INPUT 2 CURRENT STATE EXPECTED OUTPUT BR01 KEY09 Turn CW Unlocked Locked BR02 NC BR03 Turn ACW BR04 Unlock BR05 Hairpin No Change

Consider the first row- Current state of lock is unlock and use key and turn it clockwise, the expected output is locked. During execution the test results is locking, then the TC is passed. This is an example for “Positive test condition” for positive testing.

Consider the last row Current state of lock is locked . Using a hairpin and turn it CW should not cause a change in state or cause damage to the lock. After execution, there is no changes, then positive test case is passed. This is example of a “negative test condition” for positive testing.

Negative Testing Negative Testing is done to show that the product does not fail when an unexpected input is given. Negative testing covers scenarios for which the product is not designed and coded. Test conditions termed as Unknown condition. A negative test would be a product not delivering an error when it should or delivering an error when it should not.

Negative Test Cases INPUT 1 INPUT 2 CURRENT STATE EXPECTED OUTPUT Some other lock’s key Turn CW Lock Turn ACW Unlock Thin piece of wire Hit with a stone

In the above table, there are no requirement numbers. Since negative testing focuses on test conditions that lie outside the specification. Here all the test conditions are outside the specification, they cannot be categorized as positive and negative test conditions.

Difference- PT & NT Differ by their coverage For PT if all documented requirements and test conditions are covered, then coverage is 100%. If specifications are very clear- coverage can be achieved. Negative Testing 100 percentage coverage is not possible. Negative testing requires high degree of creativity. NEGATIVE TESTING IS DONE TO BREAK THE PRODUCT WITH UNKNOWNS