Questions tagged [integration-testing]
A form of software testing where individual software modules (or components) are combined and tested as a group. Integration testing happens after unit testing, and before system testing.
6,531
questions
0
votes
0
answers
5
views
Installation of Salesforce Outlook
I need to integrate salesforce with outlook
I have gone through all the documents and when launched the outlook , I am not able to see the Salesforce in Add-ins. and When i open the outlook , i am ...
0
votes
0
answers
11
views
How to make a request to the database for integration testing in Jenkins pipeline?
When compiling a spring boot project, integration tests are performed with requests to an external database, but a connection error occurs in Jenkins at the compilation stage. How do I set up a ...
0
votes
0
answers
12
views
gradle integrationTest and testFixtures
I'm using gradle 7.4.2 so I decided to split the tests to proper unit-test and integration-tests. I moved one class from src/test/java/com/example to src/integrationTest/java/com/example, and started ...
0
votes
0
answers
12
views
Flutter integration tests not running on Android real device
When attempting to run an integration test on a real device for my Flutter Android app by doing, for example:
flutter test integration_test/name_of_test.dart
The app doesn't open on my device, and ...
0
votes
0
answers
6
views
Running ESClientYamlSuiteTestCase from Maven
I am trying to convert a Gradle-based Elastic Search plugin project to Maven, and from ES 7.1.1 to ES 7.16.3
The project has an ESClientYamlSuiteTestCase-based integration test suite:
public class ...
0
votes
0
answers
34
views
Why is Wiremock server not picking correct stubbing with similar URL but different REST operations
I have an integration test that ends up making two API calls to the same service. One is a GET call, and the other is a PUT. When it calls the GET, it works just fine, but when it calls the PUT, it ...
0
votes
0
answers
14
views
JPA parent has no children after saving child with relation to parent
I have a lazy one-to-many relationship between two classes AdministrativeUnit (one) and WorkPosition (many). I am creating an integration test using these classes:
// Initialize the database
...
-2
votes
1
answer
20
views
If anybody have a solution to this situation please let me know [closed]
What should I do when bug is stopping me to do further testing strong text
1
vote
1
answer
19
views
Run same Cypress tests multiple times (for different domains)
I need to test the same logic hosted on different domains e.g.
cy.visit('DomainA');
cy.sameTestLogic();
cy.visit('DomainB');
cy.sameTestLogic();
There are entire suites of tests that need to run on ...
0
votes
1
answer
21
views
Designing Integration Test Suite for Google Cloud Workflows, Dataflow & Pub/Sub
Need some advice on technologies and design choices for integration testing GCP Workflows which is triggered by Pub/Sub and starts the Dataflow job.
For running the tests locally, I was thinking of ...
0
votes
1
answer
14
views
How can one log into Auth0 for integration testing?
I'm using @web/test-runner to perform e2e testing of a web application that uses Auth0. This has been a problem because Auth0 doesn't allow for wildcard path addition for redirects and @web/test-...
0
votes
0
answers
21
views
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.w3.org/2001/XMLSchema-...
-1
votes
0
answers
20
views
+200
In Rails 6, RSpec 5, how do I check in a test that a controller method has properly returned a serialized object?
I just upgraded to Rails 6.1.4 and Spec-rails 5.1. Previously I was trying to test a controller method
if @my_object.update(my_object_params)
render json: @my_object, adapter: ...
0
votes
1
answer
21
views
How to capture group specific messages with OutputDestination?
We have integration tests that end up dispatching many messages on the same destination, but many different groups. In rabbitMQ terms, same exchange with different topics.
spring.cloud.stream.bindings....
0
votes
1
answer
13
views
How to save entities along with their related entities in spring boot integration testing?
I have an integration test on a endpoint of creating a user with its related entities. It turns out that the related entities were not persisted with the user entity.
However, it is working fine when ...
0
votes
0
answers
20
views
How can I config laravel for testing mysql
When I run docker-compose run laravel.test php artisan test it run containers but after that
It return
error: failed switching to "php": unable to find user php: no matching
entries in ...
0
votes
1
answer
40
views
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")
public class Device {
@Id
...
0
votes
0
answers
11
views
Integration testing for Facebook messenger
FYI. I'm currently working on service that interact with Facebook messenger.
Facebook messenger-platform is my external service
https://developers.facebook.com/docs/messenger-platform/reference/send-...
0
votes
1
answer
66
views
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.InternalServerErrorException: Status 500: {&...
0
votes
0
answers
18
views
Integration Testing for Azure Search
I’ve been looking around for suggestions on how to setup Integration Tests for Azure Cognitive Search but has been unlucky so far. I have an Index with about 20 properties with attributes IsFilterable,...
0
votes
0
answers
11
views
Is it good practice to do integration testing on Django's admin section?
I know StackOverflow discourages 'opinion-based' questions, but this seems very basic and I'm surprised by the lack of info on it. Normally I would think of some kind of Selenium test for any UX as ...
0
votes
1
answer
15
views
Removing an intercept in Cypress
I have an intercept that serves up a stubbed json response like this:
cy.intercept('GET', '**/api/v1/myroute/*', { fixture: 'myData.json' }).as('myAlias')
Is there a way I can remove this ...
0
votes
0
answers
10
views
Is there a way to load a specific view in a Flutter app integration test?
I'm working on creating some integration tests for a complex app with many views. I have already managed to write some tests for user authentication - this was fairly simple because it required some ...
0
votes
0
answers
11
views
Intergration testAuthorization filter in asp.net webapi
How can I do intergration test for Authorization filter in asp.net webapi.
In code below I have JWT token which validate the user Authorization. Code example would be excellent.
or How to write ...
0
votes
0
answers
22
views
Opa5 test cases not running in pipeline - Karma runner UI5 config
We are trying to run opa5 test case in our pipeline using Karma runner with UI5 config but it doesn't work. Here we checked all the test case and they are running fine when we run them in parts or if ...
0
votes
0
answers
30
views
Flutter integration testing: ErrorWidget.builder hides failed tests in Firebase Test Lab
ErrorWidget.builder = (errorDetails) => ErrorBody(errorDetails: errorDetails);
This implementation hides failed tests in Firebase Test Lab. If I'm putting it in the "if" block to not use ...
0
votes
0
answers
16
views
How to test cassandra DAOs in Quarkus
I'd like to write some DAO-Tests in Quarkus for a cassandra database.
I googled this test framework: https://github.com/datastax/cassandra-quarkus/tree/main/test-framework
Now I have a problem, that I ...
0
votes
0
answers
24
views
How to trigger Navigator.pop()
so I am using Flutter v2.10.3 and writting some integration tests.
I have a button and it does some http requests and some other things and when everything is done it does a Navigator.pop(). When ...
0
votes
1
answer
40
views
How to write unit test for spring cloud stream function based method?
When I try to test a spring cloud stream function based method, it always happens NullPointerException about InputDestination.
I have two questions:
It's hard for me to know how to write UT from the ...
0
votes
0
answers
39
views
Integration testing with .NET 6, EF Core 6, and xUnit
Has anyone had any success in setting up integration testing for web applications written in .NET 6 and EntityFramework Core 6, and using SQLite in-memory database? I am having issues with test setup/...
-2
votes
1
answer
74
views
.Net 5 to .Net 6 migration breaking integration tests in docker, works ok in local
While trying to migrate from .Net 5 to .Net 6 I am getting below error when I do docker build and run.
It works perfectly fine in .Net 5 VS + in docker.
It works perfectly fine in .Net 6 VS but does ...
0
votes
1
answer
23
views
Spring Integration testing a Files.inboundAdapter flow
I have this flow that I am trying to test but nothing works as expected. The flow itself works well but testing seems a bit tricky.
This is my flow:
@Configuration
@RequiredArgsConstructor
public ...
0
votes
1
answer
32
views
Using moto to communiate with server
I'm trying to use moto to implement integration testing and trying to test some custom resources to be implemented with cloudformation. I'm using the example provided in the github page. I've slightly ...
-1
votes
1
answer
37
views
Where do end-to-end or integration tests fit within a TDD worflow?
Everyone is familiar with the typical workflow of TDD: write a failing test, make the test pass by writing just enough code, refactor your code, and repeat. This is often captured with the coined &...
1
vote
0
answers
28
views
Unit testing a method that calls other methods Jest
I was thinkig a lot on WHAT to test in a method that works like an "orchestrator" and it's only job is to calls functions. So I have this BattleInteractor class
class BattleInteractor {
...
0
votes
0
answers
19
views
Launching integration test (MSTest) after starting the API without using two instances of Visual Studio
I have a .NET WebApi and an MSTest Project that contains the integration tests to call the API via HttpClient.
Because I did not find a way how to let the MSTests run while the API is started, I start ...
0
votes
0
answers
23
views
What is the easiest way to test multiple versions of a NuGet?
I have two C# projects. Project A is a NuGet package. Project B is a web service. Project A calls the web service.
We want B (the web serice) to remain backward-compatible with old versions of A - i.e....
0
votes
0
answers
23
views
In Cypress, Date and Time input fields are cleared unexpectedly after other input fields are filled
I have 4 input fields that must be filled to activate a form submit button.
Date
Time
select
textarea
I created a cypress test to fill each of them by order and finally click the button to submit. ...
1
vote
1
answer
41
views
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 practice by changing the test to work with ...
0
votes
0
answers
48
views
Integration testing in Asp.Net Core 6
I am trying to implement integration tests in Asp.Net Core 6. I am trying to use a different database for testing as well as overriding endpoint authentication using the AllowAnonymousFilter. I am ...
0
votes
0
answers
15
views
NestJS repository integration tests using docker
Good evening everybody,
I'm new to NestJS (and the javascript world for that matter) and I'm seeking some help/direction regarding repository integration tests using docker.
I come from the java world ...
1
vote
1
answer
34
views
How to get result of rootBundle.loadString(key) during flutter widget test?
I want to read a file from an asset during widget build with help of rootBundle but when I tried to call rootBundle.loadString('assets/myJsonAsset.json') like below :
testWidgets('load assets', (...
0
votes
2
answers
85
views
Cannot run DB Integration tests with Spring Boot and Testcontainers
I try to run DB Integration tests with Spring Boot and Testcontainers but without success
I added testcontainer to my pom.xml
<dependency>
<groupId>org.postgresql</groupId&...
1
vote
2
answers
45
views
Cy.intercept query does not work with arrays
I mocking endpoint with query parameters in Cypress. But when give query field with array of field items.
cy.intercept(
{
method: 'POST',
pathname: '/api/initiate/manual',
...
0
votes
0
answers
25
views
Integration Testing: Mock service response
I want to make a integration test for a Razor Page (.NET 6).
The Razor Page use a service I named ApiService, which makes HTTP-requests to an external API. I am not sure how to mock IApiService to ...
0
votes
0
answers
34
views
Test of Django ProfileListView fails with ValueError: Cannot assign "<SimpleLazyObject:....>": "Profile.user" must be a "User" instance
I am a Django beginner and a SOF newbie, sorry if this question sounds a silly to some.
I am struggling with my integration tests.
In my app I have a one-to-one User/Profile relationship. I have a ...
0
votes
0
answers
9
views
Pros/cons of using FE API library as integration test tool suite
Wanting to open a discussion about testing approaches.
Context
I'm creating a new project and my main focus has been on efficiency and clean structure (not necessarily the most STANDARDISED code, but ...
0
votes
1
answer
15
views
Citrus httpServer & httpClient tests
I'm using Citrus for perform integration tests based on http requests.
The test should perform steps as follows:
Sending a POST http request to external service with a callback url as body attribute
...
0
votes
0
answers
26
views
How to do unit testing and how it is different from integration testing in frameworks like Django and fastapi?
Let's say I have a Fastapi application like this (This code is taken from documentations):
app = FastAPI()
@app.get("/foo")
async def read_main():
return {"msg": "Hello ...
0
votes
1
answer
54
views
.NET 5 - spinning up an MS SQL docker container for integration tests
I have a .NET 5 solution with a services project that contains a series of repositories responsible for saving / loading data from a database (mainly via EFCore).
I am writing some integration tests ...