測試用例生成器
一、現成的工具:
-
PICT
連結:https://pan.baidu.com/s/12Ed6dPmgh-hP2l0Iq4zMNw
提取碼:putt
-
pairs
連結:https://pan.baidu.com/s/1WjbTsOD-CUvLBL9O2n7_oA
提取碼:342i
使用
第一步,使用excel把因子和水準數列好,然後複制到txt裡面,比如
excel:
txt:測試用例生成器 測試用例生成器
第二步,在指令行執行指令生成
E:\packages\allpairs
$ allpairs.exe C:\Users\54718\Desktop\zj.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.
-
某大佬實作的工具(部分付費)
連結:https://pan.baidu.com/s/1y4Dparvn-EXxGn6YvzjaUw
提取碼:62fm
二、代碼實作:
python+AllPairs
總結
最後得出的用例數排序
笛卡爾積 < PICT < pairs < AllPairs
是以工具流建議用pairs,有代碼基礎的首推AllPairs這個lib