What is functional testing?

What is functional testing? How is this different from unit testing and integration testing?

+6
c # terminology unit-testing testing
source share
8 answers

Another way of thinking is as follows:

Unit Test:
Check your code as units of measure, calling methods, and checking return values ​​and state / property values ​​of an object

Functional Testing:
Testing your code paths when completing a task. This ensures that your application does what your code says.

Integrated Testing? Do you mean integration testing?

Integration Testing:
Testing your code, connecting it to a larger mass, to make sure that you have not violated the existing logic, and you can integrate it back into the main branch.

+14
source share

Functional testing ensures that customer requirements are implemented in the final product as specified in the specification. Unit testing - checking that small parts of the code behave as intended. Integration testing ensures that the system is stable when all the different parts / modules are combined.

For example, BigBank Corporation wants the software to generate customer bank statements and make 3 random fees every month for each customer.

The program manager writes down the functional specification of the software after several discussions with BigBank representatives.

The developer writes a module that populates the template statement from the database. It performs unit testing to check if most cases are covered (typical client, no monthly data, etc.).

Another developer is creating a random number generator module. It performs unit testing.

The integrator accepts two modules, compiles them, and performs integration testing to ensure that they work well together.

Finally, in order to deliver the beta for BigBank, the testing team will conduct functional testing to confirm that the software meets the functional specifications.

+5
source share

Functional testing of the target test should focus on any test requirements that can be traced directly to functional specifications or business rules. The goals of these tests are to verify that data is received, processed, and retrieved correctly. It checks the functions and performance of the product to meet its specifications, and includes tests that ignore the internal mechanism of the system or component and focus solely on the outputs generated in response to the selected inputs and execution conditions. This type of testing is based on typical black box methods, that is, checking the application (and its internal processes), interacting with the application through the User Interface and analyzing the result (s).

Source: http://softwareqatestings.com/introduction-to-software-testing/basic-steps-of-functional-testing.html

+2
source share
  • Module testing is performed within the same application level (presentation, business logic, data access, etc.).

  • Functional testing is carried out at several application levels, so that the tests cover pieces of the full functionality of the application.

  • Integration testing is testing in multiple component applications or even applications.

+1
source share

Unit Test: Check the smallest units of code, usually a single function or method. Using mocks, etc., It should ideally be very fast and not hit the hard drive or network in any way.

Functional testing: Test a set of functions / methods working together. Ideally, this should also not go to disk or network, but often will.

Integration testing: Testing, which is performed in the real world, takes place in real (albeit test) databases, is written to disk, etc. You test that your program works correctly with other services, that it "integrates" correctly with them. You will often have a separate program (for example, Selenium) that will conduct tests, as a real user would do.

also: White box testing: Tests that know the internal principles of the program. Unit tests and functional tests are often a white box. An example would be to call a function to store a value, and then verify that the value in the database is correct.

Black Box Testing: Tests that are not familiar with internal components and treat the program / function / method as a black box. An example would be calling a function to store a value and calling another (public) function to get that value.

+1
source share

Functional testing today is widely known as end-to-end testing or system testing if you look at the V-model.

Unit testing obviously tests the smallest unit of code that is possible, and integration testing verifies that your modules integrate well with other parts of the system.

+1
source share

The term "functional testing" is usually used to test the system as a whole, for example. web application from browser to database level. Although I am guilty of abuse of this term myself, I believe that the terms "system testing" or "end-to-end testing" describe it much better.

Another meaning of "functional testing" may simply be "testing functionality", which is usually true for unit testing or integration. But there are tests that are not functional. Almost everything regarding non-functional requirements falls into this category, for example, load or profiling.

I think that initially the difference could be between “testing a functional system” and “non-functional testing of a system”, now “functional testing” is often used to distinguish between end-to-end testing from testing of subsystems / units.

0
source share

First we need to understand what a “function” is in relation to software?

A function can be considered as a task / activity that is intended for software.

So, testing each software function is called functional testing.

Starting to test the device, you will isolate the code and test each block.

Consider the method / function in the program as a unit in which you pass some parameters and expect the code to give the required output and testing such units of code is called unit testing.

A set of units acts as a software function, and testing such functions can be called functional testing.

Please follow the links to better understand it.

http://www.guru99.com/unit-testing-guide.html

http://www.guru99.com/functional-testing.html

0
source share

All Articles