STM Unit-4
STM Unit-4
STM Unit-4
CONTENTS
Software Maintenance
Corrective maintenance
Changes made to correct a system after a failure has
been observed (usually after general release).
Adaptive maintenance
Changes made to achieve continuing compatibility
with the target environment or other systems.
Perfective maintenance
Changes designed to improve or add capabilities.
WHEN IS REGRESSION TESTING DONE?
Bug-Fix regression
This testing is performed after a bug has been
reported and fixed. Its goal is to repeat the test cases
that expose the problem in the first place.
Side-Effect regression/Stability regression
It involves retesting a substantial part of the product.
The goal is to prove that the change has no
detrimental effect on something that was earlier in
order. It tests the overall integrity of the program.
REGRESSION TESTING TECHNIQUES
Output statements
This method has the following drawbacks:
(i) It may require changes in the code. These changes
may mask an error or introduce new errors in the
program.
(ii) After analysing the bug, we may forget to remove
these added statements which may cause other
failures.
DEBUGGING TECHNIQUES
2.Breakpoint execution
Breakpoint is actually a watch point inserted at
various places in the program. But these insertions
are not placed in the actual user program and
therefore need not be removed manually like output
statements.
program is executed up to the breakpoint inserted.
At that point, you can examine whatever is desired.
Afterwards, the program will resume and will be
executed further for the next breakpoint.
DEBUGGING TECHNIQUES
3.Single stepping
After every instruction execution, the users can
watch the condition or status of variable.
Single stepping is implemented with the help of
internal breakpoints.
Step-into
It means execution proceeds into any function in the
current source statement and stops at the first
executable source line in that function.
DEBUGGING TECHNIQUES
Step-over
It is also called skip, instead of step.
It treats a call to a function as an atomic operation
and proceeds to the textually succeeding source line
in the current scope.
DEBUGGING TECHNIQUES