Category "integration-testing"

Failed to get correlation key for `citrus_message_correlator_HttpClient`

I have a CitrusEndpoints server configuration @Bean public HttpServer myService() { return CitrusEndpoints. http(). server().

How to run @QuarkusIntegrationTest in a Gradle project?

I want to run a Quarkus integration test in order to verify OpenAPI yaml generated from the source code. According to the documentation, it should be possible t

Cannot deserialize value of type `java.lang.String` from Array value from mockmvc

public class ModelDTO implements Serializable { private Long id; private String datasetName; @JsonRawValue private String json; } Post API i

How to silence Serilog in integration tests with the new minimal hosting model of .NET 6

I have a .NET 6 web API project with existing integration tests for some of the API endpoints. The project uses Serilog for logging and everything was fine so f

Selenium test cases get stuck in build agents. How to resolve?

We are running 200 - 300 UI test cases from an Azure pipeline. All the test cases are running on self hosted Windows agents, where all the dependencies are inst

MockMvc Error: java.lang.NoSuchFieldError: defaultInstance

I am trying to write some integration tests in my spring application. POM: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.

How to properly test kafkaTemplate.send() within a function in Junit5?

I'm learning how to write tests and especially tests that have a producer in it. I cannot post all the classes because it's HUGE (and not mine, I should just pr

How to test a .NET 4.8 client running against a .NET 5.0 server in a developer-friendly way?

I don't know if this question is appropriate for this forum. I am developing a C# ASP.NET Core webservice and a client-side library that uses this webservice. A

Why are only top-level requests proxied when configuring http clients such as postman or K6

The Goal Run integration tests but stub sub-requests to a specific domain that occur within the API code itself Ideally, do this via docker-compose because I wa

Use rust cargo to run tests in workspace root

I've got the following rust project layout: project_name ├── crate_1 │ ├── src │ │ ...

Integration testing using @SpringBootTest is not picking auto-configuration of library configured using spring.factories

We have a library ,in order to auto-configure the library we use spring.factories file under(src/main/resources/META-INF) which provides classes to auto-configu

unable to test UUID

I have a spring boot 2.6.7 app, using Liquibase, Gradle and Spock. I have a class that uses a guid format string as the ID: @Entity @Table(name = "devices") pu

Differences between Microsoft.AspNetCore.Mvc.Testing and Microsoft.AspNetCore.TestHost packages

I have used several times the package Microsoft.AspNetCore.TestHost to host Asp.Net Core Web API applications in my integration test. With Asp.Net Core 2.1 the

How to use Jest global Setup and Teardown in a nodeJS project?

I added tests to my node js project using jest but for each test suite there's a beforeAll method that creates a new test server and connects to a mongo databas

.NET Core stop HostedService in the Integration test

I have .NET Core web API project, for some reasons, we created a background service in this project and start running the background service while the applicati

Test ignored and failing when running IT test in Spring Boot (MongoDB Test Container)

I am trying to run an IT test using a MongoDB test container. However, I get the following error when I run the test com.github.dockerjava.api.exception.Interna

SAPUI5 OPA5 How to trigger a select event

Below a typical action to test if a sap.m.Select contains an item with the name xyz and then select it. success: function(oSelect) { var oItems = oSelect.g

Pass a variable from command line into scenario or feature in feature file

Currently I have Behave tests that run in Selenium but pick which browser to test based on an Environment Variable. Is there any way to pass text from the comma

Returning default mock results from actual objects' instances

Consider a scenario when you need to write integration tests for the REST API controllers. I use MSTest for this. The logic is following: Create new database, r

Returning default mock results from actual objects' instances

Consider a scenario when you need to write integration tests for the REST API controllers. I use MSTest for this. The logic is following: Create new database, r