Questions tagged [test-data]

246 questions
202
votes
19 answers

How to generate sample XML documents from their DTD or XSD?

We are developing an application that involves a substantial amount of XML transformations. We do not have any proper input test data per se, only DTD or XSD files. We'd like to generate our test data ourselves from these files. Is there an…
lindelof
  • 34,556
  • 31
  • 99
  • 140
161
votes
6 answers

Parameter "stratify" from method "train_test_split" (scikit Learn)

I am trying to use train_test_split from package scikit Learn, but I am having trouble with parameter stratify. Hereafter is the code: from sklearn import cross_validation, datasets X = iris.data[:,:2] y =…
Daneel Olivaw
  • 2,077
  • 4
  • 15
  • 23
89
votes
7 answers

Is there a Social Security Number reserved for testing/examples?

Is there a canonical "test SSN" that is used by convention, so is understood by all who see it that it is not a real SSN?
Rob
  • 5,512
  • 10
  • 41
  • 45
55
votes
6 answers

Test User Data (Fake Data)

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…
JJ.
  • 4,974
  • 5
  • 39
  • 48
50
votes
7 answers

Sample database for exercise

I would like to play with a larger database to test my knowledge on SQL. Is there a huge .sql out there that I can use to play with SQL queries?
n00ki3
  • 14,529
  • 18
  • 56
  • 65
34
votes
4 answers

List of mock valid/invalid Email Addresses for Unit Tests

Does anyone know of a list of email addresses (which don’t need to be real) I can use for an email validation assembly for a unit test? I’ve been looking for such a list and can’t seem to find one. I’m not looking for real addresses, just ones that…
31
votes
1 answer

AutoFixture vs NBuilder

I'm selecting tool for populating my .net models (poco) with test data. I'm actually mocking wcf services and need to populate datacontract objects with test data. Found a huge number of test data generation tools, but the majority is related to DB…
Andrii
  • 2,402
  • 1
  • 19
  • 17
27
votes
4 answers

iPhone simulator - how to detect when app is running on simulator (so can setup test data)?

Any sample code that would show me how to, in my iPhone application code: How to detect if the application has just been DEPLOYED to be run to a simulator (and not a device) [if "Deployed" isn't available, then just detecting when the app is being…
Greg
  • 34,042
  • 79
  • 253
  • 454
23
votes
4 answers

How do I get the default temporary directory on Mac OS X?

I'd like to create some directories of data for some unit tests and I'd like these directories to be in the default temporary directory for the user. I could just create a subdir under /tmp I suppose, but I don't want to make an assumption about how…
Abizern
  • 146,289
  • 39
  • 203
  • 257
18
votes
3 answers

Spring/Hibernate testing: Inserting test data after DDL creation

I have a Spring/Hibernate webapp that has some integration tests that run on an in-memory HSQL database. Hibernate takes this blank database and creates all of my test tables and constraints thanks to hbm2ddl=create. However, I have a new bean…
Brandon Yarbrough
  • 37,021
  • 23
  • 116
  • 145
14
votes
1 answer

PHP Script to populate MySQL tables

Is anyone aware of a script/class (preferably in PHP) that would parse a given MySQL table's structure and then fill it with x number of rows of random test data based on the field types? I have never seen or heard of something like this and…
Robert Swisher
  • 1,300
  • 11
  • 12
13
votes
1 answer

How to teardown a specflow scenario

I'm trying to create a new set of tests for testing a legacy web site that I'm working on. The site uses a database at the back end. I'm planning on using SpecFlow and Selenium, however I'm a bit stumped on what the best way to deal with cleaning…
Martin Brown
  • 24,692
  • 14
  • 77
  • 122
12
votes
2 answers

Expensive maintenance with automated test data

At my company, we have a growing set of integration test using JUnit in a Java Web application. Each test uses some specific external XMLs files to populate the database with the needed data to the test. The problem is: When there is a change in…
11
votes
1 answer

Where can I find magnetic strip (track) test data?

I have written a library of functions that parses track 1 and track 2 data from magnetic strips on cards (credit cards, IDs etc.) as per ISO/IEC 7813. I am looking to test this library rigorously against some valid (but obviously not real credit…
R Ghosh
  • 612
  • 1
  • 4
  • 9
10
votes
2 answers

How to acquire or generate test data for a recommender system

I'm currently researching recommender systems and would like to know how other researchers acquire or generate test data to evaluate the systems' performance?
Ullr
  • 101
  • 3
1
2 3
16 17