SlideShare a Scribd company logo
1 of 31
Software Testing
Inam Ul Haq
OOA/D, BSIT
Inam.bth@gmail.com
Guest Lecture
OOA/D, BSIT-5th, Univesity of
Education Okara
1
Observations about Testing
 “Testing is the process of executing a
program with the intention of finding
errors.” – Myers
 “Testing can show the presence of bugs
but never their absence.” - Dijkstra
OOA/D, BSIT-5th, Univesity of
Education Okara
2
Good Testing Practices
 A good test case is one that has a high
probability of detecting an undiscovered
defect, not one that shows that the
program works correctly
 It is impossible to test your own program
 A necessary part of every test case is a
description of the expected result
OOA/D, BSIT-5th, Univesity of
Education Okara
3
Good Testing Practices (cont’d)
 Avoid nonreproducible or on-the-fly testing
 Write test cases for valid as well as invalid input
conditions.
 Thoroughly inspect the results of each test case
 As the number of detected defects in a piece of
software increases, the probability of the
existence of more undetected defects also
increases
OOA/D, BSIT-5th, Univesity of
Education Okara
4
Good Testing Practices (cont’d)
 Assign your best people to testing
 Ensure that testability is a key objective
in your software design
 Never alter the program to make testing
easier
 Testing, like almost every other activity,
must start with objectives
OOA/D, BSIT-5th, Univesity of
Education Okara
5
Levels of Testing
 Unit Testing
 Integration Testing
 Validation Testing
 Regression Testing
 Alpha Testing
 Beta Testing
 Acceptance Testing
OOA/D, BSIT-5th, Univesity of
Education Okara
6
Unit Testing
 Algorithms and logic
 Data structures (global and local)
 Interfaces
 Independent paths
 Boundary conditions
 Error handling
OOA/D, BSIT-5th, Univesity of
Education Okara
7
Why Integration Testing Is Necessary
 One module can have an adverse effect
on another
 Subfunctions, when combined, may not
produce the desired major function
 Individually acceptable imprecision in
calculations may be magnified to
unacceptable levels
OOA/D, BSIT-5th, Univesity of
Education Okara
8
Why Integration Testing Is Necessary (cont’d)
 Interfacing errors not detected in unit
testing may appear
 Timing problems (in real-time systems)
are not detectable by unit testing
 Resource contention problems are not
detectable by unit testing
OOA/D, BSIT-5th, Univesity of
Education Okara
9
Validation Testing
 Determine if the software meets all of the
requirements defined in the SRS
 Having written requirements is essential
 Regression testing is performed to determine if
the software still meets all of its requirements in
light of changes and modifications to the
software
 Regression testing involves selectively
repeating existing validation tests, not
developing new tests
OOA/D, BSIT-5th, Univesity of
Education Okara
10
Alpha and Beta Testing
 It’s best to provide customers with an
outline of the things that you would like
them to focus on and specific test
scenarios for them to execute.
 Provide with customers who are actively
involved with a commitment to fix defects
that they discover.
OOA/D, BSIT-5th, Univesity of
Education Okara
11
Acceptance Testing
 Similar to validation testing except that
customers are present or directly
involved.
 Usually the tests are developed by the
customer
OOA/D, BSIT-5th, Univesity of
Education Okara
12
Test Methods
 White box or glass box testing
 Black box testing
 Top-down and bottom-up for performing
incremental integration
 ALAC (Act-like-a-customer)
OOA/D, BSIT-5th, Univesity of
Education Okara
13
Test Types
 Functional tests
 Algorithmic tests
 Positive tests
 Negative tests
 Usability tests
 Boundary tests
 Startup/shutdown tests
 Platform tests
 Load/stress tests
OOA/D, BSIT-5th, Univesity of
Education Okara
14
Test Planning
 The Test Plan – defines the scope of the
work to be performed
 The Test Procedure – a container
document that holds all of the individual
tests (test scripts) that are to be
executed
 The Test Report – documents what
occurred when the test scripts were run
OOA/D, BSIT-5th, Univesity of
Education Okara
15
Test Plan
 Questions to be answered:
 How many tests are needed?
 How long will it take to develop those tests?
 How long will it take to execute those tests?
 Topics to be addressed:
 Test estimation
 Test development and informal validation
 Validation readiness review and formal validation
 Test completion criteria
OOA/D, BSIT-5th, Univesity of
Education Okara
16
Entrance Criteria for Formal
Validation Testing
 Software development is completed (a
precise definition of “completed” is required.
 The test plan has been reviewed, approved
and is under document control.
 A requirements inspection has been
performed on the SRS.
 Design inspections have been performed on
the SDDs (Software Design Descriptions).
OOA/D, BSIT-5th, Univesity of
Education Okara
17
Entrance Criteria for Formal
Validation Testing (cont’d)
 Code inspections have been performed on all
“critical modules”.
 All test scripts are completed and the
software validation test procedure document
has been reviewed, approved, and placed
under document control.
 Selected test scripts have been reviewed,
approved and placed under document
control.
OOA/D, BSIT-5th, Univesity of
Education Okara
18
Entrance Criteria for Formal
Validation Testing (cont’d)
 All test scripts have been executed at least
once.
 CM tools are in place and all source code is
under configuration control.
 Software problem reporting procedures are in
place.
 Validation testing completion criteria have
been developed, reviewed, and approved.
OOA/D, BSIT-5th, Univesity of
Education Okara
19
Exit Criteria for Validation
Testing
 All test scripts have been executed.
 All SPRs have been satisfactorily resolved.
(Resolution could include bugs being fixed,
deferred to a later release, determined not to
be bugs, etc.) All parties must agree to the
resolution. This criterion could be further
defined to state that all high-priority bugs
must be fixed while lower-priority bugs can be
handled on a case-by-case basis.
OOA/D, BSIT-5th, Univesity of
Education Okara
20
Exit Criteria for Validation
Testing (cont’d)
 All changes made as a result of SPRs have
been tested.
 All documentation associated with the
software (such as SRS, SDD, test
documents) have been updated to reflect
changes made during validation testing.
 The test report has been reviewed and
approved.
OOA/D, BSIT-5th, Univesity of
Education Okara
21
Test Estimation
 Number of test cases required is based on:
 Testing all functions and features in the SRS
 Including an appropriate number of ALAC (Act
Like A Customer) tests including:
 Do it wrong
 Use wrong or illegal combination of inputs
 Don’t do enough
 Do nothing
 Do too much
 Achieving some test coverage goal
 Achieving a software reliability goal
OOA/D, BSIT-5th, Univesity of
Education Okara
22
Considerations in
Test Estimation
 Test Complexity – It is better to have many
small tests than few large tests.
 Different Platforms – Does testing need to be
modified for different platforms, operating
systems, etc.
 Automated or Manual Tests – Will automated
tests be developed? Automated tests take more
time to create but do not require human
intervention to run.
OOA/D, BSIT-5th, Univesity of
Education Okara
23
Estimating Tests Required
SRS
Reference
Estimated
Number of
Tests
Required
Notes
4.1.1 3 2 positive and 1 negative test
4.1.2 2 2 automated tests
4.1.3 4 4 manual tests
4.1.4 5 1 boundary condition, 2 error
conditions, 2 usability tests
…
Total 165
OOA/D, BSIT-5th, Univesity of
Education Okara
24
Estimated Test Development
Time
Estimated Number of Tests: 165
Average Test Development Time: 3.5
(person-hours/test)
Estimated Test Development Time:
577.5
(person-hours)
OOA/D, BSIT-5th, Univesity of
Education Okara
25
Estimated Test Execution
Time
Estimated Number of Tests: 165
Average Test Execution Time: 1.5
(person-hours/test)
Estimated Test Execution Time: 247.5
(person-hours)
Estimated Regression Testing (50%): 123.75
(person-hours)
Total Estimated Test Execution Time: 371.25
(person-hours)
OOA/D, BSIT-5th, Univesity of
Education Okara
26
Test Procedure
 Collection of test scripts
 An integral part of each test script is the
expected results
 The Test Procedure document should
contain an unexecuted, clean copy of
every test so that the tests may be more
easily reused
OOA/D, BSIT-5th, Univesity of
Education Okara
27
Test Report
 Completed copy of each test script with evidence
that it was executed (i.e., dated with the
signature of the person who ran the test)
 Copy of each SPR showing resolution
 List of open or unresolved SPRs
 Identification of SPRs found in each baseline
along with total number of SPRs in each baseline
 Regression tests executed for each software
baseline
OOA/D, BSIT-5th, Univesity of
Education Okara
28
Validation Test Plan
IEEE – Standard 1012-1998
1. Overview
a. Organization
b. Tasks and Schedules
c. Responsibilities
d. Tools, Techniques, Methods
2. Processes
a. Management
b. Acquisition
c. Supply
d. Development
e. Operation
f. Maintenance
OOA/D, BSIT-5th, Univesity of
Education Okara
29
Validation Test Plan
IEEE – Standard 1012-1998 (cont’d)
3. Reporting Requirements
4. Administrative Requirements
5. Documentation Requirements
6. Resource Requirements
7. Completion Criteria
OOA/D, BSIT-5th, Univesity of
Education Okara
30
Practical Usability Testing
 Capture whole page including web address
 Write briefly and clearly
 Point only main issues (bugs)
 Point one screenshot per issue
 Make final reporting document (RD) for bugs
 RD: http://jmp.sh/meF4kMP check test case demo,
choose a website and report bugs.
 Graded assignment, ask questions on ComputingForum as well
OOA/D, BSIT-5th, Univesity of
Education Okara
31

More Related Content

What's hot

SOFTWARE VERIFICATION & VALIDATION
SOFTWARE VERIFICATION & VALIDATIONSOFTWARE VERIFICATION & VALIDATION
SOFTWARE VERIFICATION & VALIDATIONAmin Bandeali
 
Software Testing and Quality Assurance unit1
Software Testing and Quality Assurance  unit1Software Testing and Quality Assurance  unit1
Software Testing and Quality Assurance unit1Bhagyashree Dhakulkar
 
Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19koolkampus
 
Software Testing Life Cycle Unit-3
Software Testing Life Cycle Unit-3Software Testing Life Cycle Unit-3
Software Testing Life Cycle Unit-3Raj vardhan
 
Intro to Software Engineering - Software Quality Assurance
Intro to Software Engineering - Software Quality AssuranceIntro to Software Engineering - Software Quality Assurance
Intro to Software Engineering - Software Quality AssuranceRadu_Negulescu
 
What is Software Quality and how to measure it?
What is Software Quality and how to measure it?What is Software Quality and how to measure it?
What is Software Quality and how to measure it?Denys Zaiats
 
Software Testing - Software Quality
Software Testing - Software QualitySoftware Testing - Software Quality
Software Testing - Software QualityAjeng Savitri
 
2 testing throughout software lifecycle
2 testing throughout software lifecycle2 testing throughout software lifecycle
2 testing throughout software lifecycleAsmaa Matar
 
Software reliability
Software reliabilitySoftware reliability
Software reliabilityAnand Kumar
 
Software QA Fundamentals by Prabhath Darshana
Software QA Fundamentals by Prabhath DarshanaSoftware QA Fundamentals by Prabhath Darshana
Software QA Fundamentals by Prabhath DarshanaShamain Peiris
 
Chapter 8 software quality assurance and configuration audit
Chapter 8 software quality assurance and configuration auditChapter 8 software quality assurance and configuration audit
Chapter 8 software quality assurance and configuration auditCliftone Mullah
 
Testing types functional and nonfunctional - Kati Holasz
Testing types   functional and nonfunctional - Kati HolaszTesting types   functional and nonfunctional - Kati Holasz
Testing types functional and nonfunctional - Kati HolaszHolasz Kati
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assuranceAman Adhikari
 

What's hot (20)

SOFTWARE VERIFICATION & VALIDATION
SOFTWARE VERIFICATION & VALIDATIONSOFTWARE VERIFICATION & VALIDATION
SOFTWARE VERIFICATION & VALIDATION
 
Software Testing and Quality Assurance unit1
Software Testing and Quality Assurance  unit1Software Testing and Quality Assurance  unit1
Software Testing and Quality Assurance unit1
 
Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19Verification and Validation in Software Engineering SE19
Verification and Validation in Software Engineering SE19
 
Software Testing Life Cycle Unit-3
Software Testing Life Cycle Unit-3Software Testing Life Cycle Unit-3
Software Testing Life Cycle Unit-3
 
Software Reliability
Software ReliabilitySoftware Reliability
Software Reliability
 
Intro to Software Engineering - Software Quality Assurance
Intro to Software Engineering - Software Quality AssuranceIntro to Software Engineering - Software Quality Assurance
Intro to Software Engineering - Software Quality Assurance
 
What is Software Quality and how to measure it?
What is Software Quality and how to measure it?What is Software Quality and how to measure it?
What is Software Quality and how to measure it?
 
Software testing
Software testingSoftware testing
Software testing
 
Software maintenance
Software maintenanceSoftware maintenance
Software maintenance
 
Software Testing - Software Quality
Software Testing - Software QualitySoftware Testing - Software Quality
Software Testing - Software Quality
 
2 testing throughout software lifecycle
2 testing throughout software lifecycle2 testing throughout software lifecycle
2 testing throughout software lifecycle
 
The importance of quality software
The importance of quality softwareThe importance of quality software
The importance of quality software
 
Software reliability
Software reliabilitySoftware reliability
Software reliability
 
SDLC vs STLC
SDLC vs STLCSDLC vs STLC
SDLC vs STLC
 
Software QA Fundamentals by Prabhath Darshana
Software QA Fundamentals by Prabhath DarshanaSoftware QA Fundamentals by Prabhath Darshana
Software QA Fundamentals by Prabhath Darshana
 
Chapter 8 software quality assurance and configuration audit
Chapter 8 software quality assurance and configuration auditChapter 8 software quality assurance and configuration audit
Chapter 8 software quality assurance and configuration audit
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
Testing types functional and nonfunctional - Kati Holasz
Testing types   functional and nonfunctional - Kati HolaszTesting types   functional and nonfunctional - Kati Holasz
Testing types functional and nonfunctional - Kati Holasz
 
Software quality assurance
Software quality assuranceSoftware quality assurance
Software quality assurance
 
Testing Throughout the Software Life Cycle - Section 2
Testing Throughout the Software Life Cycle - Section 2Testing Throughout the Software Life Cycle - Section 2
Testing Throughout the Software Life Cycle - Section 2
 

Viewers also liked (11)

Android - An Introduction
Android - An IntroductionAndroid - An Introduction
Android - An Introduction
 
Software Processes
Software ProcessesSoftware Processes
Software Processes
 
Lecture 6 DSS
Lecture 6  DSSLecture 6  DSS
Lecture 6 DSS
 
Guia de estudio 2015 para docentes en servicio 1ra. carpeta
Guia de estudio 2015 para docentes en servicio  1ra. carpetaGuia de estudio 2015 para docentes en servicio  1ra. carpeta
Guia de estudio 2015 para docentes en servicio 1ra. carpeta
 
Internet security software
Internet security softwareInternet security software
Internet security software
 
Introduction to programming languages part 2
Introduction to programming languages   part 2Introduction to programming languages   part 2
Introduction to programming languages part 2
 
Lect 2 assessing the technology landscape
Lect 2 assessing the technology landscapeLect 2 assessing the technology landscape
Lect 2 assessing the technology landscape
 
Microsoft Project
Microsoft ProjectMicrosoft Project
Microsoft Project
 
Software requirements specification
Software  requirements specificationSoftware  requirements specification
Software requirements specification
 
Software requirements specification of Library Management System
Software requirements specification of Library Management SystemSoftware requirements specification of Library Management System
Software requirements specification of Library Management System
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 

Similar to Software Testing (Usability Testing of Website) (20)

Sftware Testing
Sftware TestingSftware Testing
Sftware Testing
 
ISTQB, ISEB Lecture Notes
ISTQB, ISEB Lecture NotesISTQB, ISEB Lecture Notes
ISTQB, ISEB Lecture Notes
 
ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1ISTQB / ISEB Foundation Exam Practice -1
ISTQB / ISEB Foundation Exam Practice -1
 
Software testing
Software testingSoftware testing
Software testing
 
Software test proposal
Software test proposalSoftware test proposal
Software test proposal
 
Software testing2
Software testing2Software testing2
Software testing2
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Demo1ghjkl
Demo1ghjklDemo1ghjkl
Demo1ghjkl
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
Software testing
Software testingSoftware testing
Software testing
 
I ntroduction to software testing part1
I ntroduction to software testing part1I ntroduction to software testing part1
I ntroduction to software testing part1
 
Fundamentals of Testing Section 1/6
Fundamentals of Testing   Section 1/6Fundamentals of Testing   Section 1/6
Fundamentals of Testing Section 1/6
 
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTINGWelingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
Welingkar_final project_ppt_IMPORTANCE & NEED FOR TESTING
 
ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5ISTQB / ISEB Foundation Exam Practice - 5
ISTQB / ISEB Foundation Exam Practice - 5
 
Software Testing - SDLC Model
Software Testing - SDLC ModelSoftware Testing - SDLC Model
Software Testing - SDLC Model
 
Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_module
 
CTFL Module 01
CTFL Module 01CTFL Module 01
CTFL Module 01
 
programming testing.pdf
programming testing.pdfprogramming testing.pdf
programming testing.pdf
 

More from university of education,Lahore

More from university of education,Lahore (20)

Activites and Time Planning
 Activites and Time Planning Activites and Time Planning
Activites and Time Planning
 
Steganography
SteganographySteganography
Steganography
 
Classical Encryption Techniques
Classical Encryption TechniquesClassical Encryption Techniques
Classical Encryption Techniques
 
Activites and Time Planning
Activites and Time PlanningActivites and Time Planning
Activites and Time Planning
 
OSI Security Architecture
OSI Security ArchitectureOSI Security Architecture
OSI Security Architecture
 
Network Security Terminologies
Network Security TerminologiesNetwork Security Terminologies
Network Security Terminologies
 
Project Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk ManagementProject Scheduling, Planning and Risk Management
Project Scheduling, Planning and Risk Management
 
Software Testing and Debugging
Software Testing and DebuggingSoftware Testing and Debugging
Software Testing and Debugging
 
ePayment Methods
ePayment MethodsePayment Methods
ePayment Methods
 
SEO
SEOSEO
SEO
 
A Star Search
A Star SearchA Star Search
A Star Search
 
Enterprise Application Integration
Enterprise Application IntegrationEnterprise Application Integration
Enterprise Application Integration
 
Uml Diagrams
Uml DiagramsUml Diagrams
Uml Diagrams
 
eDras Max
eDras MaxeDras Max
eDras Max
 
RAD Model
RAD ModelRAD Model
RAD Model
 
Microsoft Project
Microsoft ProjectMicrosoft Project
Microsoft Project
 
Itertaive Process Development
Itertaive Process DevelopmentItertaive Process Development
Itertaive Process Development
 
Computer Aided Software Engineering Nayab Awan
Computer Aided Software Engineering Nayab AwanComputer Aided Software Engineering Nayab Awan
Computer Aided Software Engineering Nayab Awan
 
system level requirements gathering and analysis
system level requirements gathering and analysissystem level requirements gathering and analysis
system level requirements gathering and analysis
 
Java Script
Java ScriptJava Script
Java Script
 

Recently uploaded

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 

Recently uploaded (20)

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 

Software Testing (Usability Testing of Website)

  • 1. Software Testing Inam Ul Haq OOA/D, BSIT Inam.bth@gmail.com Guest Lecture OOA/D, BSIT-5th, Univesity of Education Okara 1
  • 2. Observations about Testing  “Testing is the process of executing a program with the intention of finding errors.” – Myers  “Testing can show the presence of bugs but never their absence.” - Dijkstra OOA/D, BSIT-5th, Univesity of Education Okara 2
  • 3. Good Testing Practices  A good test case is one that has a high probability of detecting an undiscovered defect, not one that shows that the program works correctly  It is impossible to test your own program  A necessary part of every test case is a description of the expected result OOA/D, BSIT-5th, Univesity of Education Okara 3
  • 4. Good Testing Practices (cont’d)  Avoid nonreproducible or on-the-fly testing  Write test cases for valid as well as invalid input conditions.  Thoroughly inspect the results of each test case  As the number of detected defects in a piece of software increases, the probability of the existence of more undetected defects also increases OOA/D, BSIT-5th, Univesity of Education Okara 4
  • 5. Good Testing Practices (cont’d)  Assign your best people to testing  Ensure that testability is a key objective in your software design  Never alter the program to make testing easier  Testing, like almost every other activity, must start with objectives OOA/D, BSIT-5th, Univesity of Education Okara 5
  • 6. Levels of Testing  Unit Testing  Integration Testing  Validation Testing  Regression Testing  Alpha Testing  Beta Testing  Acceptance Testing OOA/D, BSIT-5th, Univesity of Education Okara 6
  • 7. Unit Testing  Algorithms and logic  Data structures (global and local)  Interfaces  Independent paths  Boundary conditions  Error handling OOA/D, BSIT-5th, Univesity of Education Okara 7
  • 8. Why Integration Testing Is Necessary  One module can have an adverse effect on another  Subfunctions, when combined, may not produce the desired major function  Individually acceptable imprecision in calculations may be magnified to unacceptable levels OOA/D, BSIT-5th, Univesity of Education Okara 8
  • 9. Why Integration Testing Is Necessary (cont’d)  Interfacing errors not detected in unit testing may appear  Timing problems (in real-time systems) are not detectable by unit testing  Resource contention problems are not detectable by unit testing OOA/D, BSIT-5th, Univesity of Education Okara 9
  • 10. Validation Testing  Determine if the software meets all of the requirements defined in the SRS  Having written requirements is essential  Regression testing is performed to determine if the software still meets all of its requirements in light of changes and modifications to the software  Regression testing involves selectively repeating existing validation tests, not developing new tests OOA/D, BSIT-5th, Univesity of Education Okara 10
  • 11. Alpha and Beta Testing  It’s best to provide customers with an outline of the things that you would like them to focus on and specific test scenarios for them to execute.  Provide with customers who are actively involved with a commitment to fix defects that they discover. OOA/D, BSIT-5th, Univesity of Education Okara 11
  • 12. Acceptance Testing  Similar to validation testing except that customers are present or directly involved.  Usually the tests are developed by the customer OOA/D, BSIT-5th, Univesity of Education Okara 12
  • 13. Test Methods  White box or glass box testing  Black box testing  Top-down and bottom-up for performing incremental integration  ALAC (Act-like-a-customer) OOA/D, BSIT-5th, Univesity of Education Okara 13
  • 14. Test Types  Functional tests  Algorithmic tests  Positive tests  Negative tests  Usability tests  Boundary tests  Startup/shutdown tests  Platform tests  Load/stress tests OOA/D, BSIT-5th, Univesity of Education Okara 14
  • 15. Test Planning  The Test Plan – defines the scope of the work to be performed  The Test Procedure – a container document that holds all of the individual tests (test scripts) that are to be executed  The Test Report – documents what occurred when the test scripts were run OOA/D, BSIT-5th, Univesity of Education Okara 15
  • 16. Test Plan  Questions to be answered:  How many tests are needed?  How long will it take to develop those tests?  How long will it take to execute those tests?  Topics to be addressed:  Test estimation  Test development and informal validation  Validation readiness review and formal validation  Test completion criteria OOA/D, BSIT-5th, Univesity of Education Okara 16
  • 17. Entrance Criteria for Formal Validation Testing  Software development is completed (a precise definition of “completed” is required.  The test plan has been reviewed, approved and is under document control.  A requirements inspection has been performed on the SRS.  Design inspections have been performed on the SDDs (Software Design Descriptions). OOA/D, BSIT-5th, Univesity of Education Okara 17
  • 18. Entrance Criteria for Formal Validation Testing (cont’d)  Code inspections have been performed on all “critical modules”.  All test scripts are completed and the software validation test procedure document has been reviewed, approved, and placed under document control.  Selected test scripts have been reviewed, approved and placed under document control. OOA/D, BSIT-5th, Univesity of Education Okara 18
  • 19. Entrance Criteria for Formal Validation Testing (cont’d)  All test scripts have been executed at least once.  CM tools are in place and all source code is under configuration control.  Software problem reporting procedures are in place.  Validation testing completion criteria have been developed, reviewed, and approved. OOA/D, BSIT-5th, Univesity of Education Okara 19
  • 20. Exit Criteria for Validation Testing  All test scripts have been executed.  All SPRs have been satisfactorily resolved. (Resolution could include bugs being fixed, deferred to a later release, determined not to be bugs, etc.) All parties must agree to the resolution. This criterion could be further defined to state that all high-priority bugs must be fixed while lower-priority bugs can be handled on a case-by-case basis. OOA/D, BSIT-5th, Univesity of Education Okara 20
  • 21. Exit Criteria for Validation Testing (cont’d)  All changes made as a result of SPRs have been tested.  All documentation associated with the software (such as SRS, SDD, test documents) have been updated to reflect changes made during validation testing.  The test report has been reviewed and approved. OOA/D, BSIT-5th, Univesity of Education Okara 21
  • 22. Test Estimation  Number of test cases required is based on:  Testing all functions and features in the SRS  Including an appropriate number of ALAC (Act Like A Customer) tests including:  Do it wrong  Use wrong or illegal combination of inputs  Don’t do enough  Do nothing  Do too much  Achieving some test coverage goal  Achieving a software reliability goal OOA/D, BSIT-5th, Univesity of Education Okara 22
  • 23. Considerations in Test Estimation  Test Complexity – It is better to have many small tests than few large tests.  Different Platforms – Does testing need to be modified for different platforms, operating systems, etc.  Automated or Manual Tests – Will automated tests be developed? Automated tests take more time to create but do not require human intervention to run. OOA/D, BSIT-5th, Univesity of Education Okara 23
  • 24. Estimating Tests Required SRS Reference Estimated Number of Tests Required Notes 4.1.1 3 2 positive and 1 negative test 4.1.2 2 2 automated tests 4.1.3 4 4 manual tests 4.1.4 5 1 boundary condition, 2 error conditions, 2 usability tests … Total 165 OOA/D, BSIT-5th, Univesity of Education Okara 24
  • 25. Estimated Test Development Time Estimated Number of Tests: 165 Average Test Development Time: 3.5 (person-hours/test) Estimated Test Development Time: 577.5 (person-hours) OOA/D, BSIT-5th, Univesity of Education Okara 25
  • 26. Estimated Test Execution Time Estimated Number of Tests: 165 Average Test Execution Time: 1.5 (person-hours/test) Estimated Test Execution Time: 247.5 (person-hours) Estimated Regression Testing (50%): 123.75 (person-hours) Total Estimated Test Execution Time: 371.25 (person-hours) OOA/D, BSIT-5th, Univesity of Education Okara 26
  • 27. Test Procedure  Collection of test scripts  An integral part of each test script is the expected results  The Test Procedure document should contain an unexecuted, clean copy of every test so that the tests may be more easily reused OOA/D, BSIT-5th, Univesity of Education Okara 27
  • 28. Test Report  Completed copy of each test script with evidence that it was executed (i.e., dated with the signature of the person who ran the test)  Copy of each SPR showing resolution  List of open or unresolved SPRs  Identification of SPRs found in each baseline along with total number of SPRs in each baseline  Regression tests executed for each software baseline OOA/D, BSIT-5th, Univesity of Education Okara 28
  • 29. Validation Test Plan IEEE – Standard 1012-1998 1. Overview a. Organization b. Tasks and Schedules c. Responsibilities d. Tools, Techniques, Methods 2. Processes a. Management b. Acquisition c. Supply d. Development e. Operation f. Maintenance OOA/D, BSIT-5th, Univesity of Education Okara 29
  • 30. Validation Test Plan IEEE – Standard 1012-1998 (cont’d) 3. Reporting Requirements 4. Administrative Requirements 5. Documentation Requirements 6. Resource Requirements 7. Completion Criteria OOA/D, BSIT-5th, Univesity of Education Okara 30
  • 31. Practical Usability Testing  Capture whole page including web address  Write briefly and clearly  Point only main issues (bugs)  Point one screenshot per issue  Make final reporting document (RD) for bugs  RD: http://jmp.sh/meF4kMP check test case demo, choose a website and report bugs.  Graded assignment, ask questions on ComputingForum as well OOA/D, BSIT-5th, Univesity of Education Okara 31