SlideShare a Scribd company logo
1 of 19
Download to read offline
UNIT III - LEVELS OF TESTING
The need for Levels of Testing – Unit Test – Unit Test Planning – Designing the
Unit Tests – The Test Harness – Running the Unit tests and Recording results –
Integration tests – Designing Integration Tests – Integration Test Planning –
Scenario testing – Defect bash elimination System Testing – Acceptance
testing – Performance testing – Regression Testing – Internationalization
testing – Adhoc testing – Alpha, Beta Tests – Testing OO systems – Usability
and Accessibility testing – Configuration testing – Compatibility testing –
Testing the documentation – Website testing.
The need for Levels of Testing – Unit Test – Unit Test Planning – Designing the
Unit Tests – The Test Harness – Running the Unit tests and Recording results –
Integration tests – Designing Integration Tests – Integration Test Planning –
Scenario testing – Defect bash elimination System Testing – Acceptance
testing – Performance testing – Regression Testing – Internationalization
testing – Adhoc testing – Alpha, Beta Tests – Testing OO systems – Usability
and Accessibility testing – Configuration testing – Compatibility testing –
Testing the documentation – Website testing.
Levels of Testing
2/19
3/4/2020
IT8076 / Unit 3 / Unit Testing
Unit
• A unit is the smallest possible testable software
component.
• It can be characterized in several ways.
• For example, a unit in a typical procedure-oriented
software system:
– performs a single cohesive function;
– can be compiled separately;
– is a task in a work breakdown structure (from the
manager’s point of view);
– contains code that can fit on a single page or screen.
3/19
• A unit is the smallest possible testable software
component.
• It can be characterized in several ways.
• For example, a unit in a typical procedure-oriented
software system:
– performs a single cohesive function;
– can be compiled separately;
– is a task in a work breakdown structure (from the
manager’s point of view);
– contains code that can fit on a single page or screen.
3/4/2020
IT6004 / Unit 3 / Unit Testing
Some components suitable for unit test
• procedural
programming
language.
• object-
oriented
systems
• small-sized
COTS
component
purchased
4/19
• procedural
programming
language.
Procedures and
functions
• object-
oriented
systems
Classes/objects
and methods
• small-sized
COTS
component
purchased
Procedure-
sized reusable
components
3/4/2020
IT6004 / Unit 3 / Unit Testing
Unit Test: The Need for Preparation
 Good testing practice  planned and public.
 Planning  designing tests, Allocating Resources.
 Done by independent tester
 The test results and defects found should be recorded
as a part of the unit history. - Public
 Each unit should also be reviewed by a team of
reviewers, preferably before the unit test
• individual software unit is
functioning according to its
specification.
Goal
5/19
 Good testing practice  planned and public.
 Planning  designing tests, Allocating Resources.
 Done by independent tester
 The test results and defects found should be recorded
as a part of the unit history. - Public
 Each unit should also be reviewed by a team of
reviewers, preferably before the unit test
3/4/2020
IT6004 / Unit 3 / Unit Testing
 Informal review – few prefer it.
 Defects are private and not recorded
 Task to be performed in unit test
 plan the general approach to unit testing;
 design the test cases, and test procedures (these will be
attached to the test plan);
 define relationships between the tests;
 prepare the auxiliary code necessary for unit test.
6/19
 Informal review – few prefer it.
 Defects are private and not recorded
 Task to be performed in unit test
 plan the general approach to unit testing;
 design the test cases, and test procedures (these will be
attached to the test plan);
 define relationships between the tests;
 prepare the auxiliary code necessary for unit test.
3/4/2020
IT6004 / Unit 3 / Unit Testing
Unit Test Planning
Phase I
• Describe Unit Test Approach and
Risks
• Identify Unit Features to be tested
7/19
Phase II
• Identify Unit Features to be tested
Phase III
• Add Levels of Detail to the Plan
3/4/2020
IT6004 / Unit 3 / Unit Testing
Phase 1: Describe Unit Test Approach
and Risks
 The test planner:
 identifies test risks;
 describes techniques to be used for designing the test cases for
the units;
 describes techniques to be used for data validation and
recording of test results;
 describes the requirements for test harnesses and other
software that interfaces with the units to be tested.
 Completeness requirement (coverage requirements) and
termination condition (special cases – abnormal termination)
 Strategies to handle those.
 Resource needed and tentative schedules
8/19
 The test planner:
 identifies test risks;
 describes techniques to be used for designing the test cases for
the units;
 describes techniques to be used for data validation and
recording of test results;
 describes the requirements for test harnesses and other
software that interfaces with the units to be tested.
 Completeness requirement (coverage requirements) and
termination condition (special cases – abnormal termination)
 Strategies to handle those.
 Resource needed and tentative schedules
3/4/2020
IT6004 / Unit 3 / Unit Testing
Phase 2: Identify Unit Features to be
tested
 Requires information from the unit specification and
detailed design description.
 The planner determines which features of each unit
will be tested.
 If some features will not be covered by the tests,
they should be mentioned and the risks of not
testing them be assessed.
 Input/output characteristics associated with each
unit should also be identified.
9/19
 Requires information from the unit specification and
detailed design description.
 The planner determines which features of each unit
will be tested.
 If some features will not be covered by the tests,
they should be mentioned and the risks of not
testing them be assessed.
 Input/output characteristics associated with each
unit should also be identified.
3/4/2020
IT6004 / Unit 3 / Unit Testing
Phase 3: Add Levels of Detail to the
Plan
 The planner refines the plan as produced in the
previous two phases.
 The planner adds new details to the approach,
resource, and scheduling portions of the unit test
plan.
 The planner must be sure to include a description of
how test results will be recorded
 Any special tools required for the tests are also
described.
10/19
 The planner refines the plan as produced in the
previous two phases.
 The planner adds new details to the approach,
resource, and scheduling portions of the unit test
plan.
 The planner must be sure to include a description of
how test results will be recorded
 Any special tools required for the tests are also
described.
3/4/2020
IT6004 / Unit 3 / Unit Testing
Designing the Unit Test
 Part of the preparation work for unit test involves unit
test design.
 It is important to specify
 the test cases (including input data, and expected outputs
for each test case), and,
 the test procedures (steps required run the tests).
 Test case data should be tabularized for ease of use,
and reuse.
 Describe the relationships between the tests.
 Test suites can be defined that bind related tests
together as a group.
11/19
 Part of the preparation work for unit test involves unit
test design.
 It is important to specify
 the test cases (including input data, and expected outputs
for each test case), and,
 the test procedures (steps required run the tests).
 Test case data should be tabularized for ease of use,
and reuse.
 Describe the relationships between the tests.
 Test suites can be defined that bind related tests
together as a group.
3/4/2020
IT6004 / Unit 3 / Unit Testing
 Test cases, test procedures, and test suites may be
reused from past projects if the organization has
been careful to store them so that they are easily
retrievable and reusable.
 Test case design at the unit level can be based on
use of the black and white box test design
strategies.
12/19
 Test cases, test procedures, and test suites may be
reused from past projects if the organization has
been careful to store them so that they are easily
retrievable and reusable.
 Test case design at the unit level can be based on
use of the black and white box test design
strategies.
3/4/2020
IT6004 / Unit 3 / Unit Testing
The Test Harness
 The auxiliary code
developed to
support testing of
units and
components is
called a test
harness.
 Consists of drivers
that call the target
code and stubs that
represent modules it
calls.
13/19
 The auxiliary code
developed to
support testing of
units and
components is
called a test
harness.
 Consists of drivers
that call the target
code and stubs that
represent modules it
calls.
3/4/2020
IT6004 / Unit 3 / Unit Testing
 Requires testing resources.
 The drivers and stubs must be tested themselves to
insure they are working properly and that they are
reusable for subsequent releases of the software.
 Drivers and stubs can be developed at several
levels of functionality.
14/19
 Requires testing resources.
 The drivers and stubs must be tested themselves to
insure they are working properly and that they are
reusable for subsequent releases of the software.
 Drivers and stubs can be developed at several
levels of functionality.
3/4/2020
IT6004 / Unit 3 / Unit Testing
Running the unit tests and recording
results
 Unit tests can begin when
 the units become available from the developers
 the test cases have been designed and reviewed, and
 the test harness, and any other supplemental supporting
tools, are available.
 The testers then proceed to run the tests and record
results.
15/19
 Unit tests can begin when
 the units become available from the developers
 the test cases have been designed and reviewed, and
 the test harness, and any other supplemental supporting
tools, are available.
 The testers then proceed to run the tests and record
results.
3/4/2020
IT6004 / Unit 3 / Unit Testing
16/19
 Determine test has passed / Failed
 Failed – record the nature of problem in Test
Incident Report
3/4/2020
IT6004 / Unit 3 / Unit Testing
Few reasons for failure
 A fault in the test case specification (the input or the
output was not specified correctly);
 A fault in test procedure execution (the test should
be rerun);
 A fault in the test environment (perhaps a database
was not set up properly);
 A fault in the unit design (the code correctly
adheres to the design specification, but the latter is
incorrect).
17/19
 A fault in the test case specification (the input or the
output was not specified correctly);
 A fault in test procedure execution (the test should
be rerun);
 A fault in the test environment (perhaps a database
was not set up properly);
 A fault in the unit design (the code correctly
adheres to the design specification, but the latter is
incorrect).
3/4/2020
IT6004 / Unit 3 / Unit Testing
 Causes of failure – Test Summary Report
 valuable document for the groups responsible for
integration and system tests.
 It is also a valuable component of the project history.
 Its value lies in the useful data it provides for test
process improvement and defect prevention.
 Finally, the tester should insure that the test cases,
test procedures, and test harnesses are preserved
for future reuse
18/19
 Causes of failure – Test Summary Report
 valuable document for the groups responsible for
integration and system tests.
 It is also a valuable component of the project history.
 Its value lies in the useful data it provides for test
process improvement and defect prevention.
 Finally, the tester should insure that the test cases,
test procedures, and test harnesses are preserved
for future reuse
3/4/2020
IT6004 / Unit 3 / Unit Testing
Thank you
19/19
Thank you
3/4/2020
IT6004 / Unit 3 / Unit Testing

More Related Content

Similar to software testing unit 3 notes anna university 2017

ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2onsoftwaretest
 
ISTQBCH2.ppt
ISTQBCH2.pptISTQBCH2.ppt
ISTQBCH2.pptghkadous
 
Sample test-plan-template
Sample test-plan-templateSample test-plan-template
Sample test-plan-templateamikdamaru
 
IT8076 – Software Testing Intro
IT8076 – Software Testing IntroIT8076 – Software Testing Intro
IT8076 – Software Testing IntroJohnSamuel280314
 
Ôn tập kiến thức ISTQB
Ôn tập kiến thức ISTQBÔn tập kiến thức ISTQB
Ôn tập kiến thức ISTQBJenny Nguyen
 
Question ISTQB foundation 3
Question ISTQB foundation 3Question ISTQB foundation 3
Question ISTQB foundation 3Jenny Nguyen
 
Testing and Rolling Out Enterprise Applications
Testing and Rolling Out Enterprise ApplicationsTesting and Rolling Out Enterprise Applications
Testing and Rolling Out Enterprise ApplicationsGem WeBlog
 
Testing documents
Testing documentsTesting documents
Testing documentssuhasreddy1
 
Performance testing reference model
Performance testing reference modelPerformance testing reference model
Performance testing reference modelEduards Salnikovs
 
Test Plan Template
Test Plan TemplateTest Plan Template
Test Plan TemplateH2Kinfosys
 
object oriented system analysis and design
object oriented system analysis and designobject oriented system analysis and design
object oriented system analysis and designwekineheshete
 
Object Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesObject Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesPunjab University
 
Testing documents
Testing documentsTesting documents
Testing documentsHari Tiru
 
1)Testing-Fundamentals_L_D.pptx
1)Testing-Fundamentals_L_D.pptx1)Testing-Fundamentals_L_D.pptx
1)Testing-Fundamentals_L_D.pptxgianggiang114
 

Similar to software testing unit 3 notes anna university 2017 (20)

ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2
 
Software automation
Software automationSoftware automation
Software automation
 
ISTQBCH2.ppt
ISTQBCH2.pptISTQBCH2.ppt
ISTQBCH2.ppt
 
ISTQBCH2.ppt
ISTQBCH2.pptISTQBCH2.ppt
ISTQBCH2.ppt
 
T0 numtq0nje=
T0 numtq0nje=T0 numtq0nje=
T0 numtq0nje=
 
Sample test-plan-template
Sample test-plan-templateSample test-plan-template
Sample test-plan-template
 
IT8076 – Software Testing Intro
IT8076 – Software Testing IntroIT8076 – Software Testing Intro
IT8076 – Software Testing Intro
 
Ôn tập kiến thức ISTQB
Ôn tập kiến thức ISTQBÔn tập kiến thức ISTQB
Ôn tập kiến thức ISTQB
 
Question ISTQB foundation 3
Question ISTQB foundation 3Question ISTQB foundation 3
Question ISTQB foundation 3
 
Testing and Rolling Out Enterprise Applications
Testing and Rolling Out Enterprise ApplicationsTesting and Rolling Out Enterprise Applications
Testing and Rolling Out Enterprise Applications
 
Testing documents
Testing documentsTesting documents
Testing documents
 
Performance testing reference model
Performance testing reference modelPerformance testing reference model
Performance testing reference model
 
Test Plan Template
Test Plan TemplateTest Plan Template
Test Plan Template
 
Txet Document
Txet DocumentTxet Document
Txet Document
 
Testplan
TestplanTestplan
Testplan
 
Testplan
TestplanTestplan
Testplan
 
object oriented system analysis and design
object oriented system analysis and designobject oriented system analysis and design
object oriented system analysis and design
 
Object Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slidesObject Oriented Testing(OOT) presentation slides
Object Oriented Testing(OOT) presentation slides
 
Testing documents
Testing documentsTesting documents
Testing documents
 
1)Testing-Fundamentals_L_D.pptx
1)Testing-Fundamentals_L_D.pptx1)Testing-Fundamentals_L_D.pptx
1)Testing-Fundamentals_L_D.pptx
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
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
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
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
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
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
 
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
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 

Recently uploaded (20)

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
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 🔝✔️✔️
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
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
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
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
 
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Ă...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 

software testing unit 3 notes anna university 2017

  • 1. UNIT III - LEVELS OF TESTING The need for Levels of Testing – Unit Test – Unit Test Planning – Designing the Unit Tests – The Test Harness – Running the Unit tests and Recording results – Integration tests – Designing Integration Tests – Integration Test Planning – Scenario testing – Defect bash elimination System Testing – Acceptance testing – Performance testing – Regression Testing – Internationalization testing – Adhoc testing – Alpha, Beta Tests – Testing OO systems – Usability and Accessibility testing – Configuration testing – Compatibility testing – Testing the documentation – Website testing. The need for Levels of Testing – Unit Test – Unit Test Planning – Designing the Unit Tests – The Test Harness – Running the Unit tests and Recording results – Integration tests – Designing Integration Tests – Integration Test Planning – Scenario testing – Defect bash elimination System Testing – Acceptance testing – Performance testing – Regression Testing – Internationalization testing – Adhoc testing – Alpha, Beta Tests – Testing OO systems – Usability and Accessibility testing – Configuration testing – Compatibility testing – Testing the documentation – Website testing.
  • 2. Levels of Testing 2/19 3/4/2020 IT8076 / Unit 3 / Unit Testing
  • 3. Unit • A unit is the smallest possible testable software component. • It can be characterized in several ways. • For example, a unit in a typical procedure-oriented software system: – performs a single cohesive function; – can be compiled separately; – is a task in a work breakdown structure (from the manager’s point of view); – contains code that can fit on a single page or screen. 3/19 • A unit is the smallest possible testable software component. • It can be characterized in several ways. • For example, a unit in a typical procedure-oriented software system: – performs a single cohesive function; – can be compiled separately; – is a task in a work breakdown structure (from the manager’s point of view); – contains code that can fit on a single page or screen. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 4. Some components suitable for unit test • procedural programming language. • object- oriented systems • small-sized COTS component purchased 4/19 • procedural programming language. Procedures and functions • object- oriented systems Classes/objects and methods • small-sized COTS component purchased Procedure- sized reusable components 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 5. Unit Test: The Need for Preparation  Good testing practice  planned and public.  Planning  designing tests, Allocating Resources.  Done by independent tester  The test results and defects found should be recorded as a part of the unit history. - Public  Each unit should also be reviewed by a team of reviewers, preferably before the unit test • individual software unit is functioning according to its specification. Goal 5/19  Good testing practice  planned and public.  Planning  designing tests, Allocating Resources.  Done by independent tester  The test results and defects found should be recorded as a part of the unit history. - Public  Each unit should also be reviewed by a team of reviewers, preferably before the unit test 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 6.  Informal review – few prefer it.  Defects are private and not recorded  Task to be performed in unit test  plan the general approach to unit testing;  design the test cases, and test procedures (these will be attached to the test plan);  define relationships between the tests;  prepare the auxiliary code necessary for unit test. 6/19  Informal review – few prefer it.  Defects are private and not recorded  Task to be performed in unit test  plan the general approach to unit testing;  design the test cases, and test procedures (these will be attached to the test plan);  define relationships between the tests;  prepare the auxiliary code necessary for unit test. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 7. Unit Test Planning Phase I • Describe Unit Test Approach and Risks • Identify Unit Features to be tested 7/19 Phase II • Identify Unit Features to be tested Phase III • Add Levels of Detail to the Plan 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 8. Phase 1: Describe Unit Test Approach and Risks  The test planner:  identifies test risks;  describes techniques to be used for designing the test cases for the units;  describes techniques to be used for data validation and recording of test results;  describes the requirements for test harnesses and other software that interfaces with the units to be tested.  Completeness requirement (coverage requirements) and termination condition (special cases – abnormal termination)  Strategies to handle those.  Resource needed and tentative schedules 8/19  The test planner:  identifies test risks;  describes techniques to be used for designing the test cases for the units;  describes techniques to be used for data validation and recording of test results;  describes the requirements for test harnesses and other software that interfaces with the units to be tested.  Completeness requirement (coverage requirements) and termination condition (special cases – abnormal termination)  Strategies to handle those.  Resource needed and tentative schedules 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 9. Phase 2: Identify Unit Features to be tested  Requires information from the unit specification and detailed design description.  The planner determines which features of each unit will be tested.  If some features will not be covered by the tests, they should be mentioned and the risks of not testing them be assessed.  Input/output characteristics associated with each unit should also be identified. 9/19  Requires information from the unit specification and detailed design description.  The planner determines which features of each unit will be tested.  If some features will not be covered by the tests, they should be mentioned and the risks of not testing them be assessed.  Input/output characteristics associated with each unit should also be identified. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 10. Phase 3: Add Levels of Detail to the Plan  The planner refines the plan as produced in the previous two phases.  The planner adds new details to the approach, resource, and scheduling portions of the unit test plan.  The planner must be sure to include a description of how test results will be recorded  Any special tools required for the tests are also described. 10/19  The planner refines the plan as produced in the previous two phases.  The planner adds new details to the approach, resource, and scheduling portions of the unit test plan.  The planner must be sure to include a description of how test results will be recorded  Any special tools required for the tests are also described. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 11. Designing the Unit Test  Part of the preparation work for unit test involves unit test design.  It is important to specify  the test cases (including input data, and expected outputs for each test case), and,  the test procedures (steps required run the tests).  Test case data should be tabularized for ease of use, and reuse.  Describe the relationships between the tests.  Test suites can be defined that bind related tests together as a group. 11/19  Part of the preparation work for unit test involves unit test design.  It is important to specify  the test cases (including input data, and expected outputs for each test case), and,  the test procedures (steps required run the tests).  Test case data should be tabularized for ease of use, and reuse.  Describe the relationships between the tests.  Test suites can be defined that bind related tests together as a group. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 12.  Test cases, test procedures, and test suites may be reused from past projects if the organization has been careful to store them so that they are easily retrievable and reusable.  Test case design at the unit level can be based on use of the black and white box test design strategies. 12/19  Test cases, test procedures, and test suites may be reused from past projects if the organization has been careful to store them so that they are easily retrievable and reusable.  Test case design at the unit level can be based on use of the black and white box test design strategies. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 13. The Test Harness  The auxiliary code developed to support testing of units and components is called a test harness.  Consists of drivers that call the target code and stubs that represent modules it calls. 13/19  The auxiliary code developed to support testing of units and components is called a test harness.  Consists of drivers that call the target code and stubs that represent modules it calls. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 14.  Requires testing resources.  The drivers and stubs must be tested themselves to insure they are working properly and that they are reusable for subsequent releases of the software.  Drivers and stubs can be developed at several levels of functionality. 14/19  Requires testing resources.  The drivers and stubs must be tested themselves to insure they are working properly and that they are reusable for subsequent releases of the software.  Drivers and stubs can be developed at several levels of functionality. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 15. Running the unit tests and recording results  Unit tests can begin when  the units become available from the developers  the test cases have been designed and reviewed, and  the test harness, and any other supplemental supporting tools, are available.  The testers then proceed to run the tests and record results. 15/19  Unit tests can begin when  the units become available from the developers  the test cases have been designed and reviewed, and  the test harness, and any other supplemental supporting tools, are available.  The testers then proceed to run the tests and record results. 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 16. 16/19  Determine test has passed / Failed  Failed – record the nature of problem in Test Incident Report 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 17. Few reasons for failure  A fault in the test case specification (the input or the output was not specified correctly);  A fault in test procedure execution (the test should be rerun);  A fault in the test environment (perhaps a database was not set up properly);  A fault in the unit design (the code correctly adheres to the design specification, but the latter is incorrect). 17/19  A fault in the test case specification (the input or the output was not specified correctly);  A fault in test procedure execution (the test should be rerun);  A fault in the test environment (perhaps a database was not set up properly);  A fault in the unit design (the code correctly adheres to the design specification, but the latter is incorrect). 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 18.  Causes of failure – Test Summary Report  valuable document for the groups responsible for integration and system tests.  It is also a valuable component of the project history.  Its value lies in the useful data it provides for test process improvement and defect prevention.  Finally, the tester should insure that the test cases, test procedures, and test harnesses are preserved for future reuse 18/19  Causes of failure – Test Summary Report  valuable document for the groups responsible for integration and system tests.  It is also a valuable component of the project history.  Its value lies in the useful data it provides for test process improvement and defect prevention.  Finally, the tester should insure that the test cases, test procedures, and test harnesses are preserved for future reuse 3/4/2020 IT6004 / Unit 3 / Unit Testing
  • 19. Thank you 19/19 Thank you 3/4/2020 IT6004 / Unit 3 / Unit Testing