Raisoni Group of Institutions: Presentation On by
Raisoni Group of Institutions: Presentation On by
Raisoni Group of Institutions: Presentation On by
Presentation
On
“Software Testing”
By
Mrs. S.A.Wanjari
Assistant Professor
Department of Computer Engineering
G. H. Raisoni Institute of Engineering &
Technology , Nagpur.
Unit 1
(14 Marks)
Software Testing:
• Software testing is a process or a series of steps, designed to evaluate the functionality of
a software application with an intent to find error and to check whether the developed
• Testing is the process of executing a program with the intent of finding errors.
4. To prevent defects.
6. To ensure that the end result meets the business & user requirements.
• Defect: Commonly refers to several troubles with the software products, with its
• Failure: The incapacity of a system to conduct its required functions within clarified
performance requirements.
• Bug: A bug can be defined as the initiation of error or a problem due to which fault,
A test case is a documentation which specifies input values, expected output & the
preconditions for executing the test.
Typical Test Case Parameters:
Test Case ID
Test Scenario
Test Case Description
Test Steps
Preconditions
Test Data
Expected Result
Test Parameters
Actual Result
Status RAISONI GROUP OF INSTITUTIONS 7
ENTRY Criteria(when to START testing) :
• Entry criteria are the minimum set of condition to start testing work.
• All test hardware platforms must have been successfully installed,configured &
functioning properly.
• All the standard software tools must have been successfully installed.
• The testing environment such as lab, hardware, software & system administration
• Exit Criteria defines the items that must be completed before testing can
be concluded.
• All test plans have been run.
1. Communication Skills
2. Domain Knowledge
3. Desire to learn
4. Technical Skills
5. Analytical skills
6. Planning
7. Integrity
8. Curiosity
9. Think from user perspective
10. Be a good judge of your product.
One line explanation required for each.
Verification & Validation
Verification Validation
•It is a static mechanism of verifying documents, •It is a dynamic mechanism of testing and validating
design code,& program. the actual product
•It does not involve executing the code •It always involves executing the code
•Verification uses methods like reviews, •It uses methods like Black Box Testing, White Box
walkthroughs, inspections, and desk- checking etc. Testing, and non-functional testing
• Whether the software confirms to specification is •It checks whether the software meets the
checked requirements and expectations of a customer
•It finds bugs early in the development cycle •It can find bugs that the verification process can
not catch
•QA team does verification •With the involvement of testing team validation is
executed on software code.
n
atio
ver
valid
ific
ati
on
V MODEL
Advantages of V Model
• Testing activities like planning, test designing happens well before coding.
Hence saves lot of time.
• It works well for smaller projects where requirement are very well
understood.
Disdvantages of V Model
• Guessing the errors in the beginning of the project could take more time.
• Not applicable for larger projects.
Quality Assurance & Quality Control
Static testing:
• Static testing is Verification activity
• In static testing code is not executed. Rather it manually checks
the code, requirement documents, and design documents to
find errors.
• Main objective of this testing is to improve the quality of
software products by finding errors in early stages of the
development cycle.
Dynamic testing:
• Dynamic testing is Validation activity.
• The dynamic testing is done by executing program.
• Main objective of this testing is to confirm that the software
product works in conformance with the business requirements.
Methods of testing
02 It is also called as transparent box or glass It is also called as opaque box, dark box
box testing. testing.
03 This can be performed by only developers This can be performed by end users or
and professional testers. anyone
1)Static Testing:-
A)Inspection
B)Walkthrough
C)Technical Review
2)Structural Testing:-
A)Code Functional Testing
B)Code Coverage Testing
i)Program Statement & line coverage
ii) Branch Coverage
iii) Condition Coverage
C) Code Complexity Testing
Classification of White Box Testing
1. Static Testing
A) Inspection:
• During inspection the documents are prepared and checked thoroughly by the
reviewers before the meeting.
• It involves peers to examine the product.
• A separate preparation is carried out during which the product is examined and the
defects are found.
• The defects found are documented in a logging list or issue log.
B) Walkthrough:
• Walkthrough is used to review documents with peers, managers, and fellow team
members who are guided by the author of the document to gather feedback and
reach a consensus.
• A walkthrough can be pre-planned or organized based on the needs.
The white Box Approach(cont…)
The White Box Approach(cont…)
C) Technical Review:
A Technical review is a static white-box testing technique which is conducted
to spot the defects early in the life cycle that cannot be detected by black box testing
techniques.
Goals:-
• To ensure that in the technical concepts are used correctly.
• To access the value of technical concepts & alternatives in the product.
• To have consistency in the use & representation of technical conecepts.
• To inform participants about the technical content of the document.
The White Box Approach(cont…)
2. Structural Testing:-
A) Code Functional Testing(Data Flow):
i. Code functional testing involves debugging sort of activities.
ii. During data flow, the check is made for the proper declaration of variables
declared and the loops used are declared and working properly.
For example
1.#include
2.void main()
3. {
4. int i , fact= 1, n;
5. printf(―enter the number ―);
6. scanf(―%d‖,&n);
7. for(i =1 ;i <=n;i++)
8. fact = fact * i;
10. }
The White Box Approach(cont…)
3. Equivalence partitioning:
Example:
An insurance company that has the following premium rates based on the age
group. A life insurance company has base premium of Rs. 500 for all ages. Based
on the age group, an additional monthly premium has to pay that is as listed in
the table below.
For example, a person aged 34 has to pay a premium=Rs. 500 + Rs. 1000=Rs.
1500.
Below 35 years of age (valid input)
Between 35 and 59 years of age (valid input)
Above 6 years of age (valid input)
Negative age (invalid input)
Age as 0 (invalid input)
Age as any three-digit number (valid input)
Black Box Testing Techniques conti…
4. Decision table :
• Decision table testing is a software testing technique used to test system
behavior for different input combinations. That is why it is also called as a
Cause-Effect table where Cause and effects are captured for
better test coverage.
• Decision table testing is black box test design technique to determine the test
scenarios for complex business logic.
• It provide a systematic way of stating complex business rules, which is useful for
developers as well as for testers.
• Testing combinations can be a challenge, as the number of combinations can
often be huge.
• Decision tables are used to model complicated logic.
Decision Table example
Example:
User Documentation Testing
• It covers all the manuals, user guides, installation guids, setup guides,
software notes that are provided along with the software to help the user
to understand the software system.
• Objective of User Documentation:-