zoukankan      html  css  js  c++  java
  • PICT的安装与使用

    一、PICT的简介

          PICT全称Pairwise Independent Combinatorial Testing tool,是微软的一款成对组合的命令行生成工具,生成pairwise testing所需的测试用例。那么什么是pairwise testing呢?以下是http://www.pairwise.org/对pairwise testing的解释:

    Pairwise (a.k.a. all-pairs) testing is an effective test case generation technique that is based on the observation that most faults are caused by interactions of at most two factors. Pairwise-generated test suites cover all combinations of two therefore are much smaller than exhaustive ones yet still very effective in finding defects.

          生成pairwise testing测试用例的工具有很多,http://www.pairwise.org/tools.asp都有详细的介绍,其中会使用微软的PICT是一个软件测试工程师必备的技能。

    二、PICT的下载和安装

         点击链接http://download.microsoft.com/download/f/5/5/f55484df-8494-48fa-8dbd-8c6f76cc014b/pict33.msi可以下载到PICT。

         安装过程也很简单,只需一直next就可以,当然安装路径看个人喜好了。

    三、PICT的使用

         安装完PICT后,可以打开它的安装目录,可以看到:

         

         1、在该目录下,即在PICT的目录下,新建一个test.txt文件,输入与测试用例相关的所有参数

         

         保存文件。

         2、CMD进入命令提示符。输入命令D:进入PICT所在的D盘下,然后cd D:ApplicationPICT进入工作目录。输入pict test.txt 命令输出结果。

         

         3、也可以通过命令pict test.txt >test.xls命令,将结果输出到test.xls的excel表格当中,输出的表格会放在PICT目录下。

         

         通过以上步骤,我们成功的得到了测试的组合

      

    四、总结

         通过PICT,我们能够很有效的按照两两测试的原理,得到成对组合覆盖的测试用例,既简单又高效。不仅大大降低了测试用例的数量,同时也可保证很高的测试覆盖率。

  • 相关阅读:
    近期学习情况
    java连接数据库的两种方法总结
    近两个星期学习成果
    云笔记第一阶段总结
    圆面积
    C++计算器项目的初始部分
    C++视频课程
    A+B Format
    大一下学期的自我目标
    Kohana的请求流
  • 原文地址:https://www.cnblogs.com/tjuscslirui/p/4544138.html
Copyright © 2011-2022 走看看