Inverting Test Pyramid 
Experience Report 
Sachin Natu @natusachin 
Naresh Jain @nashjain
25YEARS 6000+CLIENTS Nr 1M ROOMS 94COUNTRIES 95%+ 
ago we started 
later we’re still finding 
around the world are 
helping clients 
the revenue opportunity 
priced every single day 
manage their 
in every situation 
using IDeaS 
revenue 
on 6 continents have 
hotels that now run on 
IDeaS Revenue 
Management 
Systems 
More than 95 
percent of all 
our clients are 
still working 
with us today. 
About IDeaS
Our Worldwide Clients : 
Hospitality + Travel + Distribution
Agenda 
● Where were 
we? 
● Problem 
● How we tried to 
solve? 
● How we 
optimized?
Status of regression time 
Page
No Automation !
Problems 
● Thousands of 
regression tests 
● Cross cutting defects 
found were more. 
● Repeat Exeuction
Moving to shorter release cycle - a dream?
Regression period is incompressible
Manual and repetitive tasks are error prone.
Issue leakages 
Page 
Releases
Let’s automate regression 
Page
UI Test 
Page
After Automation Introduced
Production feedback 
Page
Duration… 
2 
Yrs 
Team of 2 full time Automation Testers
State of the Product 
Manual 
Checking 45% 
End- to End UI 
Tests 40% 
Integration Tests 
10% 
Unit Tests 
5%
Are we happy now? 
Page
Always Catching Up
No pinpointed feedback
Silos
Tests are slow
Costly to maintain
Is there way out? 
Page
Analysis of Bugs Report
Why test from far
The Test Pyramid 
Typical test strategies lead to an inverted testing 
pyramid 
Manual 
Checking 
End- to End Selenium 
Tests 70% 
Integration Tests 
20% 
Unit Tests 
UI 
1 
% 
End to 
End Flow 
Tests 4% 
Workflow API 
Tests 6% 
Integration Tests 9% 
Domain Logic Acceptance 
Tests 10% 
10% Unit Tests 70% 
This is the need of the hour…. Courtesy: Naresh Jain @AgileFAQs.com
Our transition story… 
• We decided to "Test things right , at 
right place on right time" which would 
result in "right test pyramid“ 
UI 
1 
% 
End to 
End Flow 
Tests 4% 
Workflow API 
Tests 6% 
Integration Tests 9% 
Domain Logic Acceptance 
Tests 10% 
Unit Tests 70%
Business logic test
Current Status
Benefits
Automation is part of development 
• TDD 
• BDD 
• UI Tests only worry for UI
Improved collaboration 
Developer QA
Grouping Tests - ROI 
80 Scenarios - 300 + Min!
Grouping Tests - ROI - Pyramid 
UI Tests - 4 Min 
End to End - 4 Min 
80 Scenarios < Min!
Regression timelines 
Months 
Page
Feels like Agile now... 
Page
Challenges 
• Legacy code - “Unit test 
unfriendly” 
• Mapping acceptance tests 
with various slices of 
pyramid 
• Building team 
competencies 
• Pairing/ collaboration is 
backbone
Key Learnings 
• Do not overdo UI 
regression automation 
• Keep it 
simple/pinpointed 
• Design for Testability 
UI 
1 
% 
End to 
End Flow 
Tests 4% 
Workflow API 
Tests 6% 
Integration Tests 9% 
Domain Logic Acceptance 
Tests 10% 
Unit Tests 70%
Naresh Jain @nashjain 
Sachin Natu @natusachin 
Page
Some Statistics...

Test pyramid agile pune conference