10 votes
Accepted

How to test if my application method handles HTTP status 404 of a REST API without actually calling that REST API

Use a mock. Mock 3rd party API using MockServer or WireMock, if you're in the Java world. Your test will call getNumUsers() method which in turn will call mock of your 3rd API and the mock will ...
user avatar
  • 10.4k
10 votes
Accepted

Should integration tests test business logic?

No if it can be done in Unit tests The answer however is not a yes / no as this is not really a binary choice. When possible use Unit tests. If you are testing 'based on this information from this ...
user avatar
9 votes

Why do code coverage of integration test?

I'll assume the question is this: Why measure how much of the SUT's code is covered by integration tests? and not this: Why measure how much of the integration test code is covered? I think ...
user avatar
  • 23k
9 votes
Accepted

Tests in CI: Are API + Integration Tests the most suitable?

As already mentioned in your TechBeacon article, teams indeed often spend too much at the top of the test automation pyramid. In general, the pyramid is a good rule of thumb, but (as always) it ...
user avatar
  • 2,112
8 votes
Accepted

How can I use humor to explain integrated testing?

Here are some fun examples: Videos: Doors - https://youtu.be/VPSE13NLPnM Sink - https://youtu.be/RMYRTJuY8Ss Dryer - https://youtu.be/ajUB4-m-y2o Door Lock - https://www.youtube.com/watch?v=...
user avatar
7 votes
Accepted

What is the difference between integration and interface tests?

You have some choices here. You can go with formal definitions like the ISTQB definition, or you can treat the definitions the way your organization handles them. Software testing is a field where ...
user avatar
  • 30.8k
7 votes

What is the difference between big bang and top down approach in Integration testing?

In a nutshell, Big bang testing involves real software components after each component has been finished; all of the components have never been tested before. Top down testing involves lower level ...
user avatar
  • 9,720
7 votes
Accepted

What's the difference between integration and contract testing of microservices?

Martin Fowler has a good article just about that Quoting him: Integration tests collect modules together and test them as a subsystem in order to verify that they collaborate as intended to achieve ...
user avatar
  • 6,945
6 votes
Accepted

Selenium and it's ability to do integration testing

TL;DR: Yes, but keep in mind that Selenium is only part of the integration test tool chain. If we define integration testing as something like this: Integration testing is the phase in software ...
user avatar
6 votes

Tests in CI: Are API + Integration Tests the most suitable?

Use the test pyramid as mentioned by Peter Masiar. My contribution here is help answer the question of exactly how to decide the 20% and 80% figures that Peter mentions. My approach to this is to ...
user avatar
6 votes

How to test if my application method handles HTTP status 404 of a REST API without actually calling that REST API

You don't need to add any additional dependency. Start doing some preparatory refactoring in order to: Program to an interface instead of a concrete object; Break the getNumUsers() into two ...
user avatar
  • 9,949
6 votes

Measuring integration test efficiency

We thought of some sort of limited coverage measurement - checking if collaboration points like app to database, app to external service are covered by tests. Most code coverage tools allow filtering ...
user avatar
  • 9,949
5 votes
Accepted

Best practices on testing access permissions

There are a lot of ways to answer the first question. Should this specific feature be tested? That depends on how important the feature is and whether it is possible that the feature was broken by a ...
user avatar
  • 23k
5 votes

Integration Testing requires consecutive builds?

What do you think? Should you eat one meal at a time and 2 to 3 meals a day? Or should you eat sufficient meals for 30 days at once and enjoy the remaining 29 days? Keep things as simple as ...
user avatar
5 votes

Tests in CI: Are API + Integration Tests the most suitable?

Consider test pyramid. Using Pareto principle (also known as 80/20 rule), you can get 80% of benefits from testing by focusing on unit test with 20% of the effort. And 80% benefit of the remainder if ...
user avatar
5 votes

Who is typically responsible for integration testing?

The one and only correct answer to this question do not exist. It depends on many factors. It depends on the software development life cycle model, on the team and developer to tester ratio and so on. ...
user avatar
  • 469
5 votes
Accepted

Code coverage for Integration tests

Some relevant guidelines: The goal is confidence, not coverage. If you have good coverage with well-written unit tests then a tiny number of high-level tests can be enough to have confidence that the ...
user avatar
  • 468
5 votes

Should integration tests test business logic?

I think you fell on the Integrated Tests scam. Integration tests are about "determining if independently developed units of software work correctly when they are connected to each other". ...
user avatar
  • 9,949
4 votes

Best practices on testing access permissions

As user246 says, whether you automate your permissions tests depends on the application and whether it can be properly tested that way. The question of what you test and how always depends on the ...
user avatar
  • 30.8k
4 votes

System integration testing

It sounds as if you want to avoid giving QA a build that falls apart right away. One way to address this is to add a smoke test to the development cycle. There are other SQA questions that cover ...
user avatar
  • 23k
4 votes

Should the highest bug priority be limited to bugs found on the production server

As others have said, if there isn't a consistent definition of what constitutes top priority across all teams, there will be disagreement over what constitutes a top priority bug. That said, I have a ...
user avatar
  • 30.8k
4 votes

Seriously struggling to understand "integration" testing

Some people distinguish between integration (some parts are used for real, some are mocked) and system/end-to-end testing (where is no mocking at all). For other people, system, integration , and ...
user avatar
4 votes
Accepted

Seriously struggling to understand "integration" testing

Let's start from your initial mandate. "Automated testing" can be a pretty vast land to explore. Leave the unit tests as they are for now and focus on the doubts you are having for integration tests. ...
user avatar
  • 164
4 votes
Accepted

Writing Integration Tests programmatically vs using Postman for REST APIs

In overall it looks more a question regarding the code-based vs tool-based testing. And for the low-level, technology facing tests, such as integration tests, the code-based approach would give you: ...
user avatar
3 votes
Accepted

Is Fitnesse only used as a acceptance test tool based on integration testing?

Seems that you want to have a tool which can translate requirements/test cases (written by business people with no experience in programming) into executable code. In our practice FitNesse is not ...
user avatar
3 votes

Should the highest bug priority be limited to bugs found on the production server

You need to take a step back and look at the whole picture- why did the dev lead objected to the P0 setting ? It is not because "it is not in production" (well, it is but there is a higher level ...
user avatar
  • 6,945
3 votes

What is the difference between integration and interface tests?

I take a look into the ISTQB glossary and found this two definitions: interface testing: An integration test type that is concerned with testing the interfaces between components or systems. ...
user avatar
  • 1,644
3 votes

what's the difference between automated system test and automated system integration test?

Hopefully your interviewer understood that there are no universal definitions for those terms. Here is one interpretation. A system test exercises an entire system, focusing on common workflows ...
user avatar
  • 23k
3 votes
Accepted

E2E testing of Angular app with Python backend: Protractor/JavaScript vs webdriver/Python

I am currently working on an angular app with python/selenium e2e tests. The main difference is that protractor offers not just selection logic (model, binding, etc.) but also implicitly waits for ...
user avatar
3 votes

How to automate multiple selenium test cases where one test case is dependent with another test case?

You can try someting like, Option 1 Open browser. Open Base URL. Scenario 1 Go to Login page. Enter the username and password. Login. Lands on the Home Page/Dashboard/Whatever. Scenario 2 ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible