junit测试用例生成器 [英] junit test case generator

查看:152
本文介绍了junit测试用例生成器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一个很好的工具可以根据一些原始模板自动生成jUnit测试用例?这样,测试用例可以由没有大量Java或jUnit背景的工程师编写。作为背景信息,这是用于黑盒测试。如果还有一些其他选择来运行回归测试而不是使用jUnit,我也很感激听到它。

Is there a good tool out there to automatically generate jUnit test cases based on some primitive template? This is so that test cases can be written by engineers who do not have a lot of Java or jUnit background. As background information, this is for black box testing. If there is some other alternative to run regression tests than using jUnit, I would also appreciate hearing about it.

Thx

推荐答案

另一种选择可能是创建一种更高级别的特定于域的语言,让工程师能够对他们的测试进行编码.Groovy是一种简单的方法(google groovy) & DSL),或者在频谱的另一端使用JavaCC。

Another alternative could be to create a higher level domain specific language that makes sense to the engineers for them to code their tests in. Groovy is an easy way to do that (google groovy & DSL), or at the other end of the spectrum use JavaCC.

这篇关于junit测试用例生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆