zoukankan      html  css  js  c++  java
  • Pairwise Independent Combinatorial Testing tool (PICT)

    PICT是微软推出的一款自动生成测试用例的小工具。体积很小(不到1MB),而且使用起来简单方便。下面通过一个例子展示一下它的能力:

    根据这些条件, 我们设定的模型如下:

    User name: NULL, not exist, too long, too short, legal
    Password: NULL, too long, too short, not match, legal
    Captcha: NULL, too long, too short, not match, legal
    Session: one month, three months, twelve months, none
    Button: OK, Cancel

     

    将该模型保存为一个文本文档,例如:model.txt。然后,我们就可以利用PICT来自动生成测试用例了。

    pict D:\model.txt > D:\output.xls
    

    这句命令的意思是,从model.txt文件中读取输入,并将生成的测试用例保存为output.xls文件

    命令执行之后,生成的测试用例如下:

  • 相关阅读:
    @雅礼集训01/13
    @hdu
    @bzoj
    @hdu
    @bzoj
    @雅礼集训01/10
    @codeforces
    @spoj
    @bzoj
    @bzoj
  • 原文地址:https://www.cnblogs.com/tuhz/p/4543378.html
Copyright © 2011-2022 走看看