Testing Strategies COMP1 – Section 4.2. Testing. Aims At the end of this lesson you will be able to:  Explain different testing strategies  Design and.

Slides:



Advertisements
Similar presentations
Testing Relational Database
Advertisements

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.
Software Testing. Quality is Hard to Pin Down Concise, clear definition is elusive Not easily quantifiable Many things to many people You'll know it when.
Lecture 8: Testing, Verification and Validation
How to validate in Budget Manager Hopefully now you have reached this stage you will have downloaded the inpatient and outpatients excel files for you.
Computing Science Software Design and Development SOFTWARE DESIGN AND DEVELOPMENT USING PYTHON.
Marking Schema question1: 40 marks question2: 40 marks question3: 20 marks total: 100 marks.
Testing and Test Case Development A “primitive” method of testing, with NO test preparation, may include the following steps : – Initiate the system –
Annoucements  Next labs 9 and 10 are paired for everyone. So don’t miss the lab.  There is a review session for the quiz on Monday, November 4, at 8:00.
Programming Logic and Design Eighth Edition
1 Software Engineering Lecture 11 Software Testing.
Software Failure: Reasons Incorrect, missing, impossible requirements * Requirement validation. Incorrect specification * Specification verification. Faulty.
Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials Implementation and Testing.
OHT 9.1 Galin, SQA from theory to implementation © Pearson Education Limited 2004 Definitions and objectives Software testing strategies Software test.
OHT 9.1 Galin, SQA from theory to implementation © Pearson Education Limited 2004 Definitions and objectives Software testing strategies Software test.
Software Testing and Quality Assurance
16/27/2015 3:38 AM6/27/2015 3:38 AM6/27/2015 3:38 AMTesting and Debugging Testing The process of verifying the software performs to the specifications.
1 Lab Session-6 CSIT-121 Spring 2005 Structured Choice The do~While Loop Lab Exercises.
Software Testing. “Software and Cathedrals are much the same: First we build them, then we pray!!!” -Sam Redwine, Jr.
1 Lab Session-7 CSIT-121 Fall Introducing Structured Choice 4 The do~While Loop 4 Lab Exercises.
OHT 9.1 Galin, SQA from theory to implementation © Pearson Education Limited 2004 Chapter 9.3 Software Testing Strategies.
SOFTWARE QUALITY ASSURANCE Maltepe University Faculty of Engineering SE 410.
SELECT A LESSON 1. A WORLD AND CHARACTERS 2. PATHS AND ENEMIES 4. USING PAGES TO CHANGE THE RULES 5. GAME ANALYSIS AND DESIGN 6-7. CREATING YOUR OWN GAME.
Software Development, Programming, Testing & Implementation.
1 Functional Testing Motivation Example Basic Methods Timing: 30 minutes.
The Project AH Computing. Functional Requirements  What the product must do!  Examples attractive welcome screen all options available as clickable.
RNJ 10/02/091 3 Computing System Fundamentals 3.6 Errors Prevention and Detection.
By the end of this session you should be able to...
BY: GARIMA GUPTA MCA FINAL YEAR WHAT IS SOFTWARE TESTING ? SOFTWARE TESTING IS THE PROCESS OF EXECUTING PROGRAMS OR SYSTEM WITH THE INTENT.
System/Software Testing
Testing. What is Testing? Definition: exercising a program under controlled conditions and verifying the results Purpose is to detect program defects.
TESTING.
Test plans CSCI102 - Systems ITCS905 - Systems MCS Systems.
CMSC 345 Fall 2000 Unit Testing. The testing process.
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
Chapter 13: Implementation Phase 13.3 Good Programming Practice 13.6 Module Test Case Selection 13.7 Black-Box Module-Testing Techniques 13.8 Glass-Box.
General Programming Introduction to Computing Science and Programming I.
Mastering Char to ASCII AND DOING MORE RELATED STRING MANIPULATION Why VB.Net ?  The Language resembles Pseudocode - good for teaching and learning fundamentals.
Software Testing Testing types Testing strategy Testing principles.
Testing Methods Carl Smith National Certificate Year 2 – Unit 4.
Unit Testing 101 Black Box v. White Box. Definition of V&V Verification - is the product correct Validation - is it the correct product.
Pseudocode Algorithms Using Sequence, Selection, and Repetition Simple Program Design Third Edition A Step-by-Step Approach 6.
Sanjay Johal. Introduction(1.1) In this PowerPoint I will be explaining :  The purpose of the code for each of the two given programs, e.g. to carry.
Verification & Validation. Batch processing In a batch processing system, documents such as sales orders are collected into batches of typically 50 documents.
G040: Lecture 11 Interactive Booking Form Briefing Notes Mr C Johnston ICT Teacher
Software Engineering 2004 Jyrki Nummenmaa 1 BACKGROUND There is no way to generally test programs exhaustively (that is, going through all execution.
1 AQA ICT AS Level © Nelson Thornes 2008 Good quality data and information Data terms.
Software Engineering1  Verification: The software should conform to its specification  Validation: The software should do what the user really requires.
Testing and inspecting to ensure high quality An extreme and easily understood kind of failure is an outright crash. However, any violation of requirements.
© The McGraw-Hill Companies, 2006 Chapter 3 Iteration.
HNDIT23082 Lecture 09:Software Testing. Validations and Verification Validation and verification ( V & V ) is the name given to the checking and analysis.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 10 Using Menus and Validating Input.
Testing i. explain the importance of system testing and installation planning;
1 Software Testing. 2 What is Software Testing ? Testing is a verification and validation activity that is performed by executing program code.
Testing 1. Aims To understand the purpose of testing To understand the different test strategies To explore the four types of test data Have a understanding.
Software Testing.
Introduction to Computing Science and Programming I
Project planning The systems life cycle.
Highcliffe ICT Department
Testing Tutorial 7.
Rekayasa Perangkat Lunak Part-13
Data Types Variables are used in programs to store items of data e.g a name, a high score, an exam mark. The data stored in a variable is entered from.
Little work is accurate
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Lecture 09:Software Testing
Developing a spreadsheet
Part 6 Q26 to Q30 of National 5 Prelim
Learning Intention I will learn about the standard algorithm for input validation.
Primary School Computing
UNIT-4 BLACKBOX AND WHITEBOX TESTING
Presentation transcript:

Testing Strategies COMP1 – Section 4.2. Testing

Aims At the end of this lesson you will be able to:  Explain different testing strategies  Design and carry out basic testing  Demonstrate the importance of validation of input data

What can you test?  If you planned to build a car you could plan the tests to perform BEFORE you even put a nut and bolt together I want the car to stop from 60mph to 0 in 3 seconds I want the car to accelerate from 0 – 60 in 10 seconds You could create hundreds of tests Only AFTER you had built the car could you implement the tests

Your program  The same is true of your program or project (A2)  Create a test PLAN during the design stage Then:  Create the project Then:  Test the program/project using your test plan

Testing is a big area (as is Texas)  You can not hope to test all the possible combinations in your program  For example for one input variable you could enter ever possible combination of keyboard characters, clearly infeasible (and a bit silly)  We can split up the problem. This makes it simpler to manage.

Test Plan  Think about the things your program will be doing:  Reacting to user input Choose from menus Producing outputs like invoices  Processing calculations Are the monetary values calculated correctly Does the graph show the correct figures  Validating input See 4.1. validation and error handling Give some examples.

Format of the USER test plan  User testing Test no Test dataReason for choice of test data Expected Outcome Actual Outcome Comment 1Choose menu option ‘A’ for flights only’ To see if use can make choice Go to correct holiday calculator 2

CALCULATION test plan Test no Test dataReason for choice of test data Expected Outcome Actual Outcome 7(HolPrices added) and divided by noOfHols: 1+2+3/3 To see if the average price of holidays is calculated correctly 2 3 – need to divide by No of items added to get correct result. See screen prints 5 and 6. 8People * HolPrice 3 * 30 Cost of holidays calculated correctly 90Holiday cost calculated correctly See screen print 1 Note the test numbers follow on from the user tests Note, your program does not have to work correctly in every way. SOME errors are permitted. It is actually good to show that some areas do not work but explain how you go about solving these problems.

VALIDATION test plan Tes t no Test dataExpected outcome Reason for choice of test data Actual Outcome Comment 17Age:-1rejectedBelow acceptable value - boundary 18Age:10000rejectedAbove acceptable value - invalid 19Age: Blank no-input RejectedCell contains no data - erroneous 20Age:110AcceptedUpper bound of acceptable data 21Age:1AcceptedLower bound of acceptable data 22Age:25AcceptedNormal data - valid 23Age: ARejectedErroneous data - invalid Note the test numbers follow on from the calculation tests

Testing strategies  Black box testing  White box testing  Alpha testing  Beta testing

Black box testing Referred to as ‘functional testing’  Carried out independently of the code used in the program.  Create test data that covers all the inputs and outputs and program functions by looking at the specification  Examples?

White box testing  Referred to as ‘structural testing’  Program code is studied and tests are devised which test each possible path at least once.  Weakness: you cannot test what is not there!!!  Examples?

Alpha Testing  Carried out by the software developer’s in-house testing team.  Reveals errors and omissions is systems requirements definition.

Beta Testing  Software is tested by a number of potential users who agree to use the system and report any problems.

Activity in pairs:  Download testing template.doc from Moodle->COMP1->4.2. Testing  Decide on test data  Carry out testing with neighbour – SWAP seats!  Record outcomes ! If you have extra time!:  Download zip file from Moodle in 4.2.  Use 4.2. Testing of Insurance calculator program.doc to test program

Checking your newly gained knowledge:  testing strategies – examples?  Test plan and recording tests –What needs testing?  validation of input data – Why important?

Homework  COMP1-4.1.A. Validation. Question 1 in validation and error handling section from the Book on page 225.  By Tuesday