0% found this document useful (0 votes)
60 views37 pages

test-SQA Introduction

The document provides an introduction to software testing. It defines software testing as executing a program to find errors based on several standard definitions. The objectives of testing are to uncover errors, demonstrate requirements are met, and validate quality with minimal cost. Testing is done by test managers, engineers, development teams, and quality assurance groups. The scope of testing includes management, methods, strategies, processes, tools, and criteria. Key activities involve planning, designing, executing, analyzing and reporting on tests. Verification ensures the software meets specifications while validation ensures it meets user needs.

Uploaded by

Arbaz Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views37 pages

test-SQA Introduction

The document provides an introduction to software testing. It defines software testing as executing a program to find errors based on several standard definitions. The objectives of testing are to uncover errors, demonstrate requirements are met, and validate quality with minimal cost. Testing is done by test managers, engineers, development teams, and quality assurance groups. The scope of testing includes management, methods, strategies, processes, tools, and criteria. Key activities involve planning, designing, executing, analyzing and reporting on tests. Verification ensures the software meets specifications while validation ensures it meets user needs.

Uploaded by

Arbaz Ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 37

Introduction to Software Testing

Software Quality Assurance


Software Quality Assurance
• What is “quality”?
Software Quality Assurance
• What is “quality”?
• IEEE Glossary: Degree to which a system,
component, or process meets (1) specified
requirements, and (2) customer or user needs
or expectations
Software Quality Assurance
• What is “quality”?
• IEEE Glossary: Degree to which a system,
component, or process meets (1) specified
requirements, and (2) customer or user needs
or expectations
• ISO: the totality of features and
characteristics of a product or service that
bear on its ability to satisfy specified or
implied needs
Software Quality Assurance
• An alternate view of Quality:
– is not absolute
– is multidimensional, can be difficult to quantify
– has aspects that are not easy to measure
– assessment is subject to constraints (e.g., cost)
– is about acceptable compromises
– criteria are not independent, can conflict
Software Quality Assurance
• Quality Criteria include:
– correctness
– efficiency
– flexibility
– integrity
– interoperability
– maintainability
– portability
– reliability
– reusability
– testability
– usability
What is Software Quality Assurance
(SQA)?

• “Set of systematic activities providing


evidence of the ability of the software
process to produce a software product that
is fit to use”
– G. Schulmeyer and J. McManus, Software
Quality Handbook, Prentice Hall, 1998.
What is SQA?
• Monitoring processes and products throughout
the software development lifecycle to ensure
the quality of the delivered product(s)
• Monitoring the processes
– Provides management with objective feedback
regarding process compliance to approved plans,
procedures, standards, and analyses
• Monitoring the products
– Focus on the quality of product within each phase
of the SDLC
• e.g., requirements, test plan, architecture, etc.
– Objective: identify and remove defects throughout
the lifecycle, as early as possible
Topic: Introduction to Software Testing

What is Software Testing

Several definitions:

“Testing is the process of establishing confidence that a program or system


does what it is supposed to.” by Hetzel 1973

“Testing is the process of executing a program or system with the intent of


finding errors.” by Myers 1979

“Testing is any activity aimed at evaluating an attribute or capability of a


program or system and determining that it meets its required results.”
by Hetzel 1983

What is IEEE’s definition?


Topic: Introduction to Software Testing

What is Software Testing


Topic: Introduction to Software Testing

Common Terms in Software Testing


Topic: Introduction to Software Testing

What is Software Testing

- One of very important software development phases

- A software process based on well-defined software quality control and testing


standards, testing methods, strategy, test criteria, and tools.

- Engineers perform all types of software testing activities to perform a


software
test process.

- The last quality checking point for software on its production line
Topic: Introduction to Software Testing

Testing Objectives

The Major Objectives of Software Testing:

- Uncover as many as errors (or bugs) as possible in a given timeline.

- Demonstrate a given software product matching its requirement specifications.

- Validate the quality of a software testing using the minimum cost and efforts.

- Generate high quality test cases, perform effective tests, and issue correct and
helpful problem reports.

Major goals:

uncover the errors (defects) in the software, including errors in:


- requirements from requirement analysis
- design documented in design specifications
- coding (implementation)
- system resources and system environment
- hardware problems and their interfaces to software
Static VS Dynamic Testing
• Reviews, or inspections are referred to as static
testing

• Actually executing programmed code with a given


set of test cases is referred to as dynamic testing

• Static testing involves verification, whereas


dynamic testing involves validation
Topic: Introduction to Software Testing

Who does Software Testing

- Test manager
- manage and control a software test project
- supervise test engineers
- define and specify a test plan

- Software Test Engineers and Testers


- define test cases, write test specifications, run tests

- Independent Test Group

- Development Engineers
- Only perform unit tests and integration tests

- Quality Assurance Group and Engineers


- Perform system testing
- Define software testing standards and quality control process
Topic: Introduction to Software Testing

Who does Software Testing

- Test manager
- manage and control a software test project
- supervise test engineers
- define and specify a test plan

- Software Test Engineers and Testers


- define test cases, write test specifications, run tests

- Independent Test Group

- Development Engineers
- Only perform unit tests and integration tests

- Quality Assurance Group and Engineers


- Perform system testing
- Define software testing standards and quality control process
Topic: Introduction to Software Testing

Software Testing Scope

Software Testing Software Testing Software Testing


Management Methods Strategies

Configuration Software Testing Software Test


Management Process Models

Software Problem Software Testing Software Test


Management Tools Criteria
Topic: Introduction to Software Testing

Software Testing Activities

- Test Planing
Define a software test plan by specifying:
- a test schedule for a test process and its activities, as well as assignments
- test requirements and items
- test strategy and supporting tools

- Test Design and Specification


- Conduct software design based well-defined test generation methods.
- Specify test cases to achieve a targeted test coverage.

- Test Set up:


- Testing Tools and Environment Set-up
- Test Suite Set-up

- Test Operation and Execution


- Run test cases manually or automatically
Topic: Introduction to Software Testing

Software Testing Activities

- Test Result Analysis and Reporting


Report software testing results and conduct test result analysis

- Problem Reporting
Report program errors using a systematic solution.

- Test Management and Measurement


Manage software testing activities, control testing schedule, measure
testing complexity and cost

- Test Automation
- Define and develop software test tools
- Adopt and use software test tools
- Write software test scripts and facility

- Test Configuration Management


- Manage and maintain different versions of software test suites, test
environment and tools, and documents for various product versions.
Topic: Introduction to Software Testing

Verification and Validation

Software testing is one element of a broader topic that is often referred to as


===> Verification and Validation (V&V)

Verification --> refers to the set of activities that ensure that software correctly
implements a specific function.

Validation -> refers to a different set of activities that ensure that the software
that has been built is traceable to customer requirements.

Boehm [BOE81]:

Verification: “Are we building the product right?”


Validation: “Are we building the right product?”

The definition of V&V encompasses many of SQA activities, including


formal technical reviews, quality and configuration audits
performance monitoring, different types of software testing
feasibility study and simulation
Verification & Validation
Verification
1.Have you built the product right?
2.Does the product meet system specification?

Validation
1.Have you built the right product?
2.Does the product meet user expectations?

It is possible that a software application may fulfill its


specification but it may deviate from users expectations
or their desired behaviour. That means, software is
verified but not validated.
11/01/23 22
Verification & Validation

11/01/23 23
Verification & Validation

11/01/23 24
Topic: Introduction to Software Testing

Software Quality Factors

Functionality (exterior quality)

- Correctness, reliability, usability, and integrity

Engineering (interior quality)

- Efficiency, testability, documentation, structure

Adaptability (future qualities)

- Flexibility, reusability, maintainability


Topic: Introduction to Software Testing

Software Testing Principles

•Principle #1: Complete testing is impossible.

•Principle #2: Software testing is not simple.


•Reasons:
•Quality testing requires testers to understand a system/product completely
•Quality testing needs adequate test set, and efficient testing methods
•A very tight schedule and lack of test tools.

•Principle #3: Testing is risk-based.

•Principle #4: Testing must be planned.

•Principle #5: Testing requires independence.

•Principle #6: Quality software testing depends on:


•Good understanding of software products and related domain application
•Cost-effective testing methodology, coverage, test methods, and tools.
•Good engineers with creativity, and solid software testing experience
Topic: Introduction to Software Testing

Software Testing Myths

- We can test a program completely. In other words, we test a program exhaustively.

- We can find all program errors as long as test engineers do a good job.

- We can test a program by trying all possible inputs and states of a program.

- A good test suite must include a great number of test cases.

- Good test cases always are complicated ones.

- Software test automation can replace test engineers to perform good software testing.

- Software testing is simple and easy. Anyone can do it. No training is needed.
Topic: Introduction to Software Testing

Software Testing Limits

- Due to the testing time limit, it is impossible to achieve total confidence.

- We can never be sure the specifications are 100% correct.

- We can never be certain that a testing system (or tool) is correct.

- No testing tools can copy with every software program.

- Tester engineers never be sure that they completely understand a software product.

- We never have enough resources to perform software testing.

- We can never be certain that we achieve 100% adequate software testing.


Topic: Introduction to Software Testing

Software Testing Process

V&V Targets

Unit test Code & Implementation

Integration Software Design


test

Validation Requirements
test

System System engineering


test
Topic: Introduction to Software Testing

Unit Test (Component Level Test)

Unit testing: Individual components are tested independently to


ensure their quality. The focus is to uncover errors in design
and implementation, including
- data structure in a component
- program logic and program structure in a component
- component interface
- functions and operations of a component
Unit testers: developers of the components.

White-box Black-box
interface interface
input
Internal logic, data, structure input

Operations and
Functions with I/O

output
outpu
t
operation
Topic: Introduction to Software Testing

Integration Testing

Integration test: A group of dependent components are tested together


to ensure their the quality of their integration unit.
The focus is to uncover errors in:
- Design and construction of software architecture
- Integrated functions or operations at sub-system level
- Interfaces and interactions between them
- Resource integration and/or environment integration

Integration testers: either developers and/or test engineers.


interface interface

input
Component #1 Component #2

Operations and Operations and


Functions with I/O Functions with I/O

outpu
t

operation operation
Topic: Introduction to Software Testing

Function Validation Testing

Validation test: The integrated software is tested based on requirements


to ensure that we have a right product.
The focus is to uncover errors in:
- System input/output
- System functions and information data
- System interfaces with external parts
- User interfaces
- System behavior and performance

Validation testers: test engineers in ITG or SQA people.

User
interface System
User External interfaces
(Operations &
Functions
& Behavior)
Topic: Introduction to Software Testing

System Testing

System test: The system software is tested as a whole. It verifies all


elements mesh properly to make sure that all system
functions and performance are achieved in the
target environment.

The focus areas are:


- System functions and performance
- System reliability and recoverability (recovery test)
- System installation (installation test)
- System behavior in the special conditions
(stress and load test)
- System user operations (acceptance test/alpha test)
- Hardware and software integration and collaboration
- Integration of external software and the system

System testers: test engineers in ITG or SQA people.

When a system is to be marketed as a software product, a testing process called


beta testing is often used.
Topic: Introduction to Software Testing

Test Issues in Real World

Software testing is very expensive.

How to achieve test automation?????

When should we stop software testing?

Test criteria, test coverage, adequate testing.

Other software testing:

GUI Testing
Object-Oriented Software Testing
Component Testing and Component-based Software Testing
Domain-specific Feature Testing
Testing Web-based Systems
Topic: Introduction to Software Testing

Summary

You might also like