• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 3 out of 24 pages
Class notes

Software Testing

Document preview thumbnail
Preview 3 out of 24 pages

Types and levels of testing encompass various methodologies to ensure software quality: unit, integration, and system testing validate different components, while acceptance, performance, and security testing evaluate overall functionality, performance, and security of the software.

Content preview

Unit 2: Types and Levels of Testing

CO2 : Prepare test cases for different types and levels of testing.


Levels of Testing




Unit Testing
Unit Testing is a level of software testing where individual units/ components of a
software are tested. The purpose is to validate that each unit of the software performs as
designed.
Unit Testing is the first level of testing and is performed prior to Integration
Testing. A unit is the smallest testable part of software. It usually has one or a few
inputs and usually a single output.
It is executed by the Developer.
Unit Testing is performed by using the White Box Testing method
Example: - A function, method, Loop or statement in program is working fine.




Page 1

, Unit 2: Types and Levels of Testing




Drivers

Drivers are used in bottom-up integration testing approach.
It can simulate the behavior of upper-level module that is not integrated yet.
Drivers modules act as the temporary replacement of module and act as the actual
products.
Drivers are also used for interact with external system and usually complex than stubs.
Driver: Calls the Module to be tested.
Now suppose you have modules B and C ready but module A which calls functions from
module B and C is not ready so developer will write a dummy piece of code for module A
which will return values to module B and C. This dummy piece of code is known as driver.

Stubs

Stubs are used in top down integration testing.
It can simulate the behavior of lower-level module that are not integrated.
They are act as a temporary replacement of module and provide same output as actual
product.
When needs to intact with external system then also stubs are used.
Stub: Is called by the Module under Test.
Assume you have 3 modules, Module A, Module B and module C. Module A is ready and
we need to test it, but module A calls functions from Module B and C which are not ready,
so developer will write a dummy module which simulates B and C and returns values to
module
A. This dummy module code is known as stub.

Importance of Stubs and Drivers

Page 2

, Unit 2: Types and Levels of Testing




Page 3

Connected book
 image
Paul Ammann, Jeff Offutt Introduction to Software Testing
Publisher: 2008 ISBN: 9781139468671 Edition: Unknown

Document information

Uploaded on
April 16, 2024
Number of pages
24
Written in
2023/2024
Type
Class notes
Professor(s)
Arti shivtare
Contains
All classes
$7.89

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Sold
0
Followers
0
Items
5
Last sold
-



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions