Questions tagged [test-data]

246 questions
0
votes
1 answer

C# editable resources without recompiling

I am working in automated UI test suite and we want to separate our test data and store it in JSON files. Ideally, we want to have our tests (Nunit + Teststack.White) in a compiled dll, and then anyone should be able to edit those JSON files without…
0
votes
1 answer

weka inputmappedclassifier mappedinstance Value not defined for given nominal attribute

I am using InputMappedClassifer in weka to replace all the missing attribute values by a missing value ("?") but for some reason I still get the Value not defined for given nominal attribute exception my code is as follows : Instance mappedInstance…
Ahmed AbuRa'ed
  • 17
  • 1
  • 11
0
votes
1 answer

Generating test data for functional tests

I need to generate some test data for a Web and WPF application (both .NET Apps). So I had two possible solution in my mind. Generate test data by using sql scripts. This approach has the issue that I need to validate the inserted data. Use the…
Rayk
  • 63
  • 8
0
votes
1 answer

Is there anyway to generate dynamic time table test data?

I'm on a project for a railway company, now I want to test my application with some data. Here's the problem, the data I need is like a time table like below: departure_location arrival_location departure_time arrival_time a …
Aaron Shen
  • 8,124
  • 10
  • 44
  • 86
0
votes
1 answer

Randomly Populating Foreign Key In Sample Data Set

I'm generating test data for a new database, and I'm having trouble populating one of the foreign key fields. I need to create a relatively large number (1000) of entries in a table (SurveyResponses) that has a foreign key to a table with only 6…
pnewhook
  • 4,048
  • 2
  • 31
  • 49
0
votes
1 answer

jhipster fill test data into production database

I have a new jhipster project and want to create a bunch of testdata to fill into production database to have the possibilitay to show my application with some data. Can you give me a best practice? I have added a junittest which is run against…
Markus Oley
  • 91
  • 1
  • 9
0
votes
1 answer

How to pass own user data to check for the session

I am working on a group project where my group member is working on the user part while I am working in the post ads, view ads i.e. other parts of the project. I want to create fake users which will determine the admin and user through the session…
user1435077
  • 49
  • 1
  • 6
0
votes
1 answer

Test Data Prediction Error in SciPy sparse matrix

I input data in LIBSVM format like this into a SciPy sparse matrix. The training set is multi-label and multi-class as described in this question I asked: Understanding format of data in scikit-learn from sklearn.datasets import…
Sasha
  • 492
  • 2
  • 6
  • 21
0
votes
1 answer

Java Polymorphic processing: Incorrect output?

In the following class I am trying to print details of Employees in a payroll system. Note that Porter, Pharmacist and Surgeon all inherit from Employee. However it is only repeatedly printing details of the first employee added to the array. I…
user3287264
0
votes
1 answer

Create a list of objects by an example object

I want AutoFixture to create a list of an object by using an example object. public class Person { public string Name { get; set; } public int Age { get; set; } } var examplePerson = new Person { Name = "Test", Age = 34 }; var persons =…
Rookian
  • 19,841
  • 28
  • 110
  • 180
0
votes
0 answers

Where can I get a large number of HTML email replies for testing?

I'd like to attempt to develop a library that parses HTML email replies. For testing, I'll need a wide range of HTML email replies (from different email clients, in different languages). What would be the best way to get a hold of this sort of test…
gerges
  • 264
  • 4
  • 14
0
votes
1 answer

Methods adapted to satisfy unit tests. This just seems wrong

I have begun to dabble in unit testing, and have created a couple of tests that test one of my presenter methods. This testing requires a mock of my data access class, and one method in particular. This is the original method from my data access…
amarsha4
  • 453
  • 6
  • 21
0
votes
2 answers

Hsql create testdata from existing database

Does anybody know a way to generate complex testdata using an existing database for in memory hsqldb? So my junit tests will be able to use a part of correct data. The concrete problem is the following: we have to write junit tests for an existing…
Julz
  • 103
  • 1
  • 7
0
votes
1 answer

Data generation: generate one entity with a several date constraints

A quick one, I am looking for a tool for data generation. I have an entity with dates; the date it was made, a start date and an end date. I want the data generation to take care of this constraints: made maybe today or some day after start maybe…
Obby
  • 1,353
  • 2
  • 13
  • 20
0
votes
2 answers

How can I pay only once to provide the same expensive data source to multiple unit tests?

G'day! I have 4.6GB of test data in 220,000 files. A bulk test requires finding, matching, and unzipping pairs of the files. I want to run multiple unit tests across each pair. It'll take a dreadfully long time if I can't persuade the test framework…
Garth Kidd
  • 7,264
  • 5
  • 35
  • 36