概述
定义
维基百科: In computer science, all-pairs testing or pairwise testing is a combinatorial method of software testing that, for each pair of input parameters to a system (typically, a software algorithm), tests all possible discrete combinations of those parameters. Using carefully chosen test vectors, this can be done much faster than an exhaustive search of all combinations of all parameters, by “parallelizing” the tests of parameter pairs.
配对测试,Pairwise Testing/All-Pairs Testing,也叫两两测试 或 结对测试,是一种软件测试的组合方法,通过对系统的一组组输入参数两两组合生成的相互独立的参数集而开展的测试。
也许大家对 all-pairs 理解存在困惑,以为是全组合,其实不然。我们可以这么理解:all-pairs 是所有两两组合(pair)的全集(all)。如果是全组合应该是 all-combinations。
参考文档:
https://en.wikipedia.org/wiki/All-pairs_testing
https://www.developsense.com/pairwiseTesting.html
优势
配对测试设计能够带来以下的好处:
- 能够有效的应对复杂环境下的测试。
- 能够有效的提高“测试性价比”。
- 关注与系统的“变量”,同时考虑“变量”所有可能的“取值”。
N-wise
Pairwise是N-wise的一个具体化实例,Pairwise实际上就是2-wise。除了2-wise外,还有3-wi