Test Automation Pyramid

Test Automation Pyramid

What is Test Automation Pyramid?

The "Test Pyramid" is an analogy that guides us to bunch programming tests into pails of various granularity. It additionally gives a thought of what number of tests we ought to have in every one of these gatherings. Despite the fact that the idea of the Test Pyramid has been around for some time, groups still battle to incorporate it appropriately. This article returns to the first idea of the Test Pyramid and shows how you can try this. It shows which sorts of tests you ought to be searching for in the various degrees of the pyramid and gives common sense models on how these can be executed.

Why is it required?

Developed programming requires testing before it goes into generation. As the order of programming advancement developed, programming testing approaches have developed as well. Rather than having heaps of manual programming analyzers, advancement groups have moved towards mechanizing the greatest segment of their testing endeavors. Computerizing their tests enables groups to know whether their product is broken in only seconds and minutes rather than days and weeks.

Advantage of Test Automation Pyramid

The radically shortened feedback circle fuelled via automated tests goes inseparably with development practices, consistent delivery, and DevOps culture. Having a powerful programming testing approach enables groups to move quickly and with certainty.

In the event that you need to quit fooling around about automated tests for your product, there is one key idea you should think about: the test pyramid. Mike Cohn concocted this idea in his book Succeeding with Agile. It's an incredible visual allegory educating you to think regarding various layers of testing. It additionally reveals to you how much testing to do on each layer.

Layers of Test Automation Pyramid

Mike Cohn's original test pyramid has three layers that your test should consist of:

1.     Unit Tests
2.     Service Tests
3.     User Interface Tests

·        Unit tests

The establishment of your test suite will be comprised of unit tests. Your unit tests ensure that a specific unit (your subject under trial) of your codebase fills in as planned. Unit tests have the tightest extent of the considerable number of tests in your test suite. The number of unit tests in your test suite will largely outnumber some other sort of test.

·        Service Tests

The majority of the modern applications have support for ‘third party developers’ to assemble a system around the application. This is conceivable by uncovering Application Programming Interfaces (APIs)/web-administration for the outside world/third party developers. These APIs have negligible reliance on the UI layer. Analyzers can utilize these APIs to think of tests that can be utilized to confirm the fundamental highlights of the product.

·        User Interface Tests

UI tests test that the UI of your application works accurately. User input should trigger the correct activities, data ought to be displayed to the user, UI state should change true to form.

Tools and Libraries used in the test automation pyramid:

JUnit: test runner
Wiremock: for stubbing out external services
Selenium: for writing UI-driven end-to-end tests
REST-assured: for writing REST API-driven end-to-end tests


With the quickly changing business situation, time to advertise is exceptionally basic and any delay could bring about a noteworthy measure of misfortunes to the association. Rather than the conventional testing model, Test Automation Pyramid testing can be utilized to build efficient, lessen time-to-showcase, and improve the quality of the finished result.



My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post