- Functional testing — are we building the product right?
- More about types of testing
- Detailed test cases
Functional testing — are we building the product right?
- Determine if a piece of software is acting in accordance with pre-determined requirements.
- Functional testing is validating if a system works as intended, meeting any given criteria.
- Most functional tests follow the Arrange-Act-Assert model:
- Arrange, or set up, the conditions for the test
- Input values
- Act by calling some function or method
- Execute test cases
- Assert that some end condition is true
- Compare actual result and expected
- The main points of functional testing
- Understanding customer requirements
- Testing input data
- Gathering expected results
- Executing test cases
- Comparing actual vs. expected results
- Updating results according to test case
- Functional testing best practices – focus on:
- GUI coverage: with different screen resolutions, GUI elements like font size, color, etc.
- Input domain coverage: taking valid and correct size with appropriate formats.
- Return of correct data with correct input.
- Order of functionality (i.e. Tab order).