Questions tagged [test-data]

246 questions
5
votes
3 answers

Creating test data for a bulk insert

I'm interested in learning some new skills and have been reading up about bulk inserts. So I have created two tables in sql server 2008 1) Client 2)ClientDetails, the set designs are as below: Client Table ClientID | ClientName |…
Peter
  • 351
  • 1
  • 5
  • 14
5
votes
4 answers

Simple Pseudo-Random Algorithm

I'm need a pseudo-random generator which takes a number as input and returns another number witch is reproducible and seems to be random. Each input number should match to exactly one output number and vice versa same input numbers always result in…
Stefan Steinegger
  • 63,782
  • 15
  • 129
  • 193
5
votes
1 answer

Generate test data in Raven DB

I am looking for a preferred and maintainable way of test data generation in Raven DB. Currently, our team does have a way to do it through .NET code. Example is provided. However, i am looking for different options. Please share. public void…
Yusubov
  • 5,815
  • 9
  • 32
  • 69
4
votes
1 answer

AutoBogus AutoFaker custom generator

Given the enumeration class with a private constructor, how can I configure AutoBogus.AutoFaker to use my custom strategy when generating such a class? In Example: public class CardType : Enumeration { public static CardType Amex = new(1,…
Raul
  • 2,745
  • 1
  • 23
  • 39
4
votes
1 answer

How can I fit the test data using min max scaler when I am loading the model?

I am doing auto encoder model.I have saved the model before which I scaled the data using min max scaler. X_train = df.values scaler = MinMaxScaler() X_train_scaled = scaler.fit_transform(X_train) After doing this I fitted the model and saved it as…
Fasty
  • 784
  • 1
  • 11
  • 34
4
votes
1 answer

bazel testdata absolute path need '/external/'

I have a test: cc_test( name = "common_test", linkstatic = 1, srcs = glob([ "common/test/*.cpp", ]), linkopts = [ "-L/usr/local/lib", "-L/usr/lib64", "-g", "-lcppunit", "-ldl", …
Alex
  • 65
  • 5
4
votes
1 answer

JUnit in android

I am familiar with JUnit testing in android.. My Question is if we are using calculator and we want to test addition operation..To test the addition operation if we are using more number of test cases(for example 30). instead of rewriting the test…
Sri Sri
  • 3,107
  • 7
  • 34
  • 37
4
votes
1 answer

Sample Database for Full Text Searching

I am looking to do some benchmarking on Full Text Search indexes in PostgreSQL, SQLServer and Lucene. Any ideas on where to find a good big sample database to perform queries against? Thanks a lot in advance.
Pablo Santa Cruz
  • 176,835
  • 32
  • 241
  • 292
4
votes
1 answer

SQL Server Unit Testing Stored Procedures - generating testdata

I am writing stored procedure unit tests in VS2012 on 2008R2 for a database that keeps a large number of stored procedures, tables and foreign keys. For each stored procedure test I generate few lines of data in related tables before performing the…
4
votes
1 answer

How to identify which row in a dataprovider failed?

I have a situation where there is a test that gets data from a dataprovider. This dataprovider has a lot of rows (huge dataset). I would like to understand, if there is a way to find out which data the test failed for, when there is a failure. I run…
user3325862
  • 121
  • 2
  • 7
4
votes
4 answers

Where do you keep your test data files?

Sort of a spinoff of this question. Do you keep them in the source tree? Do you keep them in source control? I'm thinking that if your test cases refer to files, then the files are part of the behavior specification of the system, therefore…
Max Strini
  • 2,288
  • 21
  • 24
4
votes
2 answers

Test data generation framework in python?

Is there any "test-data" generation framework out there, specially for Python? To make it clear, instead of writing scripts from scratch that fill my database with random users and other entities I want to know if there are any tools/frameworks…
Ali
  • 18,665
  • 21
  • 103
  • 138
4
votes
2 answers

RSpec - Test against actual files, not mock data

I'm very new to RSpec, so this is quite a basic question. I'm writing something which parses a lot of data from a file, does some processing and returns a summarised result, which is all very lovely to do with Ruby. I want to put some RSpec tests…
user130076
3
votes
1 answer

Looking for an extensive set of email addresses in both good and wrong format for regular expressions testing

I would like to test a couple of regular expressions for email address validation, but I don't want to make up the testing set of addresses myself. I think I would not cover all the possibilities very well just by myself, and I feel like this is the…
famousgarkin
  • 13,687
  • 5
  • 58
  • 74
3
votes
2 answers

How can I share state between Bogus (C# Faker) rules?

I'm using Bogus to generate test data but I have some fields that depend on parts of another object (that I want to be chosen randomly for each generation) but that have to be consistent with each other. That's probably not the best explanation so…
John
  • 76
  • 1
  • 6
1 2
3
16 17