当前位置:网站首页>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
边栏推荐
- 【机器学习】手写数字识别
- 时间 (计算)总工具类 例子: 今年开始时间和今年结束时间等
- MySQL Architecture - logical architecture
- 【ODX Studio编辑PDX】-0.3-如何删除/修改Variant变体中继承的(Inherited)元素
- How to send a reliable request before closing the page
- Summary of wechat applet display style knowledge points
- Redis introduction complete tutorial: slow query analysis
- The small program vant tab component solves the problem of too much text and incomplete display
- P2181 对角线和P1030 [NOIP2001 普及组] 求先序排列
- [Lua] Int64 support
猜你喜欢
Redis入门完整教程:键管理
小程序vant tab组件解决文字过多显示不全的问题
JS 3D explosive fragment image switching JS special effect
C语言快速解决反转链表
Qt加法计算器(简单案例)
[OpenGL] note 29 anti aliasing (MSAA)
A complete tutorial for getting started with redis: getting to know redis for the first time
Detailed explanation of heap sort code
JS card style countdown days
Redis入门完整教程:GEO
随机推荐
Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet
攻防世界 MISC 进阶 glance-50
A complete tutorial for getting started with redis: getting to know redis for the first time
Pagoda 7.9.2 pagoda control panel bypasses mobile phone binding authentication bypasses official authentication
Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
【taichi】用最少的修改将太极的pbf2d(基于位置的流体模拟)改为pbf3d
【图论】拓扑排序
LabVIEW中比较两个VI
刷题指南-public
[machine learning] handwritten digit recognition
A complete tutorial for getting started with redis: hyperloglog
Qt个人学习总结
Redis入门完整教程:Bitmaps
ECS settings SSH key login
智力考验看成语猜古诗句微信小程序源码
【剑指offer】1-5题
[graph theory] topological sorting
Taobao commodity review API interface (item_review get Taobao commodity review API interface), tmall commodity review API interface
攻防世界 MISC 进阶区 hit-the-core
MP进阶操作: 时间操作, sql,querywapper,lambdaQueryWapper(条件构造器)快速筛选 枚举类