Multi是Brian 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支持,安装和运行的方法如下:
- Fetch either the tar archive or the zip archive. Extract the files.
- You'll see two jar files: Multi.jar and Trace.jar. Put those in your CLASSPATH.
- 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