Академический Документы
Профессиональный Документы
Культура Документы
CHAPTER 2
Fundamental of Testing I
Objectives
How software bugs impact our lives.
What bugs are and why they occur
Why need testing
Who software testers are and what they
do
2
Topics covered
Infamous Software Error Case Studies
What is a Bug?
Why Do Bugs Occur?
What are The Objectives of Testing?
What is Test Process?
What exactly Does a Software Tester Do?
What Makes a Good Software Tester?
3
Infamous Software Error Case Studies
Lets assume in your application under test you want to create a new user
with user information, for that you need to logon into the application and
navigate to USERS menu > New User, then enter all the details in the User
form like, First Name, Last Name, Age, Address, Phone etc. Once you enter
all these information, you need to click on SAVE button in order to save
the user. Now you can see a success message saying, New User has been
created successfully.
But when you entered into your application by logging in and navigated to
USERS menu > New user, entered all the required information to create new
user and clicked on SAVE button. BANG! The application crashed and you
got one error page on screen. (Capture this error message window and save
as a Microsoft paint file)
5
Term for Software Failures
Defect Failure
Fault Inconsistency
Problem Feature
Error Bug
Incident
Anomaly
Variance
6
Term for Software Failures
7
Software Bug: A Formal Definition
A software bug occurs when one or more of the
following five rules is true:
The software doesnt do something that the product
specification says it should do.
The software does something that the product specifications
says it shouldnt do.
The software does something that the product specification
doesnt mention.
The software doesnt do something that the product
specification doesnt mention but should.
The software is difficult to understand, hard to use, slow, or
in the software testers eyes will be viewed by the end
user as just not right.
8
Why Do Bugs Occur?
Other Code
Design
Specification
9
Type of Error and Defect
13
Defect types
Priority: Priority defines the order in which we
should resolve a defect. Should we fix it now, or can
it wait? This priority status is set by the tester to the
developer mentioning the time frame to fix the defect.
If high priority is mentioned then the developer has to
fix it at the earliest. The priority status is set based on
the customer requirements. For example: If the
company name is misspelled in the home page of the
website, then the priority is high and severity is low to
fix it.
14
Defect types
Priority can be of following types:
Low: The defect is an irritant which should be repaired, but
repair can be deferred until after more serious defect have been
fixed.
Medium: The defect should be resolved in the normal course
of development activities. It can wait until a new build or
version is created.
High: The defect must be resolved as soon as possible because
the defect is affecting the application or the product severely.
The system cannot be used until the repair has been done.
15
Defect types
Few very important scenarios related to the severity and priority:
High Priority & High Severity: An error which occurs on the basic
functionality of the application and will not allow the user to use the system.
(Eg. A site maintaining the student details, on saving record if it, doesnt
allow to save the record then this is high priority and high severity bug.)
High Priority & Low Severity: The spelling mistakes that happens on the
cover page or heading or title of an application.
High Severity & Low Priority: An error which occurs on the functionality
of the application (for which there is no workaround) and will not allow the
user to use the system but on click of link which is rarely used by the end
user.
Low Priority and Low Severity: Any cosmetic or spelling issues which is
within a paragraph or in the report (Not on cover page, heading, title).
16
Example for High Priority and
High Severity :-
and bug is high severity because this bug need to resolved immediately
because thousands of user withdraw money per hour so it cost high.
17
Example for High Priority and Low
Severity Bug
we take example of yahoo.com. Suppose while updating
yahoo.com by mistake they updated the wrong logo with spell
missing like yaho.com here 'o ' is missing . It should be
Yahoo.com. Now here bug is High Priority and Low
Severity Bug because
19
Example of low priority and high
severity bug
Lest's think there is Banking application who gives interest of RM 2 for
every RM1000 in account on the last day of year. Means on last day of year
31.12.YYYY the bank will deposit RM2 interest for every RM1000 in
account. Now bank found a bug that instead of RM2 application giving
interest of RM4 for every RM1000 in account. Means due to bug interest is
going double.
This bug is high severity - Due to bug interest is going double and bank may
have thousands of accounts, So it will not be profitable for bank.
This bug is Low priority - Depositing interest is happen on last day of year
so if its beginning of year like January then there is lot of time to solve this
bug .
20
Testing Objectives
22
What make a Good Software Tester?
List of traits that most software testers should have:
They are explorers
Software testers arent afraid to venture into unknown situations.
They love to get a new piece of software, install it on their PC, and
see what happens.
They are troubleshooters
Software testers are good at figuring out why something doesnt
work. They love puzzles.
They are relentless
Software testers keep trying. They may see a bug that quickly
vanishes or it difficult to re-create. Rather than dismiss it as a fluke,
they will try every way possible to find it.
They are Creative
Testing the obvious isnt sufficient for software testers. Their job is
to think up creative and even off-the-wall approaches to find bugs. 23
What make a Good Software Tester?
List of traits that most software testers should have:
24
Early Testing to prevent major bugs
27