# Nikolaj Tolkaciov. Full-stack test automation

> Full-stack test automation - report by Nikolaj Tolkaciov. Canonical page: <https://zapple.tech/blog/test-automation-methodologies/full-stack-test-automation/>

In this talk, Nikolaj Tolkaciov, head of the testing practice at Devbridge, explains full-stack test automation: using each level under our control to get the best automation solution. He compares the test automation pyramid with the Bug Filter approach and lists three ways to split work between developers and test engineers.

*Nikolaj Tolkaciov, head of the testing practice at Devbridge, talked about full-stack test automation in terms of using each of the levels under our control to get the best automation solution.*

## The Test Automation Pyramid and its Alternative

The original Test Automation Pyramid consists of:

- UI tests;
- Service;
- Unit.

These are the levels at which we can build our automation consisting of UI, API, integration, component, and unit tests.

There is another approach to automated testing – Bug Filter. The idea is that there is an endless set of different bugs. First, you run unit tests and find all bugs which can be found with the unit test. Then move on to integration testing, only those bugs that cannot be found by unit testing get here. And then move on to E2E and user testing. Thus, only functionally undetectable bugs get into production!

![](/assets/vendor/lh4.googleusercontent.com/8499d887e972bdc07c6293e6.png)

This approach has another advantage. Usually, when developers complete their work, testers write UI E2E tests, assuming that the unit test does not cover anything, and you need to do everything from scratch by duplicating efforts. The Bug Filter brings a focus on the correct order of test automation and thus reducing duplicated test coverage.

This brings us to automating full-stack testing.

## The Essence of Full-Stack Test Automation

In software testing, there is a responsibility division. Developers do unit/integration testing, and the rest is for test engineers. And there is a huge gap between them.

![](/assets/vendor/lh6.googleusercontent.com/6d617e27524e7a1bf19406ff.png)

How to avoid it? There are several options for the events’ development.

1. The developer writes unit/integration, API, and UI tests.
2. The developer writes unit/integration tests and then defines what to test by the API and UI tests. Test engineers write API and UI tests according to these specifications.
3. The developer writes unit/integration tests. The test engineer analyzes what is covered by the unit/integration test layer then writes API and UI tests to cover gaps missed by the unit/integration test.

## Conclusion

Treat test automation layers as bug filters, learn how to implement unit testing, take care of the full test automation stack. This will eliminate all bottlenecks and increase ROI for test automation.

## Key takeaways

- The test automation pyramid and the Bug Filter alternative
- The gap between developer and test engineer responsibilities
- Three ways to split unit, integration, API and UI test writing
- Treating automation layers as bug filters

## FAQ

### What is full-stack test automation?

Nikolaj Tolkaciov describes it as using each of the levels under our control, from unit to UI, to get the best automation solution. It addresses the gap that appears when developers do unit and integration testing and test engineers handle the rest.

### What is the Bug Filter approach?

Nikolaj Tolkaciov describes the Bug Filter as an alternative to the test automation pyramid. You run unit tests first and find all bugs they can find, then integration tests catch only what unit tests miss, then end-to-end and user testing. It also reduces duplicated test coverage.

### Who should write which automated tests?

Nikolaj Tolkaciov gives three options: the developer writes unit, integration, API and UI tests; or the developer writes unit and integration tests and defines what API and UI tests should cover, which test engineers write; or test engineers analyze what is covered and write API and UI tests for the gaps.
