Memory management testing shall use a model of the memory requirements of the system. The memory requirements shall be specified in terms of the amount (normally maximum) of memory to be used (hard disk memory, RAM, ROM, etc.) and/or defined levels of memory leakage. These memory requirements will typically be specified in terms of specific operating conditions (e.g. a peak memory requirement over a particular period of operation under defined transaction loads may be specified).
Test cases shall be designed to exercise the memory usage of the system under the specified conditions. Test cases shall be derived with the aim of exercising the stated memory requirements.
For each test case, the following shall be specified:
- the input(s) to the system
- the memory requirement to be exercised
- the expected outcome
Memory management testing shall be measured as the percentage exercised of the total specified memory management requirements.