SlideShare a Scribd company logo
UNIT TESTING
• Unit testing focuses verification effort on the
smallest unit of software design—the
software component or module
Unit Test Considerations
• The module interface is tested to ensure that
information properly flows into and out of the
program unit under test
• The local data structure is examined to ensure
that data stored temporarily maintains its
integrity during all steps in an algorithm's
execution
Among the more common errors in
computation are
• (1) misunderstood or incorrect arithmetic
precedence
• (2) mixed mode operations
• (3) incorrect initialization
• (4) precision inaccuracy
• (5) incorrect symbolic representation of an
expression
Test cases should uncover errors
• (1) comparison of different data types
• (2) incorrect logical operators or precedence
• (3) expectation of equality when precision error
makes equality unlikely
• (4) incorrect comparison of variables
• (5) improper or nonexistent loop termination
• (6) failure to exit when divergent iteration is
encountered
• (7) improperly modified loop variables
Among the potential errors that should be
tested when error handling is evaluated are
• 1. Error description is unintelligible
• 2. Error noted does not correspond to error
encountered
• 3. Error condition causes system intervention
prior to error handling
• 4. Exception-condition processing is incorrect
• 5. Error description does not provide enough
information to assist in the location of the
cause of the error
Unit Test Procedures
• Unit testing is simplified when a component
with high cohesion is designed
• When only one function is addressed by a
component, the number of test cases is
reduced and errors can be more easily
predicted and uncovered
VALIDATION TESTING
• The process of evaluating software during the
development process or at the end of the
development process to determine whether it
satisfies specified business requirements
• Validation Testing ensures that the product
actually meets the client's needs
• Are we building the right product
Validation Testing - Workflow
• The alpha test is conducted at the developer's
site by a customer
• The beta test is conducted at one or more
customer sites by the end-user of the software
• Unlike alpha testing, the developer is generally
not present
• Therefore, the beta test is a "live" application of
the software in an environment that cannot be
controlled by the developer
SYSTEM TESTING
• Ultimately, software is incorporated with other system
elements (e.g., hardware, people, information), and a
series of system integration and validation tests are
conducted
• These tests fall outside the scope of the software process
and are not conducted solely by software engineers
• However, steps taken during software design and testing
can greatly improve the probability of successful software
integration in the larger system
• A classic system testing problem is "finger-pointing”
• This occurs when an error is uncovered, and each system
element developer blames the other for the problem
• System testing is actually a series of different tests whose
primary purpose is to fully exercise the computer-based
system
• Here each test has a different purpose, all work to verify
that system elements have been properly integrated and
perform allocated functions
• There are different types of System tests that can be
performed given here:
• Recovery Testing
• Security Testing
• Stress Testing
• Performance Testing
Recovery Testing
• Computer Based Systems must recover from faults and resume
processing within a pre-specified time
• Sometimes, a system must be fault tolerant, that is, processing
faults must not cause overall system function to cease
• In other cases, a system failure must be corrected within a specified
period of time or severe economic damage will occur
• Recovery testing is a system test that forces the software to fail in a
variety of ways and verifies that recovery is properly performed
• If recovery is automatic (performed by the system itself), re-
initialization, check pointing mechanisms, data recovery, and restart
are evaluated for correctness
• If recovery requires human intervention, the mean-time-to-repair
(MTTR) is evaluated to determine whether it is within acceptable
limits.
Security Testing
• Computer-based system that manages sensitive
information or causes actions that can improperly
harm (or benefit) individuals is a target for
improper or illegal penetration
• hackers who attempt to penetrate systems for
sport, disgruntled employees who attempt to
penetrate for revenge, dishonest individuals who
attempt to penetrate for illicit personal gain
• Security testing attempts to verify that protection
mechanisms built into a system, in fact, protect it
from improper penetration or Not
Security Testing
• During security testing, the tester plays the role(s) of the individual
who desires to penetrate the system
• The tester may attempt to acquire passwords through external
clerical means, may attack the system with custom software
designed to breakdown any defenses that have been constructed
• may overwhelm the system, thereby denying service to others may
purposely cause system errors, hoping to penetrate during recovery
• may browse through insecure data, hoping to find the key to system
entry
• Given enough time and resources, good security testing will
ultimately penetrate a system
• The role of the system designer is to make penetration cost more
than the value of the information that will be obtained.
Stress Testing
• Stress tests are designed to confront programs with
abnormal situations
• The tester who performs stress testing asks:
• "How high can we crank this up before it fails?
• “Stress testing executes a system in a manner that
demands resources in abnormal quantity, frequency, or
volume
• E.g. Special tests may be designed that generate ten
interrupts per second, when one or two is the average rate,
• Input data rates may be increased by an order of
magnitude to determine how input functions will respond,
• Test cases that require maximum memory or other
resources are executed,
Stress Testing
• 4) Test cases that may cause thrashing in a virtual operating system
are designed
• 5) Test cases that may cause excessive hunting for disk-resident
data are created.
• Essentially, the tester attempts to break the program
• A variation of stress testing is a technique called sensitivity testing
• Sometimes, a very small range of data contained within the bounds
of valid data for a program may cause extreme erroneous
processing or profound performance degradation
• Sensitivity testing attempts to uncover data combinations within
valid input classes that may cause instability or improper
processing.
Performance Testing
• For real-time and embedded systems, software that
provides required function but does not conform to
performance requirements is unacceptable
• Performance testing is designed to test the run-time
performance of software within the context of an
integrated system
• Performance testing occurs throughout all steps in the
testing process
• Even at the unit level, the performance of an individual
module may be assessed as white-box tests are
conducted.
Performance Testing
• However, it is not until all system elements are fully integrated that
the true performance of a system can be ascertained
• Performance tests are often coupled with stress testing and usually
require both hardware and software instrumentation
• That is, it is often necessary to measure resource utilization (e.g.,
processor cycles) in an exacting fashion
• External instrumentation can monitor execution intervals, log
events (e.g., interrupts) as they occur, and sample machine states
on a regular basis
• By instrumenting a system, the tester can uncover situations that
lead to degradation and possible system failure

More Related Content

What's hot

Requirement Engineering.ppt
Requirement Engineering.pptRequirement Engineering.ppt
Requirement Engineering.ppt
DrTThendralCompSci
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Software engineering 12 process quality metrics
Software engineering 12 process quality metricsSoftware engineering 12 process quality metrics
Software engineering 12 process quality metrics
Vaibhav Khanna
 
software quality
software qualitysoftware quality
software quality
preetikapri1
 
Introduction to software engineering
Introduction to software engineeringIntroduction to software engineering
Introduction to software engineering
Hitesh Mohapatra
 
Introduction to Software Engineering SE1
Introduction to Software Engineering SE1Introduction to Software Engineering SE1
Introduction to Software Engineering SE1koolkampus
 
Software Engineering (Introduction to Software Engineering)
Software Engineering (Introduction to Software Engineering)Software Engineering (Introduction to Software Engineering)
Software Engineering (Introduction to Software Engineering)
ShudipPal
 
Software Project Management (lecture 3)
Software Project Management (lecture 3)Software Project Management (lecture 3)
Software Project Management (lecture 3)Syed Muhammad Hammad
 
Unit 3
Unit 3Unit 3
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
University of Sargodha
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process Models
Atul Karmyal
 
Architecture design in software engineering
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineering
Preeti Mishra
 
Agile development, software engineering
Agile development, software engineeringAgile development, software engineering
Agile development, software engineering
Rupesh Vaishnav
 
Software project management- Software Engineering
Software project management- Software EngineeringSoftware project management- Software Engineering
Software project management- Software Engineering
Muhammad Yousuf Abdul Qadir
 
SWE-401 - 1. Introduction to Software Engineering
SWE-401 - 1. Introduction to Software EngineeringSWE-401 - 1. Introduction to Software Engineering
SWE-401 - 1. Introduction to Software Engineering
ghayour abbas
 
Software Engineering Process Models
Software Engineering Process Models Software Engineering Process Models
Software Engineering Process Models
Satya P. Joshi
 
Software engineering 13 software product metrics
Software engineering 13 software product metricsSoftware engineering 13 software product metrics
Software engineering 13 software product metrics
Vaibhav Khanna
 
Software metrics
Software metricsSoftware metrics
Software metrics
Dr. C.V. Suresh Babu
 

What's hot (20)

Requirement Engineering.ppt
Requirement Engineering.pptRequirement Engineering.ppt
Requirement Engineering.ppt
 
Introduction to Software Engineering
Introduction to Software EngineeringIntroduction to Software Engineering
Introduction to Software Engineering
 
Slides chapter 2
Slides chapter 2Slides chapter 2
Slides chapter 2
 
Software engineering 12 process quality metrics
Software engineering 12 process quality metricsSoftware engineering 12 process quality metrics
Software engineering 12 process quality metrics
 
software quality
software qualitysoftware quality
software quality
 
Introduction to software engineering
Introduction to software engineeringIntroduction to software engineering
Introduction to software engineering
 
Introduction to Software Engineering SE1
Introduction to Software Engineering SE1Introduction to Software Engineering SE1
Introduction to Software Engineering SE1
 
Software Engineering (Introduction to Software Engineering)
Software Engineering (Introduction to Software Engineering)Software Engineering (Introduction to Software Engineering)
Software Engineering (Introduction to Software Engineering)
 
Software Project Management (lecture 3)
Software Project Management (lecture 3)Software Project Management (lecture 3)
Software Project Management (lecture 3)
 
Unit 3
Unit 3Unit 3
Unit 3
 
Requirement Engineering
Requirement EngineeringRequirement Engineering
Requirement Engineering
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Software Process Models
Software Process ModelsSoftware Process Models
Software Process Models
 
Architecture design in software engineering
Architecture design in software engineeringArchitecture design in software engineering
Architecture design in software engineering
 
Agile development, software engineering
Agile development, software engineeringAgile development, software engineering
Agile development, software engineering
 
Software project management- Software Engineering
Software project management- Software EngineeringSoftware project management- Software Engineering
Software project management- Software Engineering
 
SWE-401 - 1. Introduction to Software Engineering
SWE-401 - 1. Introduction to Software EngineeringSWE-401 - 1. Introduction to Software Engineering
SWE-401 - 1. Introduction to Software Engineering
 
Software Engineering Process Models
Software Engineering Process Models Software Engineering Process Models
Software Engineering Process Models
 
Software engineering 13 software product metrics
Software engineering 13 software product metricsSoftware engineering 13 software product metrics
Software engineering 13 software product metrics
 
Software metrics
Software metricsSoftware metrics
Software metrics
 

Similar to UNIT TESTING.pptx

testing strategies and tactics
 testing strategies and tactics testing strategies and tactics
testing strategies and tactics
Preeti Mishra
 
Module V - Software Testing Strategies.pdf
Module V - Software Testing Strategies.pdfModule V - Software Testing Strategies.pdf
Module V - Software Testing Strategies.pdf
adhithanr
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
Alpana Bhaskar
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
Raviteja Chowdary Adusumalli
 
ISTQB foundation level - day 2
ISTQB foundation level - day 2ISTQB foundation level - day 2
ISTQB foundation level - day 2
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
SHREEHARI WADAWADAGI
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
Saqib Raza
 
Fundamentals of software part 1
Fundamentals of software part 1Fundamentals of software part 1
Fundamentals of software part 1
Siddharth Sharma
 
Testing strategies,techniques & test case SE
Testing strategies,techniques & test case SETesting strategies,techniques & test case SE
Testing strategies,techniques & test case SE
Meet1020
 
SENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptxSENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptx
MinsasWorld
 
Performance Testing And Its Type | Benefits Of Performance Testing
Performance Testing And Its Type | Benefits Of Performance TestingPerformance Testing And Its Type | Benefits Of Performance Testing
Performance Testing And Its Type | Benefits Of Performance Testing
KostCare
 
Software testing-and-analysis
Software testing-and-analysisSoftware testing-and-analysis
Software testing-and-analysis
WBUTTUTORIALS
 
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
ShudipPal
 
unit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptxunit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptx
PriyaFulpagare1
 
Software testing
Software testingSoftware testing
Software testing
Preeti Mishra
 
Software engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designSoftware engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit design
Maitree Patel
 
Agile Acceptance testing with Fitnesse
Agile Acceptance testing with FitnesseAgile Acceptance testing with Fitnesse
Agile Acceptance testing with Fitnesse
ClareMcLennan
 
Testing- Fundamentals of Testing-Mazenet solution
Testing- Fundamentals of Testing-Mazenet solutionTesting- Fundamentals of Testing-Mazenet solution
Testing- Fundamentals of Testing-Mazenet solution
Mazenetsolution
 

Similar to UNIT TESTING.pptx (20)

testing strategies and tactics
 testing strategies and tactics testing strategies and tactics
testing strategies and tactics
 
Module V - Software Testing Strategies.pdf
Module V - Software Testing Strategies.pdfModule V - Software Testing Strategies.pdf
Module V - Software Testing Strategies.pdf
 
Software Testing Strategies
Software Testing StrategiesSoftware Testing Strategies
Software Testing Strategies
 
Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Sw testing
Sw testingSw testing
Sw testing
 
ISTQB foundation level - day 2
ISTQB foundation level - day 2ISTQB foundation level - day 2
ISTQB foundation level - day 2
 
Chapter 13 software testing strategies
Chapter 13 software testing strategiesChapter 13 software testing strategies
Chapter 13 software testing strategies
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 
Fundamentals of software part 1
Fundamentals of software part 1Fundamentals of software part 1
Fundamentals of software part 1
 
Testing strategies,techniques & test case SE
Testing strategies,techniques & test case SETesting strategies,techniques & test case SE
Testing strategies,techniques & test case SE
 
SENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptxSENG202-v-and-v-modeling_121810.pptx
SENG202-v-and-v-modeling_121810.pptx
 
Performance Testing And Its Type | Benefits Of Performance Testing
Performance Testing And Its Type | Benefits Of Performance TestingPerformance Testing And Its Type | Benefits Of Performance Testing
Performance Testing And Its Type | Benefits Of Performance Testing
 
Software testing-and-analysis
Software testing-and-analysisSoftware testing-and-analysis
Software testing-and-analysis
 
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
Software Engineering (Software Quality Assurance & Testing: Supplementary Mat...
 
6. oose testing
6. oose testing6. oose testing
6. oose testing
 
unit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptxunit-2_20-july-2018 (1).pptx
unit-2_20-july-2018 (1).pptx
 
Software testing
Software testingSoftware testing
Software testing
 
Software engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit designSoftware engineering Testing technique,test case,test suit design
Software engineering Testing technique,test case,test suit design
 
Agile Acceptance testing with Fitnesse
Agile Acceptance testing with FitnesseAgile Acceptance testing with Fitnesse
Agile Acceptance testing with Fitnesse
 
Testing- Fundamentals of Testing-Mazenet solution
Testing- Fundamentals of Testing-Mazenet solutionTesting- Fundamentals of Testing-Mazenet solution
Testing- Fundamentals of Testing-Mazenet solution
 

More from DrTThendralCompSci

Loader and linker.pptx
Loader and linker.pptxLoader and linker.pptx
Loader and linker.pptx
DrTThendralCompSci
 
The Application Layer.ppt
The Application Layer.pptThe Application Layer.ppt
The Application Layer.ppt
DrTThendralCompSci
 
Transport Layer.pptx
Transport Layer.pptxTransport Layer.pptx
Transport Layer.pptx
DrTThendralCompSci
 
Software Configuration Management.ppt
Software Configuration Management.pptSoftware Configuration Management.ppt
Software Configuration Management.ppt
DrTThendralCompSci
 
Wireless LANs PPT.ppt
Wireless LANs PPT.pptWireless LANs PPT.ppt
Wireless LANs PPT.ppt
DrTThendralCompSci
 
NETWORK LAYER.ppt
NETWORK LAYER.pptNETWORK LAYER.ppt
NETWORK LAYER.ppt
DrTThendralCompSci
 
Bluetooth.ppt
Bluetooth.pptBluetooth.ppt
Bluetooth.ppt
DrTThendralCompSci
 
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
MEDIUM-ACCESS CONTROL SUB LAYER.pptMEDIUM-ACCESS CONTROL SUB LAYER.ppt
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
DrTThendralCompSci
 
Ethernet.ppt
Ethernet.pptEthernet.ppt
Ethernet.ppt
DrTThendralCompSci
 
DATA-LINK LAYER.ppt
DATA-LINK LAYER.pptDATA-LINK LAYER.ppt
DATA-LINK LAYER.ppt
DrTThendralCompSci
 
Unit 1 - Introduction to Software Engineering.ppt
Unit 1 - Introduction to Software Engineering.pptUnit 1 - Introduction to Software Engineering.ppt
Unit 1 - Introduction to Software Engineering.ppt
DrTThendralCompSci
 
UNIT I.ppt
UNIT I.pptUNIT I.ppt
UNIT I.ppt
DrTThendralCompSci
 
PHYSICAL LAYER.ppt
PHYSICAL LAYER.pptPHYSICAL LAYER.ppt
PHYSICAL LAYER.ppt
DrTThendralCompSci
 
COMPUTER NETWORK
COMPUTER NETWORKCOMPUTER NETWORK
COMPUTER NETWORK
DrTThendralCompSci
 

More from DrTThendralCompSci (14)

Loader and linker.pptx
Loader and linker.pptxLoader and linker.pptx
Loader and linker.pptx
 
The Application Layer.ppt
The Application Layer.pptThe Application Layer.ppt
The Application Layer.ppt
 
Transport Layer.pptx
Transport Layer.pptxTransport Layer.pptx
Transport Layer.pptx
 
Software Configuration Management.ppt
Software Configuration Management.pptSoftware Configuration Management.ppt
Software Configuration Management.ppt
 
Wireless LANs PPT.ppt
Wireless LANs PPT.pptWireless LANs PPT.ppt
Wireless LANs PPT.ppt
 
NETWORK LAYER.ppt
NETWORK LAYER.pptNETWORK LAYER.ppt
NETWORK LAYER.ppt
 
Bluetooth.ppt
Bluetooth.pptBluetooth.ppt
Bluetooth.ppt
 
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
MEDIUM-ACCESS CONTROL SUB LAYER.pptMEDIUM-ACCESS CONTROL SUB LAYER.ppt
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
 
Ethernet.ppt
Ethernet.pptEthernet.ppt
Ethernet.ppt
 
DATA-LINK LAYER.ppt
DATA-LINK LAYER.pptDATA-LINK LAYER.ppt
DATA-LINK LAYER.ppt
 
Unit 1 - Introduction to Software Engineering.ppt
Unit 1 - Introduction to Software Engineering.pptUnit 1 - Introduction to Software Engineering.ppt
Unit 1 - Introduction to Software Engineering.ppt
 
UNIT I.ppt
UNIT I.pptUNIT I.ppt
UNIT I.ppt
 
PHYSICAL LAYER.ppt
PHYSICAL LAYER.pptPHYSICAL LAYER.ppt
PHYSICAL LAYER.ppt
 
COMPUTER NETWORK
COMPUTER NETWORKCOMPUTER NETWORK
COMPUTER NETWORK
 

Recently uploaded

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 

Recently uploaded (20)

special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 

UNIT TESTING.pptx

  • 2. • Unit testing focuses verification effort on the smallest unit of software design—the software component or module
  • 4. • The module interface is tested to ensure that information properly flows into and out of the program unit under test • The local data structure is examined to ensure that data stored temporarily maintains its integrity during all steps in an algorithm's execution
  • 5. Among the more common errors in computation are • (1) misunderstood or incorrect arithmetic precedence • (2) mixed mode operations • (3) incorrect initialization • (4) precision inaccuracy • (5) incorrect symbolic representation of an expression
  • 6. Test cases should uncover errors • (1) comparison of different data types • (2) incorrect logical operators or precedence • (3) expectation of equality when precision error makes equality unlikely • (4) incorrect comparison of variables • (5) improper or nonexistent loop termination • (6) failure to exit when divergent iteration is encountered • (7) improperly modified loop variables
  • 7. Among the potential errors that should be tested when error handling is evaluated are • 1. Error description is unintelligible • 2. Error noted does not correspond to error encountered • 3. Error condition causes system intervention prior to error handling • 4. Exception-condition processing is incorrect • 5. Error description does not provide enough information to assist in the location of the cause of the error
  • 8.
  • 9. Unit Test Procedures • Unit testing is simplified when a component with high cohesion is designed • When only one function is addressed by a component, the number of test cases is reduced and errors can be more easily predicted and uncovered
  • 10. VALIDATION TESTING • The process of evaluating software during the development process or at the end of the development process to determine whether it satisfies specified business requirements • Validation Testing ensures that the product actually meets the client's needs • Are we building the right product
  • 12. • The alpha test is conducted at the developer's site by a customer • The beta test is conducted at one or more customer sites by the end-user of the software • Unlike alpha testing, the developer is generally not present • Therefore, the beta test is a "live" application of the software in an environment that cannot be controlled by the developer
  • 13. SYSTEM TESTING • Ultimately, software is incorporated with other system elements (e.g., hardware, people, information), and a series of system integration and validation tests are conducted • These tests fall outside the scope of the software process and are not conducted solely by software engineers • However, steps taken during software design and testing can greatly improve the probability of successful software integration in the larger system • A classic system testing problem is "finger-pointing” • This occurs when an error is uncovered, and each system element developer blames the other for the problem
  • 14. • System testing is actually a series of different tests whose primary purpose is to fully exercise the computer-based system • Here each test has a different purpose, all work to verify that system elements have been properly integrated and perform allocated functions • There are different types of System tests that can be performed given here: • Recovery Testing • Security Testing • Stress Testing • Performance Testing
  • 15. Recovery Testing • Computer Based Systems must recover from faults and resume processing within a pre-specified time • Sometimes, a system must be fault tolerant, that is, processing faults must not cause overall system function to cease • In other cases, a system failure must be corrected within a specified period of time or severe economic damage will occur • Recovery testing is a system test that forces the software to fail in a variety of ways and verifies that recovery is properly performed • If recovery is automatic (performed by the system itself), re- initialization, check pointing mechanisms, data recovery, and restart are evaluated for correctness • If recovery requires human intervention, the mean-time-to-repair (MTTR) is evaluated to determine whether it is within acceptable limits.
  • 16. Security Testing • Computer-based system that manages sensitive information or causes actions that can improperly harm (or benefit) individuals is a target for improper or illegal penetration • hackers who attempt to penetrate systems for sport, disgruntled employees who attempt to penetrate for revenge, dishonest individuals who attempt to penetrate for illicit personal gain • Security testing attempts to verify that protection mechanisms built into a system, in fact, protect it from improper penetration or Not
  • 17. Security Testing • During security testing, the tester plays the role(s) of the individual who desires to penetrate the system • The tester may attempt to acquire passwords through external clerical means, may attack the system with custom software designed to breakdown any defenses that have been constructed • may overwhelm the system, thereby denying service to others may purposely cause system errors, hoping to penetrate during recovery • may browse through insecure data, hoping to find the key to system entry • Given enough time and resources, good security testing will ultimately penetrate a system • The role of the system designer is to make penetration cost more than the value of the information that will be obtained.
  • 18. Stress Testing • Stress tests are designed to confront programs with abnormal situations • The tester who performs stress testing asks: • "How high can we crank this up before it fails? • “Stress testing executes a system in a manner that demands resources in abnormal quantity, frequency, or volume • E.g. Special tests may be designed that generate ten interrupts per second, when one or two is the average rate, • Input data rates may be increased by an order of magnitude to determine how input functions will respond, • Test cases that require maximum memory or other resources are executed,
  • 19. Stress Testing • 4) Test cases that may cause thrashing in a virtual operating system are designed • 5) Test cases that may cause excessive hunting for disk-resident data are created. • Essentially, the tester attempts to break the program • A variation of stress testing is a technique called sensitivity testing • Sometimes, a very small range of data contained within the bounds of valid data for a program may cause extreme erroneous processing or profound performance degradation • Sensitivity testing attempts to uncover data combinations within valid input classes that may cause instability or improper processing.
  • 20. Performance Testing • For real-time and embedded systems, software that provides required function but does not conform to performance requirements is unacceptable • Performance testing is designed to test the run-time performance of software within the context of an integrated system • Performance testing occurs throughout all steps in the testing process • Even at the unit level, the performance of an individual module may be assessed as white-box tests are conducted.
  • 21. Performance Testing • However, it is not until all system elements are fully integrated that the true performance of a system can be ascertained • Performance tests are often coupled with stress testing and usually require both hardware and software instrumentation • That is, it is often necessary to measure resource utilization (e.g., processor cycles) in an exacting fashion • External instrumentation can monitor execution intervals, log events (e.g., interrupts) as they occur, and sample machine states on a regular basis • By instrumenting a system, the tester can uncover situations that lead to degradation and possible system failure