从模式自动生成测试数据到DB? [英] Automatically generated test data to a DB from a schema?

查看:164
本文介绍了从模式自动生成测试数据到DB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有讨论数据库,我需要大量的测试数据,用于不同尺寸的样品。请参阅准备好的SELECT,JOIN和CREATE查询,请向下滚动链接。


  1. 如何自动生成测试数据到db?


  2. 如何在不同大小的样本中产生测试数据?


  3. 工具?



解决方案

测试数据:




  • Databene Benerator :支持许多支持JDBC的数据库品牌,使用与DbUnit兼容的XML格式,GPL许可证。


  • 超级Smack :最初是MySQL的负载测试工具,它还支持PostgreSQL,它包括一个模拟数据生成器。






href =http://stackoverflow.com/questions/591892/tools-for-generating-mock-data>问题这里在2月的StackOverflow,上面的两个选择似乎是最好的选择。 p>

I have a discussion-db, and I need a great amount of test data, for different sized samples. Please, see the ready SELECT, JOIN and CREATE-queries, please scroll down in the link.

  1. How can I automatically generate test data to the db?

  2. How to generate test data in different sized samples?

  3. Is there some ready tool?

解决方案

Here are a couple of suggestions for free tools that generate test data:

  • Databene Benerator: supports many JDBC-capable database brands, uses XML format compatible with DbUnit, GPL license.

  • Super Smack: originally a load-test tool for MySQL, it also supports PostgreSQL and it includes a generator of mock data.

I asked a similar question here on StackOverflow in February, and the two choices above seemed like the best options.

这篇关于从模式自动生成测试数据到DB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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