测试数据生成工具

发布于 2024-07-19 03:07:52 字数 49 浏览 6 评论 0原文

有没有什么工具可以根据特定要求生成测试数据?

例如大小、文件类型

Is there any tool to generate test data based on specific requirements?

e.g. Size, file type

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

一个人练习一个人 2024-07-26 03:07:52

你的问题是相当开放式的......

通过搜索“语料库”一词,你可以找到一些对许多领域的测试有用的数据,通常与自然语言相关。

如果想生成随机数据,就去破解一个 Perl 脚本......
但是:

我见过很多人生成大量数据来测试代码的性能,却忘记检查结果是否正确。

如果您足够幸运,有可能进行往返,例如压缩/解压缩,则随机数据生成可以提供有用的信息并捕获您未曾想到的极端情况

Your question is quite open ended ...

You can find some data useful for testing in many areas, usually related to natural languages, by searching for the word "corpus".

If want to generate random data, go and hack a Perl script...
but :

I have seen many people generating tons of data to test the performance of their code while forgetting to check the result was correct.

If you are lucky enough to have the possibility to do a round trip, like for example with compression / decompression, the random data generation can provide useful and catch corner cases you would not have thought of

听风吹 2024-07-26 03:07:52

那么,更大的背景是什么? 特定领域通常有专门的工具。 我主要了解MS技术,其中“数据家伙”可以进行数据库测试数据生成,并且(不相关的)PEX可以使用分析来查找进入不常见代码分支的数据......但对于很多更具体的场景,您可能需要编写自己的工具。

Well, what is the larger context? There are usually specialized tools in specific areas. I mainly know about MS technology, where "data dude" can do database test data generation, and (unrelated) PEX can use analysis to find data that gets into your uncommon code branches... but for much more specific scenarios, you might need to write your own tool.

一花一树开 2024-07-26 03:07:52

这是一个非常开放式的问题。 虽然测试数据肯定想要测试特定的测试用例,因此正如 Marc 所说,编写自己的工具可能是更好的方法,但我怀疑通用工具能否满足您的需求。 但是,如果您解释一下您的情况,可能会更容易提供帮助。

This is a very a open ended question. Although surely test data wants to test specific test cases, therefore as Marc says, writing your own tool might be a better way to go, I doubt a general tool will every give you what you need. However if you explain your scenario, it might be easier to help.

友谊不毕业 2024-07-26 03:07:52

这个问题是非常开放式的。 但我在自动处理测试数据的测试用例时多次遇到这个问题。 如果这是您正在寻找的上下文,我的回答可以帮助您。

对于测试数据生成工具,您可能需要查看网格工具套件。 他们有一组功能和应用程序,可以生成所需格式的测试数据并将其存储在本地 mySQL 表/excel 中。

请注意,这不是免费工具,它涉及许可证费用。

The question is very open ended. But I have faced the issue many a times while automating my test cases w.r.t test data. If this is the context you are looking for, my answer can you help you.

For Test Data Generation tool, you might want to have a look at Grid tools suite. They have a set of functionality and applications that can Generate Test data in the required format and store it in a local mySQL tables/excel.

Please note that this is not a free tool, it involves license costs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文