Multi - 自动产生“test idea”

Multi是一款由Brian Marick开发的小程序,旨在辅助生成针对布尔和关系运算表达式的测试用例。该工具能够帮助程序员快速构思出对于特定逻辑路径的测试想法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

MultiBrian Marick写的一个小程序,用于为表达式自动产生测试用例(或者叫“test ideas”)。

Multi - Generating test ideas from expressions with booleans and relational operators

A test idea is a brief statement of something that should be tested. For example, if you're testing a square root function, one idea for a test would be "test a number less than zero". The idea is to check if the code handles an error case.

关于这个测试用例设计辅助小工具的基本原理和来源可参考《Testing for Programmers

http://www.exampler.com/testing-com/writings/half-day-programmer.pdf

下面是使用这个小程序的一个例子:

% multi

Type in an expression.

'q' to quit.

> a && b < c

Test ideas for (a && (b<c)):

a (b<c)

----- ------------

true b barely < c

FALSE true

true b==c

> q

Multi是用java写的小工具,运行需要java支持,安装和运行的方法如下:

  1. Fetch either the tar archive or the zip archive. Extract the files.
  2. You'll see two jar files: Multi.jar and Trace.jar. Put those in your CLASSPATH.
  3. Run the program with java com.testing.multi.Multi (The multi script will save you typing.)

下载地址:

http://www.exampler.com/testing-com/tools/multi/Multi.zip

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值