测试用例生成器

测试用例生成器

一、现成的工具:

  1. PICT
    链接:https://pan.baidu.com/s/12Ed6dPmgh-hP2l0Iq4zMNw
    提取码:putt
  2. pairs
    链接:https://pan.baidu.com/s/1WjbTsOD-CUvLBL9O2n7_oA
    提取码:342i
    使用
    第一步,使用excel把因子和水平数列好,然后复制到txt里面,比如
    excel:
    在这里插入图片描述
    txt:
    在这里插入图片描述

第二步,在命令行执行命令生成

E:packagesallpairs
$ allpairs.exe C:Users54718Desktopzj.txt >allpair_zj.xls

备注:
生成txt文件也是可以的,如果不先在excel列好复制到txt,会报制表符错误

The data table should be tab delimited. Each row of the table must have the same number of columns as the first row (the label row). Check for extra tabs or spurious lines in the table.
  1. 某大佬实现的工具(部分付费)
    链接:https://pan.baidu.com/s/1y4Dparvn-EXxGn6YvzjaUw
    提取码:62fm

二、代码实现:

python+AllPairs
image

总结

最后得出的用例数排序
笛卡尔积 < PICT < pairs < AllPairs
所以工具流建议用pairs,有代码基础的首推AllPairs这个lib

更多学习笔记移步 https://www.cnblogs.com/kknote
原文地址:https://www.cnblogs.com/kknote/p/15134058.html