Questions tagged [test-data]
246 questions
1
vote
1 answer
Use business objects as return value from a test data builder class
The business object is Foo.cs
What if Foo`s properties run custom logic? Would it then not a bad idea to create Foo objects which could change the data inside the Foo object and it returns values I do not expect?!
public class FooBuilder
{
…

Pascal
- 12,265
- 25
- 103
- 195
1
vote
3 answers
Productive data on the test system
I need some suggestions of how you handle your test data in manual UI tests. Our application needs data from a database to work and to being tested manually. Since we are dealing with sensitive data we are not allowed to make a dump of productive…

Kai
- 38,985
- 14
- 88
- 103
0
votes
1 answer
Calling .CreateSourceQuery() on Navigation Property returns null when Unit Testing; works on actual database, how do I setup my test data to match?
I have a method which is taking my Entity Framework Entity and converting it into a DTO object. In this method I have parameters to skip and limit the number of related items to return. With small data sets a simple query like this worked well:
var…

Nate
- 30,286
- 23
- 113
- 184
0
votes
1 answer
Explore RandomForestClassifier through Holdout Set
Read in & clean text
import nltk
import pandas as pd
import re
from sklearn.feature_extraction.text import TfidfVectorizer
import string
stopwords = nltk.corpus.stopwords.words('english')
ps = nltk.PorterStemmer()
data =…

Century Egg
- 3
- 2
0
votes
0 answers
Salesforce Test.loadData without inserting the records?
So, we have a Test Data Factory that creates many test Lead records. Some tests need inserted Leads with Ids, some do not.
I'm writing my Test Data Factory to reference a CSV file in Static Resources named 'testLeads'.
The problem is that…

Shaolin Dave
- 1
- 3
0
votes
0 answers
googlenet pytorch problem, test data predictions are very bade
I am trying to develop a transfer learning CNN model using the googlenet CNN and modifying it so that it contains a few hidden layers at the end. The loss function seems to converge to a low value for 10 epochs, however my predictions for the test…

Sotiris Stamnas
- 41
- 1
- 6
0
votes
2 answers
generating test data and sending it to the azure iot cloud using python
I have to generate test data periodically like every 6 minute and send it to azure iot cloud using python, And use that data to manipulate or control my other device both physical(esp8266 or arduino) and software one.
i actually have very little bit…

Prathamesh Parit
- 1
- 2
0
votes
0 answers
what is the matching datatype in Faker library for 'xmltype'?
I am trying to create dummy data for my tables using Faker Library. I have column with datatype as 'xmltype'. Which option I should select in Faker library for xmltype?
or pl give any other suggestions for creating dummy data for xmltype

kiruba
- 129
- 5
0
votes
1 answer
Large sample database for HSQLDB?
I'm taking a database class and I'd like to have a large sample database to experiment with. My definition of large here is that there's enough data in the database so that if I try a query that's very inefficient, I'll be able to tell by the amount…

Maltiriel
- 793
- 2
- 11
- 28
0
votes
1 answer
Prometheus series values for time metrics
I'm defining a data series for testing a Prometheus alert using the container_last_seen metric from the cadvisor exporter.
How do I enter timestamp series values, as returned by the container_last_seen metric? I'm testing Prometheus alerts on an…

Nic
- 1,518
- 12
- 26
0
votes
0 answers
What is best practises to managed Jmeter script with csv file with usere id and password?
I am bit new to Jmeter and in performance testing world.
I am bit strugling with best practises with test data where user id and password is saved in .csv file.
I know it is not good parcise to have user id and password in srouce code…

navin singh
- 1
- 1
0
votes
0 answers
Value Error: The least populated class in y has only 1 member, which is too few
So, I want to make RecSystem on KNN.
Loaded the Data
movies = pd.read_csv('Movielens/ml-small/movies.csv')
ratings = pd.read_csv('Movielens/ml-small/ratings.csv')
deleted unique val of the target value "genres"
mv =…

Inoue
- 21
- 3
0
votes
0 answers
How to store test data for Automation Frameworks
group_data = {
"name" => @utility.generate_random_string(8),
}
result = @groups.create(group_data)
create function:
def create(data)
res = @client.post($ENDPOINTS['admin']['groups'],val.to_json,Api.header)
return…

Rithik sanjeev
- 1
- 1
0
votes
0 answers
Should the binary class proportions of a training set in a ML model be the same as the test set, especially in a case of extreme class imbalance?
If I want to build a model that can predict a class 1 binary outcome that has very low incidence, for example 0.1% of the total in the test set. Would the training set also ideally need to have the same proportions, 1 class 1 to 999 class 0? Or…

jw32022
- 35
- 5
0
votes
0 answers
How to score sklearn.feature_selection.SequentialFeatureSelector with MSE applied on test data?
I would like to select features based on the MSE established on a separate test dataset.
To do that I use the SequentialFeatureSelector (SFS) from sklearn and a scoring function.
In the scoring function I'm able to get the estimator and to use it to…

RemyP
- 1
- 1