P. 1
software testing

software testing

|Views: 473|Likes:
Published by poojuuu

Software Testing

a presentation on software testing prepared for class presentations

It¶s a process of validating and verifying that a software program/product:
meets the requirements. works as expected Can be implemented with the same characteristics raising the quality and reliability of the program

Need of testing
y Quality y Rework

and re-testing y Method of finding bugs

Types of software Testing
y Unit

testing y Integration testing

Unit testing
y Testing

of individual software components or modules y

Software Testing

a presentation on software testing prepared for class presentations

It¶s a process of validating and verifying that a software program/product:
meets the requirements. works as expected Can be implemented with the same characteristics raising the quality and reliability of the program

Need of testing
y Quality y Rework

and re-testing y Method of finding bugs

Types of software Testing
y Unit

testing y Integration testing

Unit testing
y Testing

of individual software components or modules y

More info:

Published by: poojuuu on Apr 03, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPTX, PDF, TXT or read online from Scribd
See more
See less

06/20/2013

pdf

text

original

Presented by: Deepika Amrit Pooja Prabhjot

Software Testing
y

It¶s a process of validating and verifying that a software program/product:
meets the requirements. works as expected Can be implemented with the same characteristics raising the quality and reliability of the program

Need of testing
y Quality y Rework

and re-testing y Method of finding bugs

Types of software Testing
y Unit

testing y Integration testing

Unit testing
y Testing

of individual software components or modules y Done by the programmer y Requires detailed knowledge of the internal program design and code. y Unit testing frameworks

Goal
y Take

the smallest piece of testable software y Determine whether it behaves exactly as expected

How UT fits into SDLC???

Unit Testing Tasks

Unit Testing Tasks
y Create a Test Plan y Create Test Cases and Test Data y If applicable create scripts to run test

cases y Once the code is ready execute the test cases y Fix the bugs if any and re test the code y Repeat the test cycle until the ³unit´ is free of all bugs

Steps to Effective Unit Testing
y Documentation y What

should be done y Automate where necessary

Integration testing
Definition ‡ Modules ± Code Modules ± Individual Applications ± Client and server applications on a network, etc. ‡ Relevant to: ± Client/server systems ± Distributed systems. ‡ Example ±Yahoo Mail
‡

Various Types of Integration Testing
Top-down approach y Bottom-up approach
y

Bottom Up approach
Definition y Use Of Test Drivers
y

Hierarchy Of Components

Bottom Up Testing

Steps to be followed
Combination Of Lower Level Components y A S/W Driver y A Cluster Is Tested y Removal Of Drivers
y

Top Down Integration Testing
y y y y y y

Definition Use Of Stubs Replacement Of Stubs Depth First Manner Breadth First Manner Steps Test Drivers and Stubs Replacing Stubs Test Continue with nest component

Methods of testing
white-box methods black-box methods

Methods Strategies

White box testing
y It

is a test case design method y Uses the control structure y Method used in Unit testing Integration testing Regression testing

Need of white box testing eed
y

To discover following types of bugs
Logical errors Design errors Syntax errors

Ensure all independent paths are working y Examine all logical decisions y Examine all loops
y

Performing white box testing

Test each statement

Test each decision

Test each condition

Steps in white box testing
inputs
Create test plans Profile the application plan 

Requirements subroutine Test internal Functional specifications Test loops and High level design documents conditional statements Detailed design documents Source codePerform security testing

Limitation of WBT

Black Box Testing
y

What is black box ? Where behavior is determined just : x By studying inputs x By studying related outputs

What Is Black Box Testing?
Also called functional testing y Deals with :
y

Inputs to system Outputs of system
y

Doesn¶t deals with internal structure

Example Of Black Box Testing

Function To Draw A Triangle
It accepts three numbers i.e. a, b, c y Three subdomains can be there :
y

Scalene Triangle Isosceles Triangle Equilateral Triangle

Performing Black Box Testing
Lengths Scalene A 3 5 4 5 5 8 Equilateral Bad Inputs 5 -1 3 0 8 5 5 2 -2 0 B 4 4 5 5 C 5 3 3 VALID VALID VALID

Isosceles

8 VALID 5 VALID 5 etc. VALID 5 4 -5 0 VALID INVALID INVALID INVALID

Features Of Black Box Testing
Doesn¶t require programming knowledge y Tester and programmer independent of each other y Effective on Larger units
y

Conclusion

Thanks

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->