ITPub博客

首页 > Linux操作系统 > Linux操作系统 > SWT-05: Functional Component Tests

SWT-05: Functional Component Tests

原创 Linux操作系统 作者:AlexQin 时间:2010-09-30 09:18:34 0 删除 编辑
What are Functional Component Tests?

Functional coponent tests are also called black-box tests. They are simply the kind of tests which consider the system to be a "black box". This means that the testing is done without special knowledge or consideration of the internal structure of the software. The data flow or control flow, internal timings and internal interactions are deliberately unconsidered. Inputs are stimulated or supplied by peripheral devices or simulation systems. The outputs of the software are checked for their expected values and behaviour related to the supplied inputs. The following features are common to these tests:

  1. The tests are strictly checking the functionality and performance of the software against its requirements.
  2. The timing of the inputs and expected outputs is part of the checks, as far as it is subject to specification.
  3. Additional to checking the required behaviour, test requirements will usually be extended to check also the behaviour at unexpected inputs. These are also called "dirty tests".
A good test environment, like our Perl based system can be also used for black-box testing i.e. functional testing of components. At the defined and specified input interface the component is stimulated with input data. In the Perl environment this is done e.g. with prefilled arrays containing the test data or by reading the test data from a file. The data are handed over to the tested function via the pass parameter interface or in case the data are static it can be set prior to execution via set-functions. The output interface is recorded and evaluated to check if the expected results were achieved. This can be used for regression testing in case the source code was modified e.g. in a refactoring process, to make sure that the code improvement or refactoring did not change the fuctionality.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/11379785/viewspace-675911/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: SWT-04: Module Tests
请登录后发表评论 登录
全部评论

注册时间:2008-07-24

  • 博文量
    258
  • 访问量
    1049553