SlideShare une entreprise Scribd logo
1  sur  29
Testing
Testing
Testing begins at the analysis and design stages,
with prototypes being developed
It is much more cost effective to fix problems at
earlier stages of the software development process
Testing
The purpose of testing is to
to identify errors
to ensure that software is fit for purpose
to ensure that code is efficient
to ensure that code is maintainable
Test plan
Selecting appropriate test data sets is important, so we
need to create a test plan
Expected results should be known in advance (so the
actual output can be checked against expected output)
Test Data Sets
Normal
Extreme
Exceptional
Test Data Sets
Normal Data
A normal data set should be tested to show that the
program works as expected.
Test Data Sets
Extreme Data
Extreme data is used to test the boundary limits within
a program.
Test Data Sets
Exceptional Data
Exceptional data is used to test that the program can
properly handle unexpected inputs.
Comprehensive testing
Software should undergo comprehensive testing
This means testing against a range of normal,
exceptional and extreme data
It does not mean running a program a couple of times
to find that it works OK.
Phases of testing
1. Procedure / Module Testing
Individual code procedures and modules tested
2. Integration Testing
Test the modules work together
3. System Testing
Test overall system
4. Acceptance Testing
Customer tests program against their specification
5. Alpha and Beta Testing
Put the software out to users to test
Who tests?
Initially, tests are carried out by the development team
Acceptance testing is carried out by the client
The final alpha and beta test are carried out by a select
band of users. It is becoming common for software beta
programs to be freely downloadable
Syntax Errors
Syntax errors are errors which appear in your code
and can be misspelled keywords or using the
language incorrectly
Often software development environments will
highlight syntax errors for you
Syntax errors are the most common type of errors
Syntax Errors
Run-time (execution) Errors
Run-time errors are those that appear when you run
your code
The syntax is correct, but the program fails to
execute
Run-time (execution) Errors
Logic Errors
Logic errors are those that appear when the program
is running
They will not cause the program to crash but will
produce unwanted or unexpected results
Logic Errors
Testing Techniques
Dry Runs
Trace Tables
Breakpoints
Dry Runs
Stepping through each line of the program code,
manually working out on the values of variables in a
table
The tester/developer works as the computer
Trace Table
A trace table is used to store the current value of
each variable as the programmer steps through the
dry run program line by line
Trace Table
SET savings TO 60
SET pocket_money TO 10
REPEAT WITH month FROM 1 to 4
SET savings TO savings + pocket_money
END REPEAT
Trace Table
SET savings TO 60
SET pocket_money TO 10
REPEAT WITH month FROM 1 to 4
SET savings TO savings + pocket_money
END REPEAT
Trace Table
SET savings TO 60
SET pocket_money TO 10
REPEAT WITH month FROM 1 to 4
SET savings TO savings + pocket_money
END REPEAT
Trace Table
SET savings TO 60
SET pocket_money TO 10
REPEAT WITH month FROM 1 to 4
SET savings TO savings + pocket_money
END REPEAT
Trace Table
SET savings TO 60
SET pocket_money TO 10
REPEAT WITH month FROM 1 to 4
SET savings TO savings + pocket_money
END REPEAT
Trace Table
SET savings TO 60
SET pocket_money TO 10
REPEAT WITH month FROM 1 to 4
SET savings TO savings + pocket_money
END REPEAT
Breakpoints
A breakpoint is used to stop a program at a
particular line of code
The programmer can then examine the value of
variables at this point
Can also then step through subsequent lines of code
one at a time
Breakpoints
In this example, a breakpoint has been added to test
whether or not the code within the IF statement is actually
run
We can see it has. We can also check the state of
variables
Testing removes all bugs...
...wrong!
Testing can only convince us of the presence of errors,
and not of their absence.
Testing can never prove conclusively that a program is
correct. No matter how exhaustive the testing, it will
always be possible for the system to contain errors
which have not been detected.

Contenu connexe

Tendances

Reporting On The Testing Process
Reporting On The Testing ProcessReporting On The Testing Process
Reporting On The Testing Process
gavhays
 
Mi0033 software engineering
Mi0033  software engineeringMi0033  software engineering
Mi0033 software engineering
smumbahelp
 

Tendances (19)

Reporting On The Testing Process
Reporting On The Testing ProcessReporting On The Testing Process
Reporting On The Testing Process
 
2. The Software Development Process - Design
2. The Software Development Process - Design2. The Software Development Process - Design
2. The Software Development Process - Design
 
Mi0033 software engineering
Mi0033  software engineeringMi0033  software engineering
Mi0033 software engineering
 
ISDD Testing
ISDD TestingISDD Testing
ISDD Testing
 
Grace slideshare
Grace slideshareGrace slideshare
Grace slideshare
 
Software testing
Software testingSoftware testing
Software testing
 
Test automation
Test automationTest automation
Test automation
 
Development of computer program
Development of computer program Development of computer program
Development of computer program
 
Effective test coverage Techniques
Effective test coverage TechniquesEffective test coverage Techniques
Effective test coverage Techniques
 
Purpose and-objectives-of-software-testing
Purpose and-objectives-of-software-testingPurpose and-objectives-of-software-testing
Purpose and-objectives-of-software-testing
 
Testing 3: Types Of Tests That May Be Required
Testing 3: Types Of Tests That May Be RequiredTesting 3: Types Of Tests That May Be Required
Testing 3: Types Of Tests That May Be Required
 
Pitfalls of Test Automation
Pitfalls of Test AutomationPitfalls of Test Automation
Pitfalls of Test Automation
 
Innovations in Test Automation: It’s Not All about Regression
Innovations in Test Automation: It’s Not All about RegressionInnovations in Test Automation: It’s Not All about Regression
Innovations in Test Automation: It’s Not All about Regression
 
Lesson 2
Lesson 2Lesson 2
Lesson 2
 
defect tracking and management
defect tracking and management   defect tracking and management
defect tracking and management
 
Software testing
Software testingSoftware testing
Software testing
 
Top 5 pitfalls of software test automatiion
Top 5 pitfalls of software test automatiionTop 5 pitfalls of software test automatiion
Top 5 pitfalls of software test automatiion
 
Getting started with performance testing
Getting started with performance testingGetting started with performance testing
Getting started with performance testing
 
Basics of software testing webwing technologies
Basics of software testing webwing technologiesBasics of software testing webwing technologies
Basics of software testing webwing technologies
 

En vedette (13)

Virtual machines, emulators and mobile devices
Virtual machines, emulators and mobile devicesVirtual machines, emulators and mobile devices
Virtual machines, emulators and mobile devices
 
SD & D Implementation
SD & D ImplementationSD & D Implementation
SD & D Implementation
 
SD & D Standard Algorithms
SD & D Standard AlgorithmsSD & D Standard Algorithms
SD & D Standard Algorithms
 
SD & D Design
SD & D DesignSD & D Design
SD & D Design
 
SD & D Types of programming language
SD & D Types of programming languageSD & D Types of programming language
SD & D Types of programming language
 
Sample Technical Guide
Sample Technical GuideSample Technical Guide
Sample Technical Guide
 
Audio and Video
Audio and VideoAudio and Video
Audio and Video
 
SD & D Representing Text
SD & D Representing TextSD & D Representing Text
SD & D Representing Text
 
SD & D Real Numbers
SD & D Real NumbersSD & D Real Numbers
SD & D Real Numbers
 
S & D Machine code
S & D Machine codeS & D Machine code
S & D Machine code
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 
Joke task
Joke taskJoke task
Joke task
 
SD & D High and low level languages
SD & D High and low level languagesSD & D High and low level languages
SD & D High and low level languages
 

Similaire à SD & D Testing

Introduction and Role of a manual testing in a SDLC
Introduction and Role of a manual testing in a SDLC Introduction and Role of a manual testing in a SDLC
Introduction and Role of a manual testing in a SDLC
minimini22
 
Sdd Testing & Evaluating
Sdd Testing & EvaluatingSdd Testing & Evaluating
Sdd Testing & Evaluating
mary_ramsay
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
Rathna Priya
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
gavhays
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
medsherb
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
cnpltesters
 

Similaire à SD & D Testing (20)

H testing and debugging
H testing and debuggingH testing and debugging
H testing and debugging
 
Introduction and Role of a manual testing in a SDLC
Introduction and Role of a manual testing in a SDLC Introduction and Role of a manual testing in a SDLC
Introduction and Role of a manual testing in a SDLC
 
Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)Software Testing Introduction (Part 1)
Software Testing Introduction (Part 1)
 
Sdd Testing & Evaluating
Sdd Testing & EvaluatingSdd Testing & Evaluating
Sdd Testing & Evaluating
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
 
Testing concepts ppt
Testing concepts pptTesting concepts ppt
Testing concepts ppt
 
Error Correction Techniques
Error Correction TechniquesError Correction Techniques
Error Correction Techniques
 
12 sdd lesson testing and evaluating
12 sdd lesson testing and evaluating12 sdd lesson testing and evaluating
12 sdd lesson testing and evaluating
 
Testing Software Solutions
Testing Software SolutionsTesting Software Solutions
Testing Software Solutions
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
Fundamentals of testing 2
Fundamentals of testing 2Fundamentals of testing 2
Fundamentals of testing 2
 
Testing
TestingTesting
Testing
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
 
Fundamental of testing (what is testing)
Fundamental of testing (what is testing)Fundamental of testing (what is testing)
Fundamental of testing (what is testing)
 
fundamentals of testing (Fundamental of testing what)
fundamentals of testing (Fundamental of testing what)fundamentals of testing (Fundamental of testing what)
fundamentals of testing (Fundamental of testing what)
 
SE-Testing.ppt
SE-Testing.pptSE-Testing.ppt
SE-Testing.ppt
 
Abc of testing
Abc of testingAbc of testing
Abc of testing
 
White box testing
White box testingWhite box testing
White box testing
 
Fundamentals of testing what is testing (reference graham et.al (2006))
Fundamentals of testing   what is testing (reference graham et.al (2006))Fundamentals of testing   what is testing (reference graham et.al (2006))
Fundamentals of testing what is testing (reference graham et.al (2006))
 

Plus de Forrester High School

Plus de Forrester High School (20)

Program Design
Program DesignProgram Design
Program Design
 
Database Evaluation
Database EvaluationDatabase Evaluation
Database Evaluation
 
Testing SQL
Testing SQLTesting SQL
Testing SQL
 
SQL
SQLSQL
SQL
 
Database Query Design
Database Query DesignDatabase Query Design
Database Query Design
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Compound Keys
Compound KeysCompound Keys
Compound Keys
 
Entity Occurrence Diagrams
Entity Occurrence DiagramsEntity Occurrence Diagrams
Entity Occurrence Diagrams
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 
Software Evaluation
Software EvaluationSoftware Evaluation
Software Evaluation
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Standard Algorithms
Standard AlgorithmsStandard Algorithms
Standard Algorithms
 
File Handling
File HandlingFile Handling
File Handling
 
Python Predefined Functions
Python Predefined FunctionsPython Predefined Functions
Python Predefined Functions
 
Python Substrings
Python SubstringsPython Substrings
Python Substrings
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
 
Sub-programs
Sub-programsSub-programs
Sub-programs
 
Records in Python
Records in PythonRecords in Python
Records in Python
 
Parallel arrays in python
Parallel arrays in pythonParallel arrays in python
Parallel arrays in python
 

Dernier

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Dernier (20)

80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 

SD & D Testing

  • 2. Testing Testing begins at the analysis and design stages, with prototypes being developed It is much more cost effective to fix problems at earlier stages of the software development process
  • 3. Testing The purpose of testing is to to identify errors to ensure that software is fit for purpose to ensure that code is efficient to ensure that code is maintainable
  • 4. Test plan Selecting appropriate test data sets is important, so we need to create a test plan Expected results should be known in advance (so the actual output can be checked against expected output)
  • 6. Test Data Sets Normal Data A normal data set should be tested to show that the program works as expected.
  • 7. Test Data Sets Extreme Data Extreme data is used to test the boundary limits within a program.
  • 8. Test Data Sets Exceptional Data Exceptional data is used to test that the program can properly handle unexpected inputs.
  • 9. Comprehensive testing Software should undergo comprehensive testing This means testing against a range of normal, exceptional and extreme data It does not mean running a program a couple of times to find that it works OK.
  • 10. Phases of testing 1. Procedure / Module Testing Individual code procedures and modules tested 2. Integration Testing Test the modules work together 3. System Testing Test overall system 4. Acceptance Testing Customer tests program against their specification 5. Alpha and Beta Testing Put the software out to users to test
  • 11. Who tests? Initially, tests are carried out by the development team Acceptance testing is carried out by the client The final alpha and beta test are carried out by a select band of users. It is becoming common for software beta programs to be freely downloadable
  • 12. Syntax Errors Syntax errors are errors which appear in your code and can be misspelled keywords or using the language incorrectly Often software development environments will highlight syntax errors for you Syntax errors are the most common type of errors
  • 14. Run-time (execution) Errors Run-time errors are those that appear when you run your code The syntax is correct, but the program fails to execute
  • 16. Logic Errors Logic errors are those that appear when the program is running They will not cause the program to crash but will produce unwanted or unexpected results
  • 19. Dry Runs Stepping through each line of the program code, manually working out on the values of variables in a table The tester/developer works as the computer
  • 20. Trace Table A trace table is used to store the current value of each variable as the programmer steps through the dry run program line by line
  • 21. Trace Table SET savings TO 60 SET pocket_money TO 10 REPEAT WITH month FROM 1 to 4 SET savings TO savings + pocket_money END REPEAT
  • 22. Trace Table SET savings TO 60 SET pocket_money TO 10 REPEAT WITH month FROM 1 to 4 SET savings TO savings + pocket_money END REPEAT
  • 23. Trace Table SET savings TO 60 SET pocket_money TO 10 REPEAT WITH month FROM 1 to 4 SET savings TO savings + pocket_money END REPEAT
  • 24. Trace Table SET savings TO 60 SET pocket_money TO 10 REPEAT WITH month FROM 1 to 4 SET savings TO savings + pocket_money END REPEAT
  • 25. Trace Table SET savings TO 60 SET pocket_money TO 10 REPEAT WITH month FROM 1 to 4 SET savings TO savings + pocket_money END REPEAT
  • 26. Trace Table SET savings TO 60 SET pocket_money TO 10 REPEAT WITH month FROM 1 to 4 SET savings TO savings + pocket_money END REPEAT
  • 27. Breakpoints A breakpoint is used to stop a program at a particular line of code The programmer can then examine the value of variables at this point Can also then step through subsequent lines of code one at a time
  • 28. Breakpoints In this example, a breakpoint has been added to test whether or not the code within the IF statement is actually run We can see it has. We can also check the state of variables
  • 29. Testing removes all bugs... ...wrong! Testing can only convince us of the presence of errors, and not of their absence. Testing can never prove conclusively that a program is correct. No matter how exhaustive the testing, it will always be possible for the system to contain errors which have not been detected.