当前位置:网站首页>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
边栏推荐
- The overview and definition of clusters can be seen at a glance
- Redis入门完整教程:Bitmaps
- 金融市场,资产管理与投资基金
- 智力考验看成语猜古诗句微信小程序源码
- Explanation of bitwise operators
- 【ODX Studio编辑PDX】-0.3-如何删除/修改Variant变体中继承的(Inherited)元素
- Redis入门完整教程:键管理
- MySQL Architecture - user rights and management
- Redis getting started complete tutorial: Key Management
- One of the commonly used technical indicators, reading boll Bollinger line indicators
猜你喜欢

A complete tutorial for getting started with redis: transactions and Lua

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

C语言快速解决反转链表

A complete tutorial for getting started with redis: getting to know redis for the first time

Qt加法计算器(简单案例)

Editplus-- usage -- shortcut key / configuration / background color / font size

Mongodb aggregation operation summary

A complete tutorial for getting started with redis: Pipeline

Redis入门完整教程:Pipeline

常用技术指标之一文读懂BOLL布林线指标
随机推荐
剑指 Offer 67. 把字符串转换成整数
LabVIEW中比较两个VI
Redis入门完整教程:Bitmaps
剑指 Offer 68 - I. 二叉搜索树的最近公共祖先
A complete tutorial for getting started with redis: hyperloglog
Is Huatai Securities a nationally recognized securities firm? Is it safe to open an account?
Sword finger offer 65 Add without adding, subtracting, multiplying, dividing
EditPlus--用法--快捷键/配置/背景色/字体大小
Redis入门完整教程:Redis使用场景
Redis getting started complete tutorial: publish and subscribe
Unity Xiuxian mobile game | Lua dynamic sliding function (specific implementation of three source codes)
[try to hack] wide byte injection
Explanation of bitwise operators
Erik baleog and Olaf, advanced area of misc in the attack and defense world
S32 Design Studio for ARM 2.2 快速入门
JS card style countdown days
Attack and defense world misc advanced area can_ has_ stdio?
How to send a reliable request before closing the page
Record: how to scroll screenshots of web pages on Microsoft edge in win10 system?
刷题指南-public