当前位置:网站首页>PICT 生成正交测试用例教程
PICT 生成正交测试用例教程
2022-07-04 22:46:00 【Wu_Candy】
今日分享主题:如何使用 PICT 快速生成正交测试用例。
PICT 简介
- PICT 全称 Pairwise Independent Combinatorial Testing tool,是微软开发的一款结对测试用例生成工具,现在已经对外提供,可以在互联网上下载到安装包。
- PICT 可以有效地按照两两测试的原理,进行测试用例设计。在使用PICT时,需要输入与测试用例相关的所有参数,以达到全面覆盖的效果。
PICT 使用方法
- 下载PICT安装包 (已放置测试资源分享文章的网盘链接中)
- 准备模型文件testModel.txt
- 将testModel.txt模型文件放置到PICT目录下
- dos窗口执行命令生成测试用例
模型文件testModel.txt内容
注:标点符号均为英文
PLATFORM: x86, ia64, amd64
CPUS: Single, Dual, Quad
RAM: 128MB, 1GB, 4GB, 64GB
HDD: SCSI, IDE
OS: NT4, Win2K, WinXP, Win2K3
IE: "4.0", "5.0", "5.5", "6.0"
APP: SQLServer, Exchange, Office
{ PLATFORM, CPUS, RAM, HDD } @ 1
{ OS, IE } @ 2
[APP]="Office";
IF [RAM]="64GB" THEN [HDD]="IDE" AND [IE]="4.0";
IF [IE] in {"4.0","5.0"} THEN [RAM] in {"1GB", "4GB"};
IF [PLATFORM] in {"ia64", "amd64"} THEN [OS] in {"WinXP", "Win2K3"};
模型文件由三部分组成,如下图所示
三部分顺序之间的规则:
- 不可调换,
- 不可重叠
- 部分之间不需要任何分隔符
- 允许出现空行
- 允许通过 “#” 添加注释
cmd命令生成测试用例
(1).执行命令
进入doc窗口下的pict目录下,执行命令:pict testModel.txt
D:\your_pict_directory> pict testModel.txt
(2).执行效果 (此处的testModel.txt文件是pict_test_case.txt)
(3).执行结果输出重定向
输出重定向到txt文本中
D:\your_pict_directory> pict testModel.txt> OutputFile.txt
输出重定向到excel文件中
D:\your_pict_directory> pict testModel.txt> OutputFile.xls
dos窗口中直接打开重定向的excel文件
D:\your_pict_directory>OutputFile.xls
excel打开效果图如下:
end
边栏推荐
- mamp下缺少pcntl扩展的解决办法,Fatal error: Call to undefined function pcntl_signal()
- 【ODX Studio编辑PDX】-0.2-如何对比Compare两个PDX/ODX文件
- 攻防世界 misc 进阶区 2017_Dating_in_Singapore
- Attack and defense world misc master advanced zone 001 normal_ png
- ETCD数据库源码分析——处理Entry记录简要流程
- The overview and definition of clusters can be seen at a glance
- 攻防世界 MISC 进阶区 Erik-Baleog-and-Olaf
- 该如何去选择证券公司,手机上开户安不安全
- Async await used in map
- 【taichi】用最少的修改将太极的pbf2d(基于位置的流体模拟)改为pbf3d
猜你喜欢
随机推荐
【taichi】用最少的修改将太极的pbf2d(基于位置的流体模拟)改为pbf3d
Summary of wechat applet display style knowledge points
时间 (计算)总工具类 例子: 今年开始时间和今年结束时间等
The solution to the lack of pcntl extension under MAMP, fatal error: call to undefined function pcntl_ signal()
colResizable. JS auto adjust table width plug-in
攻防世界 MISC 进阶区 3-11
Redis入門完整教程:Pipeline
A complete tutorial for getting started with redis: getting to know redis for the first time
Explanation of bitwise operators
Record: how to scroll screenshots of web pages on Microsoft edge in win10 system?
Sword finger offer 67 Convert a string to an integer
【室友用一局王者荣耀的时间学会了用BI报表数据处理】
UML图记忆技巧
Redis入门完整教程:有序集合详解
JS card style countdown days
Tweenmax emoticon button JS special effect
Redis入门完整教程:客户端通信协议
Editplus-- usage -- shortcut key / configuration / background color / font size
LabVIEW中比较两个VI
小程序vant tab组件解决文字过多显示不全的问题