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.

0
votes
0answers
18 views

Need a mock server for my custom HttpClient rest template to test with

I have a custom authentication rest template my library returns which is HttpClient. I need a library that will let me bind my rest template to the mock server so I can test my template. I had high ...
0
votes
0answers
32 views

Why TestRestTemplate allow unauthenticated resquest in SpringBoot IT tests?

In my springBoot (1.5) app, Basic authentication is enabled. I created full IT test with the following code @RunWith(SpringRunner.class) @ActiveProfiles(profiles = "securedIT") @SpringBootTest(...
1
vote
1answer
17 views

Integration Testing - How to hit endpoints using Microsoft.Owin.Testing.TestServer?

I have setup a basic Web API project to test writing integration tests, with the below setup Startup: using Microsoft.Owin; using Owin; [assembly: OwinStartup(typeof(WebApiTest.Startup))] ...
0
votes
0answers
39 views

How to test a websocket client-server interaction?

I'm writing an integration WebSocket layer for one service and would like to test the interaction between my code and the server by creating some integration type of tests. There's a project called ...
0
votes
0answers
32 views

Unit Test case for Repository in spring boot applicaiton

I am bit confused with UnitTest and Integration Test I know that below code is Integration test @RunWith(SpringRunner.class) @SpringBootTest(classes = LavaMasterApplication.class) @FixMethodOrder(...
0
votes
1answer
10 views

Ava separate integration and unit tests

I'd like to use 'ava' tool for both unit and integration testing. But I can't figure out what's the best way to separate those tests. Unit tests should run before the code deployed into test ...
0
votes
0answers
37 views

How do I Fix the error: java.lang.IllegalStateException: Failed to load ApplicationContext?

I want to run integration test and and unit tests on my Sprint Boot Controller package com.steinko.reactspringboottutorial.webserver; import org.springframework.stereotype.Controller; import org....
1
vote
2answers
38 views

Overriding spring @Configuration in an integration test

I have a spring boot configuration class like this: @Configuration public class ClockConfiguration { @Bean public Clock getSystemClock() { return Clock.systemUTC(); } } and I ...
0
votes
1answer
19 views

How can I know if something is a Integration Test or Unit Test

I'm adding tests to this function that is going to reach out my auth system and verify if the user has access to a specific resource. I'm confuse if this test is a unit test or integration test. I ...
1
vote
0answers
19 views

Using Mocha for integration testing of a callback that should trigger when on an AMQP message received event

I have a Feathers application that is using RabbitMQ and a custom amqplib wrapper to communicate with some other code running elsewhere and I'm struggling to write a good integration test to show that ...
0
votes
0answers
26 views

How to write unit tests in spring boot for elasticsearch

I have to write unit tests of spring boot application with elasticsearch. I've read a lot of documentation, and I've discovered that an embedded elasticsearch can be used, a bit like using H2 for ...
0
votes
0answers
19 views

Getting error while accessing the room database in test cases - Android

I am using room database in my app. I have Login feature in my app, where after taking userId & password, on click of Login button I am calling API and storing the response data in room database ...
1
vote
1answer
37 views

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-configure my library. Reference : https://...
0
votes
0answers
26 views

How to merge unit test and integration tests for sonarcloud coverage

I am trying to merge the coverage for all my tests, including unit tests and integration tests. I have a multi-module app and I'm using Maven. The hierarchy looks like this : Project : - ad-...
0
votes
0answers
16 views

EF6 & SQLite In-Memory throws “SQLiteException: SQL logic error no such table”

I am trying to setup SQLite (in-memory mode) together with Entity Framework 6, so I can create faster running integration tests. This is what my packages.config looks like: <packages> <...
0
votes
0answers
5 views

Arquillian container adapter for docker container

I'm working on a REST API with my team (DEV, BA, QC) and I want to propose some improvements to the work flow. Currently, QC works with manual testing and the dev team performs integration tests with ...
2
votes
1answer
41 views

Why does Teamcity send a keyboard interrupt to kill my build?

I have a build running in TeamCity, with only one build step: launching a BAT file. TeamCity sometimes kills my build with a (double) keyboard interrupt, and I have no idea why. The output at the end ...
0
votes
0answers
22 views

javax.ws.rs.client.WebTarget: how to send POST request with Content-Type “none”

So I have the following code: Response actual = webTarget().register(gsonProvider) .path("/orders/empty") .request() .header(CONTENT_TYPE, "none") .post(null); Unfortunately, ...
-1
votes
1answer
22 views

When should I execute unit tests and integration tests in a Dockerfile with Flask installed?

I set up a new Flask Python server and I created a Dockerfile with all my codes. I've written some unit tests and I'm executing them locally. When should I execute them if I want to implement a CI/CD? ...
0
votes
3answers
39 views

How to keep Maven integration tests isolated from each other?

I have multiple Maven integration tests that are updating the the state of the database, which could create conflicts between these tests. I was wondering if there is a way to isolate these ...
0
votes
2answers
30 views

Cucumber framework throwing an error while running tests

I am using Cucumber framework for writing my ATDD's. I am getting the below error when trying to run Cucumber test. [INFO] Running my.package.RunCukesTests [ERROR] Tests run: 1, Failures: 0, Errors: ...
1
vote
1answer
29 views

How to use the Moq framework to configure the output argument [duplicate]

I have a "GetMemberEvents" method that I am trying to test. I'm using Moq 4.10.1 In this "GetMemberEvents" method, I have to call a repository method. I need to use Moq in this repository method in ...
2
votes
1answer
29 views

How to write unit test for effect that after n times return a valid response?

I have to write Unit Test for this effect that is calling the service every 1 sec when it went in error. I need to test for example that after 3 times of calling a service, I'll receive a good ...
0
votes
0answers
22 views

ReflectionTypeLoadException exception when used with Asp.Net Core in-memory TestServer

We have been experiencing a really intermittent issue within our component tests which can be found just below: System.Reflection.ReflectionTypeLoadException : Unable to load one or more of the ...
1
vote
1answer
21 views

SpringBootTest does not roll back

(Although, there are plenty of similar questions I was not able to find the solution among them). Why @Transactional annotation with @SpringBootTest works and rolls back nicely when I use DAO ...
1
vote
1answer
42 views

FlutterDriver problem, not able to find Widget by Key

I am having a problem in terms of finding the widget by key in SerializableFinder, what can I do to solve this? I have tried on making the key with constants and I made sure to check that the key is ...
0
votes
2answers
22 views

MockMvc Integration Test with List of Object as Request Param

I am working on a REST service using Spring MVC which takes List of Object as request parameter. @RequestMapping(value="/test", method=RequestMethod.PUT) public String updateActiveStatus(...
1
vote
0answers
35 views

Microservices Integration Test Suite using Cucumber BDD

Basically I want some advice on designing integration test suite for QA using Cucumber BDD in a microservice-integration application environment. Should QA maintain a separate code base and github ...
0
votes
1answer
16 views

Forked execution of SpringBootTest's with maven failsafe plugin - does it work out of the box?

Consider you have a Spring-Boot Application and within this application also a bunch of Integration-Tests, which are annotated with @SpringBootTest and run with the SpringRunner class. They are ...
1
vote
1answer
19 views

spring boot: how to configure autowired WebTestClient

Are there any properties available in Spring Boot to configure the @Autowired WebTestClient? For instance, how to set the servlet context path (or just some base path for that matter) on WebTestClient?...
2
votes
1answer
44 views

Execute IntegrationTests in an already running Hybris server

My Hybris IntegrationTest classes extend the de.hybris.platform.servicelayer.ServicelayerTransactionalTest.java. When I run such a class in Eclipse using "Run As -> JUnit Test" option, a Hybris server ...
0
votes
0answers
18 views

How to send a multipart/mixed in a http request in a citrus behavior

I'm creating a behavior with the citrus testing framework that calls an API. In my behavior's http request, I have to pass a "multipart/mixed" content type. with the following code I have this ...
-1
votes
2answers
69 views

Problem deserializing property 'created' (expected type: [simple type, class java.time.LocalDate]

I work with an integration class where a test is failing. The class is provided below, public class EllaServiceIntegrationTest { private static final String ELLA_JSON_RESPONSE_FRAUD = "{\n" + " ...
1
vote
1answer
43 views

SpringBootTest - how to assert if context loading fails

I wrote an ApplicationListener that should check if the environment is prepared during context initialization. I'm having trouble testing the scenario since I'm adding the listener manually both in my ...
2
votes
2answers
55 views

Spring ignoring beans on submodule integration tests

I'm working with Spring Boot in a multi-module project. Given that I want to test every module isolated I've created a lot of unit tests and now I'm writing the integration tests for my service ...
0
votes
1answer
26 views

Date not being stubbed and displaying current date within application

I'm trying to stub current date in order to test a calendar within our web app. I'm doing the stub like so: context('Calendar', () => { beforeEach(() => { cy.clock(Date.UTC(2019, 5, 20), ...
0
votes
0answers
19 views

POST returns status code 400 with rest-assured on integration testing

I am trying to send a POST request for integration testing with rest-assured by I keep getting a 400 error. (Expected status code <200> but was <400>.) Here is my model : import things @...
1
vote
1answer
23 views

How to run NUnit onetimesetup multiple times for different databases

We have an integration test suite that contains numerous tests executing repository classes. The objective is to have a [OneTimeSetup] method in the BaseTestFixture, that will create/populate each ...
0
votes
0answers
23 views

Integration test provide the java.lang.AssertionError error

I have a class for integration tests that I would like to run. The class is provided below, @EnableItKafkaSupport public class RiskEngineControllerIT extends ItWebTests { public static final ...
0
votes
1answer
23 views

How can I use a properties file in the Deployed Resources/web-resources/ in a spring project

I'm working on a spring project and I'm trying to make integration test, but when I run the test the @ContextConfiguration(locations = {"file:src/main/webapp/WEB-INF/spring-servlet.xml"}) uses a ....
0
votes
2answers
25 views

How to configure TestRestTemplate to use a Keystore?

My project has a series of integration tests that use TestRestTemplate and MockMvc. These had been passing successfully. I have now added Spring Boot Starter Security and Spring Security OAuth2 ...
0
votes
2answers
27 views

.NET UnitTest Project Build and Test in DevOps pipeline failed?

I have written the unit test, All the unit tests in this solution require a database connection I have Created VSTS devops build and test pipeline but failed tests for database connection. UnitTest ...
0
votes
0answers
22 views

code coverage with Junits or integration tests via Postman

So I am supporting a Rest API project deployed on weblogic. No Junits exist and no integration test scripts ( postman ) I would like to make things a little standard ( code coverage , automated ...
0
votes
0answers
12 views

Spring Boot 2 Integration test OAuth2 server stubbed

I have a Spring Boot 2 Application secured with OAuth 2, using the PCF SSO tile. How can I write an Integration test with Rest Template and the security enabled? Here what I've done. As per PCF ...
1
vote
1answer
48 views

Access Spring beans from Alfresco integration test context

Now that Alfresco integration tests of custom modules are run using Docker, I wonder how to make additional Spring beans available in this context and how to access existing Spring beans in test ...
-2
votes
1answer
19 views

How to Selenium test Django project that retrieves data through APIs?

I have a Django Project. I want to make end-to-end tests for it using Selenium. It interacts with Other components (usually run through docker-compose) API and functions properly. The Django Project ...
0
votes
0answers
8 views

Data not loading in the database for integration testing using persistence.xml and “load-script-source”

When I mvn clean install I get don't get an error, the server is running properly (THORN99999: Thorntail is Ready) but it hasn't load the data in the database so I can integration test with rest-...
0
votes
1answer
65 views

C# Environment variables in integration test

I have built a custom web application Factory to run a in memory test server for integration tests. Instead of using in memory database, we are trying to use a sql database. My problem is that the ...
0
votes
0answers
19 views

How to disable services with WebApplicationFactory

I'm adding integration tests to a ASP.NET Core web service (see Microsoft's article on Integration tests in ASP.NET Core and I've extended WebApplicationFactory to replace the Database provider with ...
0
votes
1answer
33 views

Is there an equivalent for DropwizardTestSupport in Micronaut?

I'd like to run my application with JUnit for the integration test. For Dropwizard, I've been using DropwizardTestSupport library to achieve that. Wondering if there's an equivalent for that in ...