黑盒测试设计专题:Pairwise配对测试

本文详细介绍了Pairwise测试设计,包括其定义、优势以及与其他N-wise测试的关系。重点讲解了PICT工具的使用,包括模型文件创建、约束设定、子模型构建和测试用例生成。PICT作为微软开发的工具,能有效提高测试效率和覆盖率,适用于实际项目中的测试设计。
摘要由CSDN通过智能技术生成

点击上方 BeTester ,学习更多知识

让碎片成体系,让测试更专业

概述

定义

维基百科: 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

优势

配对测试设计能够带来以下的好处:

  1. 能够有效的应对复杂环境下的测试。
  2. 能够有效的提高“测试性价比”。
  3. 关注与系统的“变量”,同时考虑“变量”所有可能的“取值”。

N-wise

Pairwise是N-wise的一个具体化实例,Pairwise实际上就是2-wise。除了2-wise外,还有3-wise、4-wise、5-wise、6-wise等。参照Pairwise的定义,我们可以知道,N-wise是对N个参数进行全排列组合生成的相互独立的参数集而开展的

  • 1
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值