当前位置:网站首页>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
边栏推荐
- Complete tutorial for getting started with redis: bitmaps
- The small program vant tab component solves the problem of too much text and incomplete display
- Redis入门完整教程:GEO
- 常用技术指标之一文读懂BOLL布林线指标
- Google Earth engine (GEE) -- take modis/006/mcd19a2 as an example to batch download the daily mean, maximum, minimum, standard deviation, statistical analysis of variance and CSV download of daily AOD
- Erik baleog and Olaf, advanced area of misc in the attack and defense world
- Serial port data frame
- 攻防世界 MISC 进阶区 can_has_stdio?
- 实战模拟│JWT 登录认证
- Google Earth engine (GEE) - globfire daily fire data set based on mcd64a1
猜你喜欢

Google Earth engine (GEE) - globfire daily fire data set based on mcd64a1

Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet

The small program vant tab component solves the problem of too much text and incomplete display

debug和release的区别

C语言快速解决反转链表

常用技术指标之一文读懂BOLL布林线指标

Redis入门完整教程:慢查询分析

Co create a collaborative ecosystem of software and hardware: the "Joint submission" of graphcore IPU and Baidu PaddlePaddle appeared in mlperf

字体设计符号组合多功能微信小程序源码

Redis入门完整教程:哈希说明
随机推荐
A complete tutorial for getting started with redis: hyperloglog
攻防世界 MISC 进阶区 can_has_stdio?
Attack and defense world misc advanced grace-50
A complete tutorial for getting started with redis: understanding and using APIs
Notepad++--编辑的技巧
Redis: redis configuration file related configuration and redis persistence
ffmpeg快速剪辑
debug和release的区别
图片懒加载的原理
Analysis of the self increasing and self decreasing of C language function parameters
Complete tutorial for getting started with redis: bitmaps
Attack and defense world misc master advanced zone 001 normal_ png
Redis入门完整教程:列表讲解
EditPlus--用法--快捷键/配置/背景色/字体大小
Attack and defense world misc advanced area ditf
Google Earth engine (GEE) - globfire daily fire data set based on mcd64a1
Redis introduction complete tutorial: List explanation
A complete tutorial for getting started with redis: redis usage scenarios
PS style JS webpage graffiti board plug-in
Is Huatai Securities a nationally recognized securities firm? Is it safe to open an account?