在数据库中创建测试数据 [英] Creating test data in a database

查看:107
本文介绍了在数据库中创建测试数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道一些测试数据生成器,但大多数似乎只是填充名称和地址样式数据库[随意纠正我]。

I'm aware of some of the test data generators out there, but most seem to just fill name and address style databases [feel free to correct me].

我们有一个大型的集成和规范化的应用程序 - 例如发票具有与库存表相关联的部件号,与客户表相关联的客户编号,与审计信息相关联的变更日志等,这显然难以随机填充。目前,我们模糊现实生活中的数据以获取测试数据(但不是很好)。

We have a large integrated and normalised application - e.g. invoices have part numbers linked to stocking tables, customer numbers linked to customer tables, change logs linked to audit information, etc which are obviously difficult to fill randomly. Currently we obfuscate real life data to get test data (but not very well).

您使用什么工具方法创建大量数据进行测试?

What tools\methods do you use to create large volumes of data to test with?

推荐答案

我在哪里工作,我们使用 RedGate Data Generator 生成测试数据。

Where I work we use RedGate Data Generator to generate test data.

因为我们在银行领域工作。当我们必须处理名词数据(信用卡号,个人ID,电话号码)时,我们开发了一个可以屏蔽这些数据库字段的应用程序,以便我们可以将它们作为真实数据使用。

Since we work in the banking domain. When we have to work with nominative data (Credit card numbers, personnal ID, phone numbers) we developed an application that can mask these database fields so we can work with them as real data.

我可以说,使用Redgate可以接近生产服务器上的真实数据,因为您可以自定义BD中每个表的每个字段。

I can say with Redgate you can get close to what your real data can look like on a production server since you can customize every field of every table in your BD.

这篇关于在数据库中创建测试数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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