Professional Documents
Culture Documents
The process consisting of all life cycle activities, both static and dynamic, concerned with
Planning, Preparation and evaluation of software products and related work products
to determine that they satisfy specified requirements, to demonstrate that they are fit
for purpose and to detect defects.
TESTING PRINCIPLE:-
Defects (bug, faults):- A flaw in a component or system that can cause the
component or the system to fail to perform its required function. A defect
encountered during the execution, may cause a failure to component
or system.
Failure: Deviation of the component or system from its expected delivery, service or
result.
Defects in software , systems or documents may results in failure , but not all do cause
failures.
It is not just defects that give rise to failure. Failures can caused by :
When we think about what might go wrong we have to consider defects and failures
arising from:
The cost of finding and fixing defects rises considerably across the life cycle
If an error is made and consequent defect is detected in the requirements at the
Specification stage , then it is relatively cheap to find and fix and then
specification
can be corrected and re-issued.
If the defects detected in the design stage then the design can be corrected and
re-issued with relatively little expenses.
If the defect is introduced in the requirement , specification and it is not detected
Until accepatance testing or even once the system has been implemented then
it will be much more expensive to fix.
Instead of exhaustive testing, we use risks and priorities to focus testing efforts.
Pressures on a project include time and budget as well as pressure to deliver technical
solution that meets customer needs.
Customer and project manager will want to spend an amount on testing the produces
Return on Investments for them.
How much testing is enough is according to level of risk, technical and business Risks
related to product and project
Detect Defects:
Help us understand the risks associated with putting the software into
operational .
Fixing the defects improves the quality of the products. Identifying the
defects has another benefits to improve the development process and
make fewer mistakes in future work.
When can we meet our test objective? (Test principle – Early Testing)
Fousing on defects can helps us plan our tests --- (Testing Principle – Defect clustering)
Main focus of reviews and other static tests is to carry out testing as early as possible
finding and fixing defects are more cheaply and preventing defects from appearing
at later stages of this project. These activites helps us find out about defects earlier
and identify potential clusters.
Debugging : The process of finding , analyzing and removing the causes of failures in
software.
TEST PLANNING
Determine the scope and risks and identify the objectives of testing
Determine the test approach (techniques, test items, coverage,testware) .
Implement the test policy and the test strategy.
Determine the required resources
Schedule test analysis and design tasks,test implementation ,execution and evaluation
Determine the exit criteria
TEST CONTROL
Measure and analyze the results of reviews and testing .
Monitor and document progress,test coverage and exit criteria.
Provide information on testing.
Initiate corrective actions
Make decisions.
TEST ANALYSIS AND DESIGN
Review the test basis.
Identify test conditions based on analysis of test items, their specifications.
Design the tests
Evaluate testability of the requirements and system.
Design the test environment set-up and identify any required infrastructures
and tools
IMPLEMENTATION:
Develop and prioritize our test cases.
Create the test suites from the test cases for efficient test execution.
EXECUTION:
Execute the test suites and individual test cases.
Log the outcome of test execution and record the identities and version, test tools and
testwares.
Compare the actual results with expected results
Repeat the activities as a result of action taken for each discrepancy.
PSYCHOLOGY OF TESTING.
We need to be careful when we are reviewing and when we are testing.
Explain that by knowing about this now we can work round it or fix it so the
delivered the system is better for the customer.
Start with collaboration rather than battles. Remind everyone common goal
of better quality system.
CHAPTER 2: TESTING THROUGHOUT THE SOFTWARE LIFE
CYCLE
VALIDATION: To determine whether it meets the user needs ---Is the deliverable
Fit for purpose?.
V-MODEL
Water fall model was one of the earliest models to be designed . It has the
natural timeline where the tasks are executed in a sequential fashion.
Draw backs of this model is difficult to get feedback passed backwards up the
waterfalls and there are difficulties if we need to carry out numerous
iterations for a particular phase.
Component testing
Integration testing
System testing
Acceptance testing
Iterative life cycles
A common feature of iterative approaches is that the delivery is divided into
Increments or builds with each increments adding a new functionality.
Intial increment will contain infrastructure required to support the
build functionali\ty
Test Levels
Component Testing:
Also known as unit, module and program testing, that are separately testable.
Component testing may include testing of functionality and specific non-functional
Characteristics such as resource-behavior (e.g. memory leaks), performance or
Robustess testing as well as structural testing.
Integration Testing:
Integration testing tests interfaces between components, interactions to different
parts of system such as an operating system, file system and hardware or
interfaces between systems.
There may be more than one level of integration testing and it may carried
out on test objects of varying size.
Component integration testing tests the interaction between software components
and after component testing
System integration testing tests the interaction between the different systems and
may be done after system testing.
Top-down approach
Bottom- up approach
Functional incremental.
System Testing:
System testing is concerned with the behavior of the whole system/product as
defined by the scope of a development project or product.
System testing requires a controlled test environment with the regard to amongst
Others things, control of software versions, testware and the test data.
Acceptance Testing:
The goal of acceptance testing is to establish confidence in the system.
Acceptance testing is focuses on validation type of testing, determine whether
the system is fit for purpose. Finding defects should not be the main focus
in acceptance testing.
A Commercial off the Shelf (COTS) software product may be acceptance tested
when it is installed or integrated
Acceptance testing of the usability of a components may be done during the
component testing.
Acceptance testing of a new functional enhancement may come before system
testing.
Test Types:
Testing of function:
Functional testing considers the specified behavior and is often as referred as
Black- box testing.
Function testing can based upon ISO 9216, be done focusing on suitability
Interoperability, security, accuracy and compliance
Business- process- based testing uses knowledge of the business processes, which
describes the scenarios involved in day – to- day business use of the system.
Use cases are a very useful basis for test cases from business perspective.
The ISO 9216 standard defines Six quality characteristics and the subdivision
Regression testing
Testing of a previously tested program following modification to ensure that
defects have not been introduced or uncovered in unchanged areas of the
software as a result of the changes made. It is performed when the software or its
environment is changed.
Maintenance Testing:
Modification of a software product after delivery to correct defects, to improve
performance or other attributes or to adapt the product to the modified
environment .