6. Testing Methodologies
Any methodology is
better than no
methodology
Select a methodology
that supports the team
dynamic and satisfies
the testing objectives
Code for the
customer/end user, not
the methodology
Focus on modularity
and sustainability
9. Code Isolation and Refactoring
Class
Method Method Method Method Method Method
Class Class Class
Method Method Method Method Method Method
Test Test Test Test Test Test
10. Refactor the core solution components for testability.
CODE ISOLATION
13. Unit Testing Principles
Separate interface from
implementation
Fail first in order to
succeed
Tests do not drive
functionality - they verify
functionality
Features define tests
and tests define methods
Tests should exercise all
probable execution paths
14. Unit Testing Methodologies
Separate interface from
implementation
Fail first in order to
succeed
Tests do not drive
functionality - they verify
functionality
Features define tests
and tests define methods
Tests should exercise all
probable execution paths
17. Integration Testing Objectives
Test code
execution against Verify methods as
Validate/invalidate
target they will be used in
unit test results
system/dependenci released code
es
Identify
Exercise all points
vulnerabilities in
of interoperability
execution chain
18. Integration Testing Principles
Tests should exercise
actual dependencies –
no mocks or stubs
Tests should not be
authored or driven by
developer
Tests should cover all
application tiers (top-
down, bottom-up, or
both)
Manual testing is
acceptable (and often
preferred)
19. Integration Testing Methodologies
Inverse Isolation
Reusing unit tests by
replacing mock or stub
objects with actual
implementations
Black Box
Open-ended, interface-
driven tests that explore
available functionality and
are not driven by specific
feature requirements
White Box
Predefined set of test
routines that verify specific
functional requirements
20. Create and execute integration tests for core solution components.
INTEGRATION TESTS
21. Thank you for attending!
(This slide must always be the last
slide in your deck)