Questions tagged [test-data]

246 questions
9
votes
6 answers

generate a random file using shell script

How can i generate a random file filled with random number or character in shell script? I also want to specify size of the file.
Progress Programmer
  • 7,076
  • 14
  • 49
  • 54
9
votes
1 answer

Generate test data using Oracle PL/SQL developer

I want to test some schemas and indexes, and I was wondering if there is a functionality in PL/SQL Developer that can generate test data (so I won't have to create sequences and loops to insert data in the tables).
eyettea
  • 1,376
  • 2
  • 16
  • 35
9
votes
2 answers

How to let Autofixture create an instance of a type that contains properties with an interface type?

I have such a class: public class ViewModel { public IPagination List { get; set; } // interface! public SearchFilter SearchFilter { get; set; } public string Test { get; set; } } public class SearchFilter { public string Name…
Rookian
  • 19,841
  • 28
  • 110
  • 180
8
votes
3 answers

Populate tables with test data whilst maintaining relational integrity

I have a MySQL database with InnoDB tables, many of which have foreign keys. I was going to write a script to populate the tables with test data (10-20k rows or more) but I thought I ought to ask if there's something already out there that can…
bcmcfc
  • 25,966
  • 29
  • 109
  • 181
8
votes
6 answers

Persisting complex test data

We are using builder pattern to generate test data. These domain objects have relations between them. Our functional tests require these objects to be persisted. Think about this model: If I want a plain instance of C I do aNew().c().build() If I…
nimcap
  • 10,062
  • 15
  • 61
  • 69
7
votes
3 answers

Using HSQL for .NET development and related questions of process

My team uses a shared instance of Oracle for development using C#, NHibernate and ASP.NET, and we occasionally step on each others toes when making data or schema changes holding up everyone. On another project I'm using Java and HSQL in 100%…
Simon Gibbs
  • 4,737
  • 6
  • 50
  • 80
7
votes
3 answers

Any good surname databases?

I'm looking to generate some database test data, specifically table columns containing people's names. In order to get a good indication of how well indexing works with regard to name based searches I want to get as close as possible to real world…
redcalx
  • 8,177
  • 4
  • 56
  • 105
7
votes
2 answers

Combine list from multiple spring-boot YAML files

Is it possible to combine lists of the same elements from multiple spring-boot configuration files written in YAML? Example: postgres.yml contains my postgres db informations. It also contains the flyway location of my migration…
Max N.
  • 993
  • 1
  • 12
  • 31
6
votes
4 answers

Predicting unseen data on Target variable based Encoding Technique

I am working on an automated ML (Regression) algorithm where the flow of process is: User uploads a data -- Data Cleaning -- Encoding(Target Encoder) -- Fitting model -- results. I am completely fine until this point, my confusion is when the user…
SMR
  • 401
  • 4
  • 15
6
votes
1 answer

How can you store and modify large datasets in node.js?

Basics So basically I have written a program which generates test data for MongoDB in Node. The problem For that, the program reads a schema file and generates a specified amount of test data out of it. The problem is that this data can eventually…
MauriceNino
  • 6,214
  • 1
  • 23
  • 60
6
votes
6 answers

Creating & rolling back test data with SQL server

I am creating a series of web automation tests which require test data to be in a database (SQL Server 2008). To generate the required data for each test I have to call some C# code which will insert the correct data into the DB (i.e. I can't just…
James Hollingworth
  • 14,040
  • 12
  • 39
  • 57
6
votes
3 answers

Traveling salesman example with known global optimum

I made a memetic algorithm in Python for traveling salesman problem. However, all the test data (list of distances between cities) I've encountered lack the information of the best solution, so I can't know how close to global optimum my algorithm…
vuzun
  • 942
  • 2
  • 8
  • 15
6
votes
2 answers

Random File Generator (again!)

I badly need a random file generator that generates a truly random, non-compressible dummy files. I ended up with this delphi code. It works, but it's painfully sloooow var Buf : Integer; TheFile : TFileStream; begin TheFile :=…
TheDude
  • 3,045
  • 4
  • 46
  • 95
5
votes
5 answers

Mock Object Data

I'd like to mock up object data, not the objects themselves. In other words, I would like to generate a collection of n objects and pass it into a function which generates random data strings and numbers. Is there anything to do this? Think of it…
Keith Adler
  • 20,880
  • 28
  • 119
  • 189
5
votes
2 answers

How to setup and teardown functional test data in Geb grails

I have many working/passing functional geb/spock tests (each extending GebReportingSpec) that are testing a web application with test data all created from the BootStrap.groovy at the beginning of the functional test suite. I want to move the test…
John Dalton
  • 249
  • 5
  • 13
1
2
3
16 17