Professional Documents
Culture Documents
1
REFERENCE
https://www.guru99.com/levels-of-testing.html
http://www.cs.swan.ac.uk/~csmarkus/CS339/presentations/20061202_Oladim
eji_Levels_of_Testing.pdf
https://w3softech.com/blog/levels-of-testing/
2
Lecture Objectives
Verification
Validation
Fault
Error
Software Testing
Testing Strategies
TestCase
3
Verification and Validation
Verification
refers to the set of activities that ensure that
software correctly implements a specific function.
Validation
“Are we building the right product ?”
Ensure software meets customer’s needs
5
Terminology
Failure: Any deviation of the observed behavior from the
specified behavior
8
9
Why Testing?
Reveal faults/failures/errors
Locate faults/failures/errors
Show system correctness
Improved confidence that system performs as specified
(verification)
Improved confidence that system performs as desired
(validation)
Indicator of system reliability and system quality
10
Software Testing Strategies
1. Unit testing
2. Integration testing
3. System testing
4. Acceptance testing.
http://hackingig.com/what-are-software-testing-levels/
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 11
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 12
1) Unit testing: Unit
Testing
Integration
Testing
System
Testing
Acceptance
Testing
Integrating testing checks the data flow from one module to other
modules.
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 14
3) System testing: Unit
Testing
Integration
Testing
System
Testing
Acceptance
Testing
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 15
4) Acceptance testing: Unit
Testing
Integration
Testing
System
Testing
Acceptance
Testing
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 16
Steps to testing
6. For failed test case, resolve the bug and repeat that test case.
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 17
Test Cases
Expected behavior
The output or action the system should take according to its
requirements
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 18
Type Of Test Cases
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 19
Test Case
TestId : T2001
ModuleNo : T2-EvenOdd
: 1. Open Form #
Test Scenario/
2. Enter number in the textbox txtno
Steps 3. Click button “Check Even/Odd”.
Test Input : 7
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 20
TestId : T4003
ModuleNo : T4-GCD-LCM
: 1. Open Form #
Test Scenario/
2. Enter A in one of the textbox txtno
Steps 3. Click button “GCD/LCM”.
Test Input : 4 A
: FAIL
Pass / Fail
:
Screenshot
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 21
4.b) Analyze Test Results
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 23
TestId : T4003
ModuleNo : T4-GCD-LCM
: 1. Open Form #
Test Scenario/
2. Enter A in one of the textbox txtno
Steps 3. Click button “GCD/LCM”.
Test Input : 4 A
: PASS
Pass / Fail
:
Screenshot
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 24
Testing is complete. All tests have passed.
The version 1.1 is ready for release to the
client.
Bernd Bruegge & Allen H. Dutoit Object-Oriented Software Engineering: Using UML, Patterns, and Java 25