SlideShare ist ein Scribd-Unternehmen logo
1 von 34
Introduction To Software Testing
Index
• Definition
• Why Software Testing is important?
• Software Testing Types
• Software Testing Levels
• How to write a test case?
2
Definition
• Software testing is a process used to identify
the correctness, completeness and quality of
developed computer software. It includes as
set of activities conducted with the intent of
finding errors in software so that it could be
corrected before the product is released to
the end user.
3
Why Software Testing is
important?
5
Software Testing Types
Software testing types
• White box Testing
• Black box Testing
• Gray box Testing
7
WHITE BOX TESTING
8
• White box testing is also called glass testing or
open box testing. In order to perform white
box testing on an application, the tester needs
to possess knowledge of the internal working
of the code.
• The tester needs to have a look inside the
source code and find out which unit/chunk of
the code is behaving inappropriately.
9
Black box Testing
• The tester only knows the inputs and what the
expected outcomes should be and not how
the program arrives at those outputs.
• The tester does not ever examine the
programming code and does not need any
further knowledge of the program other than
its specifications.
12
Gray box Testing
• Gray box testing, also called gray box analysis,
is a strategy for software debugging based on
limited knowledge of the internal details of
the program. A gray box is a device, program
or system whose workings are partially
understood.
15
Software Testing Levels
Unit Testing
• Unit is the smallest testable part of an
application.
• Unit tests are created by programmers or
occasionally by white box testers during the
development process to ensure that code
meets its design and behaves as intended.
21
• Unit tests find problems early in development
cycle.
• In object oriented programming a unit could
be a class or an individual method or a
standalone module.
22
Example
• Consider the login
module
Login
Username:
Password:
Typical unit test cases are:
1. Credentials are valid
2. Credentials are
invalid
3. Empty textboxes
23
Integration Testing
• Integration testing combines unit tested
modules and tests how they interact
• Any errors discovered when combining units
are likely related to the interface between
units.
25
Example (balance transfer scenario)
• In a banking application user
is using current balance
module. His current balance is
1000$.
• User also used transfer
module to transfer 500$ to
another account.
• When transfer is done current
balance must be 1000 – 500 =
500$
Current Balance
1000$
Transfer
-500$
500$
26
System Testing
• System testing involves the external workings
of the software from the user's perspective.
• Testing is done by a professional testing agent
on the completed software product before it
is introduced to the market.
• System testing falls under the black box
testing category of software testing.
28
Example (Banking Application)
Login
Current
Balance
Transfer Logout
29
Acceptance Testing
• Acceptance testing is usually done at client
location by the client.
• Focus of Acceptance testing is not to find
defects but to check whether the system
meets the client requirements.
31
Example (Login)
• Acceptance Test can be done in 2 ways:
– A small set of employees credentials
– A small set of customers
Login
Username:
Password:
32
How to write a test case?
• Consider The “Check login functionality” test
scenario.
• There are many possibility to check this
scenario:
1. Check response on entering a valid user and password
2. Check response on entering an invalid user or
password
3. Check response on entering empty values
• These possibilities are called test cases.
34
• Consider the test case “Check response on
entering a valid user and password”
• This test case needs input values:
» Username: alaa
» Password: 123456
• The Expected Result is: Login successful
• We must specify test steps for each test
case.
35
• For this example test steps are:
1. Launch application
2. Enter agent name
3. Enter password
4. Click Ok button
• Each Test case may have pre-conditions and
post-conditions:
– Pre: Application must be installed successfully
– Post: Login Date and Data must be stored in a
database.
36
• When test steps are finished Actual Result
must be documented.
• If Actual Result is equal to expected result the
test case is passed. If not, test failed
37
38
Any Question?

Weitere ähnliche Inhalte

Was ist angesagt?

Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
Confiz
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
medsherb
 
Types of Software testing
Types of  Software testingTypes of  Software testing
Types of Software testing
Makan Singh
 

Was ist angesagt? (20)

Software Testing or Quality Assurance
Software Testing or Quality AssuranceSoftware Testing or Quality Assurance
Software Testing or Quality Assurance
 
Types of testing
Types of testingTypes of testing
Types of testing
 
Software testing & Quality Assurance
Software testing & Quality Assurance Software testing & Quality Assurance
Software testing & Quality Assurance
 
Software testing
Software testing Software testing
Software testing
 
Software Quality Assurance
Software Quality AssuranceSoftware Quality Assurance
Software Quality Assurance
 
Testing
TestingTesting
Testing
 
Black box software testing
Black box software testingBlack box software testing
Black box software testing
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Types of software testing
Types of software testingTypes of software testing
Types of software testing
 
Software testing methods, levels and types
Software testing methods, levels and typesSoftware testing methods, levels and types
Software testing methods, levels and types
 
Software Verification & Validation
Software Verification & ValidationSoftware Verification & Validation
Software Verification & Validation
 
Software testing
Software testingSoftware testing
Software testing
 
Black Box Testing
Black Box TestingBlack Box Testing
Black Box Testing
 
Software testing principles
Software testing principlesSoftware testing principles
Software testing principles
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 
Basic software-testing-concepts
Basic software-testing-conceptsBasic software-testing-concepts
Basic software-testing-concepts
 
Software testing ppt
Software testing pptSoftware testing ppt
Software testing ppt
 
Types of Software testing
Types of  Software testingTypes of  Software testing
Types of Software testing
 
SOFTWARE TESTING
SOFTWARE TESTINGSOFTWARE TESTING
SOFTWARE TESTING
 
SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4  SOFTWARE TESTING UNIT-4
SOFTWARE TESTING UNIT-4
 

Ähnlich wie Introduction to software testing

Software testing & its technology
Software testing & its technologySoftware testing & its technology
Software testing & its technology
Hasam Panezai
 
SQA_Unit 3.pdf it is a database education
SQA_Unit 3.pdf it is a database educationSQA_Unit 3.pdf it is a database education
SQA_Unit 3.pdf it is a database education
RAVALCHIRAG1
 
software testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblbsoftware testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblb
jeyasrig
 
Sqa, test scenarios and test cases
Sqa, test scenarios and test casesSqa, test scenarios and test cases
Sqa, test scenarios and test cases
Confiz
 

Ähnlich wie Introduction to software testing (20)

Testing fundamentals
Testing fundamentalsTesting fundamentals
Testing fundamentals
 
Testing strategies,techniques & test case SE
Testing strategies,techniques & test case SETesting strategies,techniques & test case SE
Testing strategies,techniques & test case SE
 
Different Types Of Testing
Different Types Of TestingDifferent Types Of Testing
Different Types Of Testing
 
Grey box testing in software security involves assessing the security of a sy...
Grey box testing in software security involves assessing the security of a sy...Grey box testing in software security involves assessing the security of a sy...
Grey box testing in software security involves assessing the security of a sy...
 
Manual Testing software testing all slide
Manual Testing software testing all slideManual Testing software testing all slide
Manual Testing software testing all slide
 
manualtesting-170218090020 (1).pdf
manualtesting-170218090020 (1).pdfmanualtesting-170218090020 (1).pdf
manualtesting-170218090020 (1).pdf
 
Week 14 Unit Testing.pptx
Week 14  Unit Testing.pptxWeek 14  Unit Testing.pptx
Week 14 Unit Testing.pptx
 
Software testing & its technology
Software testing & its technologySoftware testing & its technology
Software testing & its technology
 
Structured system analysis and design
Structured system analysis and design Structured system analysis and design
Structured system analysis and design
 
Software testing
Software testingSoftware testing
Software testing
 
Testing Plan
Testing PlanTesting Plan
Testing Plan
 
SDLCTesting
SDLCTestingSDLCTesting
SDLCTesting
 
SQA_Unit 3.pdf it is a database education
SQA_Unit 3.pdf it is a database educationSQA_Unit 3.pdf it is a database education
SQA_Unit 3.pdf it is a database education
 
6. oose testing
6. oose testing6. oose testing
6. oose testing
 
software testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblbsoftware testing types jxnvlbnLCBNFVjnl/fknblb
software testing types jxnvlbnLCBNFVjnl/fknblb
 
System Testing.pptx
System Testing.pptxSystem Testing.pptx
System Testing.pptx
 
SE_Unit 5_DE & Testing.pdf computer networks technology
SE_Unit 5_DE & Testing.pdf computer networks technologySE_Unit 5_DE & Testing.pdf computer networks technology
SE_Unit 5_DE & Testing.pdf computer networks technology
 
Various types of software testing by kostcare | London | Waterloo
Various types of software testing by kostcare | London | WaterlooVarious types of software testing by kostcare | London | Waterloo
Various types of software testing by kostcare | London | Waterloo
 
Software Engineering (Testing Overview)
Software Engineering (Testing Overview)Software Engineering (Testing Overview)
Software Engineering (Testing Overview)
 
Sqa, test scenarios and test cases
Sqa, test scenarios and test casesSqa, test scenarios and test cases
Sqa, test scenarios and test cases
 

Mehr von Hadi Fadlallah

Mehr von Hadi Fadlallah (20)

RaDEn : A Scalable and Efficient Platform for Engineering Radiation Data
RaDEn :  A Scalable and Efficient Platform for Engineering Radiation DataRaDEn :  A Scalable and Efficient Platform for Engineering Radiation Data
RaDEn : A Scalable and Efficient Platform for Engineering Radiation Data
 
ORADIEX : A Big Data driven smart framework for real-time surveillance and an...
ORADIEX : A Big Data driven smart framework for real-time surveillance and an...ORADIEX : A Big Data driven smart framework for real-time surveillance and an...
ORADIEX : A Big Data driven smart framework for real-time surveillance and an...
 
What makes it worth becoming a Data Engineer?
What makes it worth becoming a Data Engineer?What makes it worth becoming a Data Engineer?
What makes it worth becoming a Data Engineer?
 
Introduction to Data Engineering
Introduction to Data EngineeringIntroduction to Data Engineering
Introduction to Data Engineering
 
An introduction to Business intelligence
An introduction to Business intelligenceAn introduction to Business intelligence
An introduction to Business intelligence
 
Big data lab as a service
Big data lab as a serviceBig data lab as a service
Big data lab as a service
 
Risk management and IT technologies
Risk management and IT technologiesRisk management and IT technologies
Risk management and IT technologies
 
Fog computing
Fog computingFog computing
Fog computing
 
Inertial sensors
Inertial sensors Inertial sensors
Inertial sensors
 
Big Data Integration
Big Data IntegrationBig Data Integration
Big Data Integration
 
Cloud computing pricing models
Cloud computing pricing modelsCloud computing pricing models
Cloud computing pricing models
 
Internet of things security challenges
Internet of things security challengesInternet of things security challenges
Internet of things security challenges
 
Marketing Mobile
Marketing MobileMarketing Mobile
Marketing Mobile
 
Secure Aware Routing Protocol
Secure Aware Routing ProtocolSecure Aware Routing Protocol
Secure Aware Routing Protocol
 
Bhopal disaster
Bhopal disasterBhopal disaster
Bhopal disaster
 
Penetration testing in wireless network
Penetration testing in wireless networkPenetration testing in wireless network
Penetration testing in wireless network
 
Cyber propaganda
Cyber propagandaCyber propaganda
Cyber propaganda
 
Dhcp authentication using certificates
Dhcp authentication using certificatesDhcp authentication using certificates
Dhcp authentication using certificates
 
Introduction to Data mining
Introduction to Data miningIntroduction to Data mining
Introduction to Data mining
 
Sql parametrized queries
Sql parametrized queriesSql parametrized queries
Sql parametrized queries
 

Kürzlich hochgeladen

Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
masabamasaba
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
masabamasaba
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 

Kürzlich hochgeladen (20)

VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
%+27788225528 love spells in Huntington Beach Psychic Readings, Attraction sp...
 
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 

Introduction to software testing

  • 2. Index • Definition • Why Software Testing is important? • Software Testing Types • Software Testing Levels • How to write a test case? 2
  • 3. Definition • Software testing is a process used to identify the correctness, completeness and quality of developed computer software. It includes as set of activities conducted with the intent of finding errors in software so that it could be corrected before the product is released to the end user. 3
  • 4. Why Software Testing is important?
  • 5. 5
  • 7. Software testing types • White box Testing • Black box Testing • Gray box Testing 7
  • 9. • White box testing is also called glass testing or open box testing. In order to perform white box testing on an application, the tester needs to possess knowledge of the internal working of the code. • The tester needs to have a look inside the source code and find out which unit/chunk of the code is behaving inappropriately. 9
  • 11. • The tester only knows the inputs and what the expected outcomes should be and not how the program arrives at those outputs. • The tester does not ever examine the programming code and does not need any further knowledge of the program other than its specifications. 12
  • 13. • Gray box testing, also called gray box analysis, is a strategy for software debugging based on limited knowledge of the internal details of the program. A gray box is a device, program or system whose workings are partially understood. 15
  • 16. • Unit is the smallest testable part of an application. • Unit tests are created by programmers or occasionally by white box testers during the development process to ensure that code meets its design and behaves as intended. 21
  • 17. • Unit tests find problems early in development cycle. • In object oriented programming a unit could be a class or an individual method or a standalone module. 22
  • 18. Example • Consider the login module Login Username: Password: Typical unit test cases are: 1. Credentials are valid 2. Credentials are invalid 3. Empty textboxes 23
  • 20. • Integration testing combines unit tested modules and tests how they interact • Any errors discovered when combining units are likely related to the interface between units. 25
  • 21. Example (balance transfer scenario) • In a banking application user is using current balance module. His current balance is 1000$. • User also used transfer module to transfer 500$ to another account. • When transfer is done current balance must be 1000 – 500 = 500$ Current Balance 1000$ Transfer -500$ 500$ 26
  • 23. • System testing involves the external workings of the software from the user's perspective. • Testing is done by a professional testing agent on the completed software product before it is introduced to the market. • System testing falls under the black box testing category of software testing. 28
  • 26. • Acceptance testing is usually done at client location by the client. • Focus of Acceptance testing is not to find defects but to check whether the system meets the client requirements. 31
  • 27. Example (Login) • Acceptance Test can be done in 2 ways: – A small set of employees credentials – A small set of customers Login Username: Password: 32
  • 28. How to write a test case?
  • 29. • Consider The “Check login functionality” test scenario. • There are many possibility to check this scenario: 1. Check response on entering a valid user and password 2. Check response on entering an invalid user or password 3. Check response on entering empty values • These possibilities are called test cases. 34
  • 30. • Consider the test case “Check response on entering a valid user and password” • This test case needs input values: » Username: alaa » Password: 123456 • The Expected Result is: Login successful • We must specify test steps for each test case. 35
  • 31. • For this example test steps are: 1. Launch application 2. Enter agent name 3. Enter password 4. Click Ok button • Each Test case may have pre-conditions and post-conditions: – Pre: Application must be installed successfully – Post: Login Date and Data must be stored in a database. 36
  • 32. • When test steps are finished Actual Result must be documented. • If Actual Result is equal to expected result the test case is passed. If not, test failed 37
  • 33. 38