Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

I just have a question that how can I create 2 type of session fixture to connect to the database using SQLAlchemy. @pytest.fixture def session_function_scope(): engine = create_engine('sqlite:///:...
Long Nguyen's user avatar
0 votes
0 answers
571 views

I'm facing an issue with Playwright tests. I have a separate module, db-connection.ts, for connecting and querying a PostgreSQL database using the pg package. Here's the relevant code in db-connection....
Sim's user avatar
  • 1
-1 votes
1 answer
58 views

So I have to write a query for a table grouping by 5 columns and fetch the sum of one of the columns based on the grouping. Now, in the database I have duplicate records. So I am getting incorrect sum....
Subhashree Nayak's user avatar
1 vote
0 answers
20 views

I'm performing a database performance test on a virtual machine such as virtualbox machine or kvm VM. My test is like this: I run ten times, each run I insert 10000 row into database(let's say it's ...
Lewis Chan's user avatar
0 votes
0 answers
267 views

I recently upgraded an application to Laravel 9, and have in-memory testing set up for the unit and feature tests. <env name="DB_CONNECTION" value="inmemory"/> <env name=&...
Hashim Aziz's user avatar
  • 6,566
0 votes
1 answer
123 views

I'm using a JMeter for MS SQL server performance testing. I've been monitoring the SQL throughput metrics while manually clicking on elements on GUI - I've noticed that database is making close to 0 ...
kyhwn6's user avatar
  • 3
0 votes
0 answers
69 views

I am trying to make some unit tests for database functions in C language, but i am not aware is it possible with cmocka? I couldn't find any example on the internet for database testing using cmocka, ...
jst's user avatar
  • 11
-1 votes
1 answer
259 views

I am trying to achieve two scenarios using JMeter. But I am facing some issues. Details are as follows. Scenario 1 : I want to test the timings of text file upload and file import in my web ...
ADS KUL's user avatar
  • 312
0 votes
1 answer
253 views

I came across one scenario to test in JMeter. There are multiple text files with multiple line data and need to import those in web application. I need to know How much time taken by every line and ...
ADS KUL's user avatar
  • 312
0 votes
1 answer
794 views

I have to connect my JMeter script to AWS RDS database. When I am running my test with the below JDBC Connection configuration it is showing this error message: java.sql.SQLException: Cannot create ...
Shray S's user avatar
1 vote
0 answers
362 views

I use PHPUnit to test by PDO wrapper. One of my tests is an integration test that proves that the abstraction layer produces the right syntax, or binds PDOStatement in the right way, etc. For this, I ...
XedinUnknown's user avatar
0 votes
1 answer
647 views

I have a Post, User and Country model. A Post belongsTo as User . A User belongsTo a Country. Is there any way to call the User and Country factory from after the post factory ? Sort of like factory(...
thearyanahmed's user avatar
1 vote
1 answer
549 views

I am using Robot framework in python and I am running below query: ${queryResults1}= query select count(*) from table It gives me below result: ${queryResults2} = [(91,)] How to convert above ...
Dilip's user avatar
  • 65
0 votes
1 answer
92 views

My tests for this CRUD operation in Spring Boot continue to fail where I get "java.util.NoSuchElementException: No Value Present" I understand that testCreateDemographic is creating a record, however, ...
coder3's user avatar
  • 367
0 votes
1 answer
773 views

My expected dataset contains several tables. Is it possible to exclude columns from the specific table?
David stands with Ukraine's user avatar
7 votes
0 answers
2k views

I am working on a Flask app for APIs and created few Flask-SQLAlchemy models. I have written a function which takes a list of dictionaries and insert them into Postgres database model tables as rows ...
Underoos's user avatar
  • 5,276
2 votes
1 answer
871 views

Some years ago I already created a very similar or even nearly the same question on StackOverflow. I got great detailed answers, but they didn't lead to a solution of my problem. Now, the problem ...
automatix's user avatar
  • 15.2k
0 votes
1 answer
613 views

I have made the sql connection , and fetching the query from excel sheet. and after establishing db cooncetion, calling: result rs= st.executeQuery(query) statement is showing error as couldnot find ...
Supritha's user avatar
1 vote
2 answers
541 views

I did performance testing using Jmeter in QA and the number of records in QA DB were 30-40 times less than number of records in Prod DB. For above reason, the performance in QA was very good but ...
astar's user avatar
  • 111
0 votes
2 answers
410 views

I am trying to write a unit test for a method which uses: @Transactional. There are two methods are being called, each is running an update query on two table, if one fails other should not run or ...
Nitin Kumar's user avatar
2 votes
2 answers
2k views

I wrote this test to verify unique constraint on Domain.name in the database. But it doesn't work: I expect an exception to be thrown on the domainRepository.saveAndFlush(domainDuplicate) operation, ...
naXa stands with Ukraine's user avatar
14 votes
1 answer
14k views

I have basically a testing scenario, where I Create database Fill it with some data Execute the business logic to be tested, which modifies the data. I don't own the business logic implementation or ...
Liero's user avatar
  • 27.8k
1 vote
1 answer
23k views

I am trying to configure Cucumber test for database testing since my application have some rest services and I need to check the database in order to verify the records are updated with proper value. ...
Pranjal Prakash Srivastava's user avatar
0 votes
2 answers
7k views

I am running tests on some functions. I have a function that uses database queries. So, I have gone through the blogs and docs that say we have to make an in memory or test database to use such ...
Salman Haseeb Sheikh's user avatar
1 vote
2 answers
35k views

Noticed below error during load test with multiple users and not in case of single SOAP request. Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: javax....
Akt's user avatar
  • 11
3 votes
0 answers
665 views

I'm getting a very strange error when running a unit test: PDOException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'test.result' doesn't exist /var/www/html/project1/rami/tests/...
rink.attendant.6's user avatar
1 vote
1 answer
512 views

I'm trying to create an initial DB state in DB Unit like this... public function getDataSet() { $primary = new \PHPUnit\DbUnit\DataSet\CompositeDataSet(); $fixturePaths = [ ...
Allenph's user avatar
  • 2,035
0 votes
1 answer
324 views

I've been trying to make my Java application db fail proof, so that they are no unexpected lags if the DB is not available. I've successfully handled the easy case when the database is totally down. ...
lazyloader's user avatar
-1 votes
1 answer
4k views

We are testing a table. There are 20 different tests to be done in the given table. So there are 20 different queries we execute. Is there a way that I run 20 different queries on the same table and ...
RaxitAlphaLogic's user avatar
0 votes
1 answer
894 views

Here is my method under test as well as test code. My method under test depends on the result set produced by runExecuteQueryStatement. If the resultSet is null and resultSet.next is false it is going ...
Muthaiah PL's user avatar
  • 1,198
0 votes
1 answer
420 views

I have method something like this: func (alert *Alert) CreateAlert(db *mgo.Database) error { return db.C("alerts").Insert(&alert) } How should I unit test this? If I just call this ...
Ankit Sahu's user avatar
0 votes
1 answer
236 views

Anyone who have worked on elastic search. need input as mentioned in subject. I have one requirement in which sql data is migrated to elastic Search now there is ton of data so I can not check each ...
anky's user avatar
  • 91
1 vote
3 answers
6k views

I have a very specific situation in an integration test. I'm developing a Rest API composed by few micro services using spring boot. Some of those services have basically crud operations to be ...
pedrohreis's user avatar
  • 1,090
0 votes
0 answers
280 views

package GoldenGate; import java.sql.Connection; import java.sql.Statement; import java.sql.ResultSet; import java.sql.DriverManager; import java.sql.SQLException; public ...
Puneet Dhiman's user avatar
2 votes
1 answer
1k views

I am very new to Specflow/Specrun and C# programming. I need help in fixing the issue I am facing. I have a Specrun feature file which queries database. Below is the code of the feature file: ...
user1493004's user avatar
1 vote
2 answers
2k views

What is the best practice for Max Wait (ms) value in JDBC Connection Configuration? JDBC I am executing 2 types of tests: 20 loops for each number of threads - to get max Throupught 30min runtime for ...
Samuel's user avatar
  • 95
0 votes
1 answer
221 views

Saw that CLR functions needed to be enabled to use tsqlt. Can I actually use it in PDW ? Or any other ways or tools to perform unit testing on PDW ? Thanks,
JJ0022's user avatar
  • 33
2 votes
1 answer
1k views

I am using phpMyAdmin version 5.7.15 and database mysql-connector-java version 5.1.40, but I am unable to connect the database with jmeter3.0. Could you please advise?
S. jaiswal's user avatar
0 votes
2 answers
3k views

[10/7/06 4:00 Edited example code] I'm trying to test some code (using JMockIt with TestNG) without touching the database, but it appears a mocked method is still actually called. Here's the ...
Didjit's user avatar
  • 805
-1 votes
1 answer
126 views

What are best practices to perform the Schema-Validation in SQL Server ? I need to test whether a views, stored-procedure, trigger of function points to an existent and working table (or any other ...
user1611183's user avatar
1 vote
1 answer
160 views

I have some PHPUnit test classes which use fixtures. I have for 10 tables fixtures defined. Directory structure: tests fixtures table1.php ... table10.php unit ...
physicalattraction's user avatar
0 votes
1 answer
890 views

i'm kinda noobie in PHPUnit Testing and I need to cover multiple scenarios of a method. The method takes the rows of a table and make decisions based on it, so if I have 0 rows matching my query, it ...
gfviegas's user avatar
0 votes
1 answer
67 views

I've just started with unit testing and I'm getting a bit confused and a bit overwhelmed when the subject is testing the models. I currently have some ActiveRecord models with setters and getters. ...
lbrandao's user avatar
  • 4,384
1 vote
0 answers
110 views

I have a web server application using Couchbase Server as its backend database. Application comprises of few set of REST API's. Now I have tested all my REST API's properly and deeply for all the ...
Rohit Jindal's user avatar
0 votes
1 answer
830 views

I'm using JUnit 4 for testing a database-application. Since each test requires a special preset of the database before it runs, I'm using the @Before method to load the data first and the @After ...
user3510462's user avatar
5 votes
1 answer
226 views

I really can't seem to find an accurate explanation on why you should use the same database in development as in production. I personally love using sqlite3 in development (it's light, easy to use, ...
Spencer Hire's user avatar
1 vote
2 answers
582 views

I am currently working on a project where we need to test the database packages and functions. We need to provide the input parameters to the database package and test the packages returns the ...
Nikunj Aggarwal's user avatar
0 votes
2 answers
2k views

I have created small web application in spring boot.I am new for TestNG. I am trying to test my services with testng which calls dao for database operations. I am trying to do it using inmemory ...
Prashant Shilimkar's user avatar
0 votes
2 answers
4k views

I am working on testing space on Data Warehousing. In the scope I got newly created and dimensions and facts which should be validated. As per my knowledge and information got via browsing I would ...
Shabar's user avatar
  • 2,843
2 votes
3 answers
2k views

I am developing a package link here for Laravel 4.2. I want to write unit tests and database tests. As far I read I have to create an instance of Laravel app in order to use all the features in ...
Robert Gabriel's user avatar