且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

测试用户数据(假数据)

更新时间:2023-02-01 23:30:30

这里有一些工具。我之前使用 http://www.generatedata.com/ 为MySql数据库生成数据。 RedGate有一个很好的工具来填充您的SQL Server数据库与测试数据称为 SQL数据生成器。 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:
Faker.js 现已可用。它是一个建立在node.js上的项目,看起来很全面。

UPDATE: Faker.js is now available. It is a project built on node.js, and looks pretty comprehensive.

另一个更新: Mockaroo 非常棒!

如果您希望HTTP API是假用户数据,请查看随机用户生成器

If you'd like an HTTP API of fake user data, check out Random User Generator