Category "testing"

Test verifications on embedded Spring LDAP server

we are using the default embedded ldap server in spring for our integration tests and configured it as follows: spring: ldap: embedded: base-dn: dc=

Cannot get React testing Jest-DOM to select a date from a date picker or time from a time picker

I cannot, for the life of me, figure out how to get Jest-dom in react testing to select a date picker and the same for the time picker. All my other fields are

How to write an unit test in Python in tictactoe code

--------- Global Variables ----------- # Will hold our game board data board = ["-", "-", "-", "-", "-", "-", "-", "-", "-"] # Lets us know

Error in Jest Test with Vanilla Javascript: expect(jest.fn()).toBeCalledWith(...expected) Expected: "click", Any<Function> Number of calls: 0

Looks like click method is not getting triggered I have tried evreything, it would be appreciated if someone knows the answer I'm getting this error: expect(jes

Problem related to german Character (Ä,ö,ü) in Selenium Web Driver

Can anyone help my related to this problem: I have to assert a text in Selenium, and when irun it from Consol, then i am getting that asserrtion is failed: org.

Laravel: Feature test json validations unique rule issue

I recently started implementing the unit testing in Laravel 9.x framework. So far, I was able to write some basic rules without any complications. However, in m

Spring Boot context-path doesn't return index.html in tests

I want to test that GET "/" returns index.html (Which is the case in a build) but when I try that in an integration test I get 404 NOT FOUND. Here's how I test:

Batch Job Performance testing - what parameters to measure?

I know about the Performance test for an "Online" application or APIs where we measure response time, throughput and CPU/Memory utilization. My question is - Wh

Batch Job Performance testing - what parameters to measure?

I know about the Performance test for an "Online" application or APIs where we measure response time, throughput and CPU/Memory utilization. My question is - Wh

What will this assertEquals() in junit return?

Does the assertEquals function result in? WIll this fail beccause assertEquals() requires tolerance value for double comparison? import java.util.*; class

coroutine nested exception problem on unit test

Can somebody explain why the exception problem is happening only in unit test? I was testing exceptional case for flow and I found exception does not throw as

Test Typescript Service : Multiple Subscription on one Observable

I am having a problem performing a test on a typescript service. I have a function that returns an observable. I use .subscribe() to look at the result and veri

Add variable to URL in Locust test

I'm been trying to figure out how to add a variable captured from a prior 'task' on Locust and add a variable to a new tasks GET request URL. The variable below

Fake client behaviour when mocking k8s for testing

I am using the fake clientset to perform some mocking in a k8s cli tool I am creating. Therefore I am creating a Job resource jobs := clientset.BatchV1().Jobs(m

Laravel request()->all() is empty in booted function when running tests

I created a trait sets up some Global Scopes based on the query parameters. It does that by reading from the request() helper and reading the query parameters f

Mocking Bull queues in NestJS

I am trying to test that after sending a request to one of my controllers, the queue pushes a job. Implementation itself works as expected. This is my app.modul

I am unable to click on any element which is inside a frame tag in Test Cafe

I am able to login to my application but after that unable to perform any action because all elements are inside the frame tag. The approaches I have tried: Sel

Rails gem strong_migrations preventing schema from loading

I've recently tried added the strong_migrations gem to my project, but it's preventing me from running any tests because all of the tables in my schema have the

How can I test that Flutter BlocListener navigates and renders an initial Welcome page

I am trying to test that a WelcomePage widget is found when my App is first run and no authentication has yet happened. No matter what I try, I cannot verify th

Facing issue while switching between windows using testcafe

I am able to switch from one window to 2nd window but not able to switch from 2nd window to 3rd window when all windows are open. testcafe not able to open 3rd