Questions tagged [integration-testing]
Testing performed to expose defects in the interfaces and in the interactions between integrated components or systems.
96
questions
3
votes
2
answers
80
views
Script debugging on AJAX base web application. Can I bypass my dependent module test script execution in Eclipse?
I'm testing a web application in which all web controls are loaded dynamically using AJAX. I have a test script project in java Eclipse IDE.
Here is my problem. If, for example, I am debugging a test ...
0
votes
3
answers
68
views
Login Integration Testing Good and Bad Password
I am writing Cypress Integration Test for UpdatePassword. One reason I wanted one whole test: We had a minor bug before, when the user enters a bad password, and then fixes it up, the Submit Button ...
2
votes
2
answers
95
views
How can I acquire international prepaid credit cards for e-com checkout integration testing?
For integration tests of an e-commerce checkout process that includes the credit card payment gateway of a third party, I would like to acquire prepaid credit cards. Especially for fraud-prevention it'...
-1
votes
2
answers
55
views
Unit Tests or Integration Tests for validating file contents
I have a Node.js application, and it already has Unit Tests and is using the Mocha framework for the same. It is checking the functions individually. These tests are integrated into the CI/CD pipeline ...
5
votes
1
answer
845
views
How to integration test a Web API with identity server auth tokens
I have a scenario where I need to set up integration testing against our microservice architected application. This will mean creating some tests using Postman to hit our API, and running them with ...
1
vote
4
answers
4k
views
How can I test when app requires OTP via SMS?
I'm using Selenium with Java to test a web application. The app requires a user to receive a One-Time Passcode (OTP) to authenticate they are, who they say they are and to authorize several critical ...
3
votes
3
answers
1k
views
Code coverage for Integration tests
Let's say that I have a project where most of the codebase is already covered with Unit Tests (using mocks). How many Integration Tests should I write then? The entire codebase is already covered with ...
0
votes
2
answers
52
views
GUI for end-to-end tests
I'm helping an organization that has a website with some moderate-level complexity, past the point of just a bunch of static web pages but not to the point where they have a developer on staff.
To ...
9
votes
3
answers
11k
views
What's the difference between integration and contract testing of microservices?
Well, integration testing supposed to be the testing of integrated components.
Contract testing supposed to be testing of the way components interact with each other (API).
But what the main ...
2
votes
2
answers
55
views
Unit testing for a non-atomic function if all atomic components have been tested
I am writing a module and I have a question about the best way to test a "non-atomic" function. My problem is that I am not sure how much and what specifically I should test because it being ...
2
votes
3
answers
889
views
Measuring integration test efficiency
We would like to shift quality left and motivate developers to write integration tests - both narrow and broad. The biggest challenge is to introduce metrics we could use for measuring the ...
1
vote
2
answers
60
views
Should I ensure if integrated services are called correctly?
I've worked with a big project where the developers are writing wrong queries to bring data from the DB. Eg a DB query which brings all data from DB and then filter it. It is impacting the performance ...
1
vote
1
answer
37
views
How is compatibility of business logic tested in microservices?
Each microservice is tested and deployed independently from other microservices. To guarantee the compatibility of API the Consumer-Driven Contracts approach is used. But how is the compatibility of ...
1
vote
0
answers
46
views
Delineating unit tests and integration tests in Testing Library for React and unittest
This question is related to Testing Library for React and unittest for Python.
I'd like like to have a single file that contains unit tests and integration tests for a component, and be able to target ...
11
votes
2
answers
1k
views
Should integration tests test business logic?
In unit tests I'm always trying to test as many business cases as possible, trying to reach 100% code coverage. Unit tests are great and pretty simple because all tests are made in isolation.
...
0
votes
1
answer
69
views
Sorting out automated testing in CI pipeline and getting conflicting information related to building, unit testing and Docker images
I seem to get a unique response for every person that I ask, or every article that I read, which is just confusing me even more.
Basically, I'm trying to setup automated testing in the CI pipeline ...
10
votes
4
answers
3k
views
Tests in CI: Are API + Integration Tests the most suitable?
In my experience, automated GUI tests may take too long for a build of Jenkins (even parallelized) and may demand a lot of maintenance. On the other hand API + Integration tests are way faster, do not ...
1
vote
1
answer
691
views
Where do we keep integration tests in microservices projects?
Let's suppose we're talking about a microservices project. Then we usually have different repositories for each microservice. Unit tests, component tests (low layers of test pyramid) are often kept in ...
0
votes
1
answer
37
views
How to test functions which interacts with databases?
I have a function getEmployeeData() which internally calls generateSQL() to get the SQL and execute it and returns the final result.
Now, how to test this functionality? Having JUnit test to validate ...
0
votes
1
answer
998
views
Custom Test Case Name in TestNg HTML reports
I am trying to override the test case name in the testNg HTML report since I am using the data provider and each test data depicts something different. To do this, I added the following:
I am setting ...
1
vote
1
answer
218
views
how to integrate testrail with selenium
Hi everyone as I am just started to work in testrail and I want to integrate my testrail with selenium using Eclipse
What I want to do?
I want to run my test case in selenium and if its pass then my ...
0
votes
1
answer
62
views
Flutter driver Test Explorer
is there a way to get some kind of Flutter Test Explorer into the IntelliJ IDE?
I am thinking of something like JUnit has in Visual Studio. Let's say that it should be something like this. My tests ...
1
vote
1
answer
109
views
Integration tests without mocking vs. unit tests
Let's say that I have a software component A (function, class, react component, etc.) that uses three other software components B, C, D.
If I try to test fully test A (without mocks!), then I would ...
0
votes
0
answers
23
views
mongodrop slow on small db
I'm using a real Mongo instance for my integration tests. On every test, I call mongorestore my_db_state --drop because I need a clean db to start the next test.
On my tiny db (with only one test user ...
1
vote
0
answers
92
views
Integration testing of web application with asynchronous "jobs"
A web application I'm developing essentially serves to queue up jobs which are processed on another server. Depending on the load, that could be anywhere from 5 minutes to 2 hours later before the ...
2
votes
2
answers
75
views
Using Chai, how can I assert the result of "git pull"
I am using Mocha and Chai.js to test a function which executes git pull in a Terminal and I want to assert that it results in Already up-to-date.
How can I accomplish this? What is the best approach ...
6
votes
3
answers
3k
views
Writing Integration Tests programmatically vs using Postman for REST APIs
I am developing REST APIs in my project and using .net core 3.1.
Various best practices suggest that we should write Unit Tests as well as Integration Tests for our project.
I agree with the point of ...
17
votes
5
answers
37k
views
How does system testing differ from System Integration Testing (SIT)?
I was asked this question during an interview. My thoughts are SIT is performed on a complete systems and System Testing can be done on a single module as well.
0
votes
3
answers
132
views
Assertion on static value or calculated one
This may be more of a theoretical question than a practical one, but I'd like to know the community's opinion.
Some context:
On some integration UI test, in which we are testing that a field ...
1
vote
1
answer
2k
views
How to compare big objects with FluentAssertsions?
I am doing integrative xunit tests on a .NET Core web application. The result of a call can sometimes be a large object with different levels of hierarchy.
MainEntity
{
public ...
8
votes
4
answers
640
views
How to do integrated testing?
So I have been reading up on a lot of books surrounding testing. But all the books I've read have the same flaws. They will all tell you the definitions of testing. But I have not found a single book ...
7
votes
3
answers
7k
views
How to test if my application method handles HTTP status 404 of a REST API without actually calling that REST API
I am currently trying to automate some of the testing for my application using JUnit. My application has a method which calls a 3rd party REST API. I need to check if that method is handling HTTP ...
0
votes
0
answers
69
views
Integration tests and data used in these tests
I read a lot about unit and integration tests and how they work with maven and java and how it works with Continuous Integration.
I am using Flyway for db migrations, the schema part is already done.
...
8
votes
3
answers
1k
views
What is the difference between big bang and top down approach in Integration testing?
I've read lots of articles on the internet but still having confusion, what really happens in both of them and what is the difference between them ?
Could someone please elaborate with a real time ...
1
vote
1
answer
104
views
HTTP client test integration into Jenkins
IntelliJ Ultimate offers a code editor to test HTTP request (including asserts). Those tests can even be stored as a file or run-config to be executed for later api testing.
The official documentation ...
0
votes
2
answers
60
views
Writing Better Stubs To Local Behaviour Testing
I have recently faced an embarrassing bug in PPE and want to improve my testing strategy so that I can mitigate such bugs in future during local testing itself.
I have an API that interacts with a ...
-1
votes
1
answer
390
views
What is interface testing between software modules
I have already looked at the answers in: What is the difference between integration and interface tests?
The answers to these questions are (understandably) too abstract.
In the context of embedded ...
1
vote
2
answers
951
views
Setting up test data efficiently for large sets of integration tests: per test or not?
With huge sets of integration tests, data setup is becoming somewhat of an obstacle in terms of runtime.
What is your experience to tackle similar situations?
Scenario: 200 API integration tests ...
1
vote
0
answers
57
views
Best approach for end to end testing for integration of web, hardware and desktop in Ci/CD?
I have a very unique application that involves a web portal, USB hardware dongle license and windows executable utility that configures the hardware
As a customer buy a USB dongle hardware in a web ...
5
votes
7
answers
20k
views
What is the difference between integration and interface tests?
I have googled many times but still not understand clearly about interface testing in software testing, who can explain this , many thanks?
0
votes
2
answers
322
views
Automation data setup: via SQL or via APIs?
I've had this discussion recently and would appreciate some more opinions and experiences of this community.
When setting up data for integration tests (API or UI), is the favored approach via SQL or ...
1
vote
1
answer
582
views
Has anyone written automated tests for Looker?
We are starting a reporting project that integrates Looker and Snowflake to gather data from multiple micro services. We were wondering if anyone is doing something similar and how do / did you create ...
10
votes
2
answers
15k
views
Why do code coverage of integration test?
in my project I started code coverage for unit and integration test with gradle + jacoco. It's already working and generating reports.
I saw a lot of questions and tutorials about how to do code ...
0
votes
2
answers
104
views
How should I perform an E2E test for a report that updates only once per day?
I would like to perform an end-to-end test where I create some data via a UI and then verify it appears in the appropriate report the following day. The challenge is that the report only updates once ...
2
votes
4
answers
363
views
Diff between Integration(written by dev) and End to End testing(written by qa)
Recently, I was in conversation with a developer, developing an API. We had a conversation appertaining to testing of that API, while I told him we will test the end to end flows of API using ...
1
vote
3
answers
54
views
When nightly testing integrations with external systems, how should random failures of the external system be handled?
Our product can integrate with a variety of external systems. We support 5 different databases for storing business data, 5 different version control repositories, 5 different bug trackers,... We also ...
0
votes
2
answers
2k
views
How to test decoupled front and back end web apps
I often struggle to see the benefit of unit testing, especially in a web app environment that uses a JS frontend and an API + database backend.
On both the front and back end, you would typically ...
0
votes
1
answer
128
views
What does integration testing an API involve?
I'm diving into the world of API testing and coupled with that integration testing. It's made me think quite a lot about a few things:
1) Who would carry out integration tests? The dev or the tester?
...
5
votes
1
answer
387
views
Good strategies to test integration with multiple external providers
I have a single service that acts as "middle-man"/gateway between a few internal services and multiple external complex APIs, over 20 to 30+ different ones.
I want to direct my testing efforts in ...
5
votes
2
answers
2k
views
Difference between Integration Testing and Continuous Integration Testing
In my college, I learned about Integration testing in which we combine the whole code together and then test it at once after we are done with unit testing.
A few days back, I heard about Jenkins, ...