SlideShare a Scribd company logo
API Level Regression
Testing: a Field Report
Leonhard Holzer & Kurt Ranalter
SFScon 2018
Mission statement
• Software company from Bruneck-Brunico
• BI, quality control & production planning tools
• Customers: automotive industry, local business
• Agile, CI/CD: continuous integration & delivery
• One of our aims is to deliver high quality SW
• Testing is crucial to avoid breaking functionality
• But testing is not for free, it costs time and effort
• Apit: our API level regression testing framework
API level regression testing 2SFScon 2018
Example application
API level regression testing 3SFScon 2018
Issues & challenges
• Page dependencies
• PNL & balance → cash flow
• Accruals → PNL & balance
• Input dependencies
• Drilldowns & data aggregation
• Aggregated row ↔ data row
(→) depending on reference column
• TY column ↔ month column
(→) based on month, working days
API level regression testing 4SFScon 2018
Behind the scenes
Post request Get request
SFScon 2018 API level regression testing 5
Architecture & testing
• Focus on testing business logic
• End-to-end testing not really an option
• Usual solution: unit & integration tests
• Requires extensive setup and mocking
• Why not make use of REST API?
• Simulate usage as in end-to-end testing
• Business logic considered as black box
• Not a substitute but complementary
SFScon 2018 API level regression testing 6
Apit DSL for requests
Post request Apit test case
SFScon 2018 API level regression testing 7
How does it work?
• In a nutshell
1. Add framework as library
2. Read and parse config files
3. Run as JUnit5 dynamic tests
• Build pipeline
1. DB/auth as docker container
2. Tests just run as maven goals
API level regression testing 8SFScon 2018
Concluding remarks
• Design decisions & supported features
• Exploit framework to generate necessary test data
• Actual/expected as JSON (WIP: git to track changes)
• Payloads from file instead of coding it into config
• Parameters for testing in multiple environments
• Quick & easy to use but still powerful
• No need for mocking, relatively simple to maintain
• Good integration with respect to our build pipeline
API level regression testing 9SFScon 2018
That‘s it, thanks!
www.abuscom.com
info@abuscom.com
API level regression testing 10SFScon 2018

More Related Content

PPSX
PPS
PPTX
DevOps for SAP CPI presentation
PPTX
5 ways to use node.js in the network
PPTX
Gaps in the Serverless Mesh: Deployment, Discovery, and Auth
PPTX
It meet up 1 0 лебедева, лоханов
PDF
Continuous mobile automation in build pipeline
PPTX
DevOps for SAP CPI presentation
5 ways to use node.js in the network
Gaps in the Serverless Mesh: Deployment, Discovery, and Auth
It meet up 1 0 лебедева, лоханов
Continuous mobile automation in build pipeline

What's hot (20)

PPTX
Mule soft meetup anaplan
PPT
UC4 SCHEDULING
PPTX
Whats new in .net for 2019
PDF
Flink Forward San Francisco 2018: Xingzhong Xu - "Scaling Uber’s Realtime Opt...
PPTX
Azure Web Apps
PDF
Application Testing Suite 9.2
PPTX
(Past), Present, and Future of Apache Flink
PPSX
WEBridge 4 SAP V1.0 (RTM) on 11/11 of 2014
PDF
[UC4] Version and Automate Everything
PPTX
Cracking web development
PPTX
APIdays Zurich 2019 - Serverless architecture: focus on code, performance and...
PDF
Master thesis
PPTX
apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...
PPTX
Webinar: APPSeCONNECT iPaaS Q3 2020 Release - Major Highlights and Walkthrough
PDF
Streams in Parallel Development by Sven Erik Knop
PDF
Neriah it&engupdate
PDF
WEBridge 4 SAP ( Windchill and SAP Integration)
PDF
Summit Australia 2019 - PowerApp Portals - Andrew Ly & Lachlan Wright
PDF
PyCloud Presentation: Distributed system analysis made easy with PBench
PPTX
Project one
Mule soft meetup anaplan
UC4 SCHEDULING
Whats new in .net for 2019
Flink Forward San Francisco 2018: Xingzhong Xu - "Scaling Uber’s Realtime Opt...
Azure Web Apps
Application Testing Suite 9.2
(Past), Present, and Future of Apache Flink
WEBridge 4 SAP V1.0 (RTM) on 11/11 of 2014
[UC4] Version and Automate Everything
Cracking web development
APIdays Zurich 2019 - Serverless architecture: focus on code, performance and...
Master thesis
apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...
Webinar: APPSeCONNECT iPaaS Q3 2020 Release - Major Highlights and Walkthrough
Streams in Parallel Development by Sven Erik Knop
Neriah it&engupdate
WEBridge 4 SAP ( Windchill and SAP Integration)
Summit Australia 2019 - PowerApp Portals - Andrew Ly & Lachlan Wright
PyCloud Presentation: Distributed system analysis made easy with PBench
Project one
Ad

Similar to SFScon18 - Kurt Ranalter - Leonhard Holzer - API level regression testing: a field report (20)

PDF
Functional Testing - A Detailed Guide.pdf
PPTX
Testing NodeJS, REST APIs and MongoDB with UFT
PDF
Agile Software Testing the Agilogy Way
PDF
Agile Testing Pasadena JUG Aug2009
PDF
EffectiveSoft QA Services
PDF
Pragmatic Java Test Automation
PPTX
Avoiding test hell
PPTX
Modern Testing Strategies for Evolving Ecosystems
PDF
Hardening
PDF
Cloud-based Test Microservices JavaOne 2014
PDF
Embedded world 2017
PPTX
Using REST and UI Testing to Test Ajax Web Applications
PPT
Brightcove presentation on Automated Testing
PDF
End to End Testing: Bug Squashing for API Developers
PDF
A Complete Guide to Functional Testing.pdf
PPTX
Testing 101
PDF
Deliver Faster with BDD/TDD - Designing Automated Tests That Don't Suck
PDF
20140925 fistb keynote
PDF
Presentation
PDF
Web Services Testing Best Practices: Secure, Reliable, and Scalable APIs
Functional Testing - A Detailed Guide.pdf
Testing NodeJS, REST APIs and MongoDB with UFT
Agile Software Testing the Agilogy Way
Agile Testing Pasadena JUG Aug2009
EffectiveSoft QA Services
Pragmatic Java Test Automation
Avoiding test hell
Modern Testing Strategies for Evolving Ecosystems
Hardening
Cloud-based Test Microservices JavaOne 2014
Embedded world 2017
Using REST and UI Testing to Test Ajax Web Applications
Brightcove presentation on Automated Testing
End to End Testing: Bug Squashing for API Developers
A Complete Guide to Functional Testing.pdf
Testing 101
Deliver Faster with BDD/TDD - Designing Automated Tests That Don't Suck
20140925 fistb keynote
Presentation
Web Services Testing Best Practices: Secure, Reliable, and Scalable APIs
Ad

More from South Tyrol Free Software Conference (20)

PDF
SFSCON24 - Marina Latini - 1, 2, 3, Doc Kit!
PDF
SFSCON24 - Carmen Delgado Ivar Grimstad - Nurturing OpenJDK distribution: Ecl...
PDF
SFSCON24 - Eduardo Guerra - codEEmoji – Making code more informative with emojis
PDF
SFSCON24 - Juri Solovjov - How to start contributing and still have fun
PDF
SFSCON24 - Michal Skipala & Bruno Rossi - Monolith Splitter
PDF
SFSCON24 - Jorge Melegati - Software Engineering Automation: From early tools...
PDF
SFSCON24 - Chiara Civardi & Dominika Tasarz Sochacka - The Crucial Role of Op...
PDF
SFSCON24 - Moritz Mock, Barbara Russo & Jorge Melegati - Can Test Driven Deve...
PDF
SFSCON24 - Aurelio Buonomo & Christian Zanotti - Apisense – Easily monitor an...
PDF
SFSCON24 - Giovanni Giannotta & Orneda Lecini - Approaches to Object Detectio...
PDF
SFSCON24 - Alberto Nicoletti - The SMART Box of AURA Project
PDF
SFSCON24 - Luca Alloatti - Open-source silicon chips
PDF
SFSCON24 - Roberto Innocenti - 2025 scenario on OpenISA OpenPower Open Hardwa...
PDF
SFSCON24 - Juan Rico - Enabling global interoperability among smart devices ...
PDF
SFSCON24 - Seckin Celik & Davide Serpico - Adoption Determinants of Open Hard...
PDF
SFSCON24 - Stefan Mutschlechner - Smart Werke Meran - Lorawan Use Cases
PDF
SFSCON24 - Mattia Pizzirani - Raspberry Pi and Node-RED: Open Source Tools fo...
PDF
SFSCON24 - Attaullah Buriro - ClapMetrics: Decoding Users Genderand Age Throu...
PDF
SFSCON24 - Joseph P. De Veaugh Geiss - Opt out? Opt in? Opt Green! Bringing F...
PDF
SFSCON24 - Fulvio Mastrogiovanni - On the ethical challenges raised by robots...
SFSCON24 - Marina Latini - 1, 2, 3, Doc Kit!
SFSCON24 - Carmen Delgado Ivar Grimstad - Nurturing OpenJDK distribution: Ecl...
SFSCON24 - Eduardo Guerra - codEEmoji – Making code more informative with emojis
SFSCON24 - Juri Solovjov - How to start contributing and still have fun
SFSCON24 - Michal Skipala & Bruno Rossi - Monolith Splitter
SFSCON24 - Jorge Melegati - Software Engineering Automation: From early tools...
SFSCON24 - Chiara Civardi & Dominika Tasarz Sochacka - The Crucial Role of Op...
SFSCON24 - Moritz Mock, Barbara Russo & Jorge Melegati - Can Test Driven Deve...
SFSCON24 - Aurelio Buonomo & Christian Zanotti - Apisense – Easily monitor an...
SFSCON24 - Giovanni Giannotta & Orneda Lecini - Approaches to Object Detectio...
SFSCON24 - Alberto Nicoletti - The SMART Box of AURA Project
SFSCON24 - Luca Alloatti - Open-source silicon chips
SFSCON24 - Roberto Innocenti - 2025 scenario on OpenISA OpenPower Open Hardwa...
SFSCON24 - Juan Rico - Enabling global interoperability among smart devices ...
SFSCON24 - Seckin Celik & Davide Serpico - Adoption Determinants of Open Hard...
SFSCON24 - Stefan Mutschlechner - Smart Werke Meran - Lorawan Use Cases
SFSCON24 - Mattia Pizzirani - Raspberry Pi and Node-RED: Open Source Tools fo...
SFSCON24 - Attaullah Buriro - ClapMetrics: Decoding Users Genderand Age Throu...
SFSCON24 - Joseph P. De Veaugh Geiss - Opt out? Opt in? Opt Green! Bringing F...
SFSCON24 - Fulvio Mastrogiovanni - On the ethical challenges raised by robots...

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPT
Teaching material agriculture food technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Cloud computing and distributed systems.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Dropbox Q2 2025 Financial Results & Investor Presentation
Teaching material agriculture food technology
Building Integrated photovoltaic BIPV_UPV.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Network Security Unit 5.pdf for BCA BBA.
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Digital-Transformation-Roadmap-for-Companies.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
MYSQL Presentation for SQL database connectivity
Reach Out and Touch Someone: Haptics and Empathic Computing
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Cloud computing and distributed systems.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
NewMind AI Weekly Chronicles - August'25 Week I
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?

SFScon18 - Kurt Ranalter - Leonhard Holzer - API level regression testing: a field report

  • 1. API Level Regression Testing: a Field Report Leonhard Holzer & Kurt Ranalter SFScon 2018
  • 2. Mission statement • Software company from Bruneck-Brunico • BI, quality control & production planning tools • Customers: automotive industry, local business • Agile, CI/CD: continuous integration & delivery • One of our aims is to deliver high quality SW • Testing is crucial to avoid breaking functionality • But testing is not for free, it costs time and effort • Apit: our API level regression testing framework API level regression testing 2SFScon 2018
  • 3. Example application API level regression testing 3SFScon 2018
  • 4. Issues & challenges • Page dependencies • PNL & balance → cash flow • Accruals → PNL & balance • Input dependencies • Drilldowns & data aggregation • Aggregated row ↔ data row (→) depending on reference column • TY column ↔ month column (→) based on month, working days API level regression testing 4SFScon 2018
  • 5. Behind the scenes Post request Get request SFScon 2018 API level regression testing 5
  • 6. Architecture & testing • Focus on testing business logic • End-to-end testing not really an option • Usual solution: unit & integration tests • Requires extensive setup and mocking • Why not make use of REST API? • Simulate usage as in end-to-end testing • Business logic considered as black box • Not a substitute but complementary SFScon 2018 API level regression testing 6
  • 7. Apit DSL for requests Post request Apit test case SFScon 2018 API level regression testing 7
  • 8. How does it work? • In a nutshell 1. Add framework as library 2. Read and parse config files 3. Run as JUnit5 dynamic tests • Build pipeline 1. DB/auth as docker container 2. Tests just run as maven goals API level regression testing 8SFScon 2018
  • 9. Concluding remarks • Design decisions & supported features • Exploit framework to generate necessary test data • Actual/expected as JSON (WIP: git to track changes) • Payloads from file instead of coding it into config • Parameters for testing in multiple environments • Quick & easy to use but still powerful • No need for mocking, relatively simple to maintain • Good integration with respect to our build pipeline API level regression testing 9SFScon 2018
  • 10. That‘s it, thanks! www.abuscom.com info@abuscom.com API level regression testing 10SFScon 2018