问题描述
我在哪里可以取得或如何产生可用于测试应用程式的虚假使用者资料(名称,电子邮件地址,位置等)的大型格式化集合?
Where can I get, or how can I generate a large formatted collection of fake user data (names, email address, locations, etc.) that can be used for testing an application?
它可以明显是假的,这将仅限于开发服务器。但我相信任何事情都会比我想出的更好。
It can be clearly fake, this will be limited to the development server. But I'm sure anything would be better than what I could come up with.
推荐答案
这里有一些工具。我之前使用为MySql数据库生成数据。 RedGate有一个很好的工具来填充您的SQL Server数据库与测试数据称为。 RedGate工具的费用约为300美元,但还有免费试用。
There are some tools built just for this. I've used http://www.generatedata.com/ before to generate data for MySql databases. RedGate has a nice tool to fill your SQL Server database with test data called SQL Data Generator. The RedGate tool costs about $300, but there is a free trial.
UPDATE:
现已可用。它是一个建立在node.js上的项目,看起来很全面。
UPDATE:Faker.js is now available. It is a project built on node.js, and looks pretty comprehensive.
另一个更新:非常棒!
如果您希望HTTP API是假用户数据,请查看
If you'd like an HTTP API of fake user data, check out Random User Generator
这篇关于测试用户数据(假数据)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!