International Journal of Modern Computer Science and IT Innovations

  1. Home
  2. Archives
  3. Vol. 2 No. 10 (2025): Volume 02 Issue 10
  4. Articles
International Journal of Modern Computer Science and IT Innovations

Article Details Page

A Consumer-Driven Contract-Based Approach to Verifying User Interface Integration in Microservices Architectures

Authors

  • Ngozi Okafor Department of Computer Science, University of Ghana, Accra, Ghana

DOI:

https://doi.org/10.55640/

Keywords:

Microservices Architecture, Contract Testing, Consumer-Driven Contracts, User Interface Testing

Abstract

Context: Microservices Architectures (MSA) enhance deployment velocity and service autonomy, but traditional End-to-End (E2E) User Interface (UI) testing often reintroduces systemic coupling, leading to slow feedback cycles and high-test flakiness. This friction undermines the core benefits of MSA.

Objective: This research proposes and evaluates a novel, Consumer-Driven Contract (CDC) testing framework—the CDC-UI Hybrid Model—to strategically replace brittle E2E tests for verifying UI-to-backend integration in MSA environments. The goal is to harmonize testing across service boundaries and the presentation layer, accelerating the feedback loop.

Methodology: The study introduces a two-layer contract strategy: standard service-to-service CDC, complemented by a dedicated UI-Consumer Contract where the UI layer defines its expectations of the Backend-for-Frontend (BFF)/API Gateway. A simulated MSA case study was used to compare a baseline E2E-heavy approach against the proposed CDC-UI hybrid model, measuring key indicators such as test execution time, flakiness rate, and defect detection efficacy.

Results: The implementation of the CDC-UI Hybrid Model yielded a notable reduction in overall integration test execution time and a significant decrease in the test suite's non-deterministic flakiness. The approach successfully shifted the detection of UI-backend integration faults earlier in the development pipeline, correlating with a lower Defect Escape Rate.

Conclusion: The CDC-UI Hybrid Model provides a highly effective and pragmatic solution for validating UI integration in microservices. It aligns strategically with modern testing practices, dramatically improving test stability and accelerating the feedback loop, thereby preserving team autonomy and realizing the velocity potential of distributed architectures.

References

Harsh Bhasin, Esha Khanna, and Sudha. “Black Box Testing based on Requirement Analysis and Design Specifications”. In: International Journal of Computer Applications 87.18 (2014), pp. 36–40.

MDN contributors. HTTP response status codes. Feb. 2022.

Vahid Garousi and Junji Zhi. “A survey of software testing practices in Canada”. In: Journal of Systems and Software 86.5 (2013), pp. 1354–1376.

J.R. Horgan, S. London, and M.R. Lyu. “Achieving software quality with testing coverage measures”. In: Computer 27.9 (1994), pp. 60–69.

IBM. What is software testing?

Irena Jovanović. “Software testing methods and techniques”. In: The IPSI BgD Transactions on Internet Research 30 (2006).

Chandra Jha, A. (2025). VXLAN/BGP EVPN for Trading: Multicast Scaling Challenges for Trading Colocations. International Journal of Computational and Experimental Science and Engineering, 11(3). https://doi.org/10.22399/ijcesen.3478

Mohd Ehmer Khan. “Different forms of software testing techniques for finding errors”. In: International Journal of Computer Science Issues (IJCSI) 7.3 (2010), p. 24.

Mohd. Ehmer Khan and Farmeena Khan. “A Comparative Study of White Box, Black Box and Grey Box Testing Techniques”. In: (IJACSA) International Journal of Advanced Computer Science and Applications 3.6 (2012), pp. 12–15.

Charles M. Kozierok. The TCP/IP-Guide: A comprehensive, illustrated internet protocols reference. No Starch Press, 2009.

Jyri Lehvä. Testing Integrations with Consumer-Driven Contract Tests. eng. 2019.

Jyri Lehvä, Niko Mäkitalo, and Tommi Mikkonen. “Consumer-Driven Contract Tests for Microservices: A Case Study”. In: Product-Focused Software Process Improvement. Ed. by Xavier Franch, Tomi Männistö, and Silverio Martínez-Fernández. Cham: Springer International Publishing, 2019.

James Lewis and Martin Fowler. Microservices a definition of this new architectural term. Mar. 2014.

Lu Luo. “Software testing techniques”. In: Institute for software research international Carnegie mellon university Pittsburgh, PA 15232.1-19 (2001), p. 19.

Qingzhou Luo et al. “An Empirical Analysis of Flaky Tests”. In: Proceedings of the 22nd ACM SIGSOFT International Symposium on Foundations of Software Engineering. FSE 2014. Hong Kong, China: Association for Computing Machinery, 2014.

Y.K. Malaiya. “Antirandom testing: getting the most out of black-box testing”. In: Proceedings of Sixth International Symposium on Software Reliability Engineering. ISSRE’95. 1995, pp. 86–95.

B. Meyer. “Applying ’design by contract’”. In: Computer 25.10 (1992), pp. 40–51.

Elliot Murray. Dockerized Pact Broker. Aug. 2020.

Elliot Murray. Gotchas. Aug. 2020.

Elliot Murray and joklek. Contract Tests vs Functional Tests. Jan. 2021.

Florian Nagel and Martin Leucker. “Analysis of Consumer-driven contract tests with asynchronous communication between microservices”. In: (Dec. 2019).

Srinivas Nidhra and Jagruthi Dondeti. “Black box and white box testing techniques-a literature review”. In: International Journal of Embedded Systems and Applications (IJESA) 2.2 (2012), pp. 29–50

Infrastructure as Code (IaC) Best Practices for Multi-Cloud Deployments in Enterprises. (2025). International Journal of Networks and Security, 5(01), 174-186. https://doi.org/10.55640/ijns-05-01-10

Charlene O’Hanlon. “A Conversation with Werner Vogels: Learning from the Amazon Technology Platform: Many Think of Amazon as ’That Hugely Successful Online Bookstore.’ You Would Expect Amazon CTO Werner Vogels to Embrace This Distinction, but in Fact It Causes Him Some Concern.” In: Queue 4.4 (May 2006), pp. 14–22.

C. Pautasso et al. “Microservices in Practice, Part 1: Reality Check and Service Design”. In: IEEE Software 34.01 (Jan. 2017), pp. 91–98.

G. Purna Sudhakar. “A model of critical success factors for software projects”. In: Journal of Enterprise Information Management 25.6 (2012), pp. 537–558.

SMK Quadri and Sheikh Umar Farooq. “Software testing–goals, principles, and limitations”. In: International Journal of Computer Applications 6.9 (2010), p. 1.

Sagar Kesarpu. (2025). Contract Testing with PACT: Ensuring Reliable API Interactions in Distributed Systems. The American Journal of Engineering and Technology, 7(06), 14–23. https://doi.org/10.37547/tajet/Volume07Issue06-03

Chris Richardson. Pattern: Decompose by business capability.

Ahmad Salman et al. “An Empirical Investigation of the Impact of the Communication and Employee Motivation on the Project Success Using Agile Framework and Its Effect on the Software Development Business”. In: Business Perspectives and Research 9.1 (2021), pp. 46–61.

Abhijit A Sawant, Pranit H Bari, and PM Chawan. “Software testing techniques and strategies”. In: International Journal of Engineering Research and Applications (IJERA) 2.3 (2012), pp. 980–986.

Dharmendra Shadija, Mo Rezai, and Richard Hill. “Towards an understanding of microservices”. In: 2017 23rd International Conference on Automation and Computing (ICAC). 2017, pp. 1–6.

Beth Skurrie. Matching. Aug. 2020.

Beth Skurrie, Matt Fellows, and Elliot Murray. Getting started. Mar. 2021.

Beth Skurrie, Matt Fellows, and Elliot Murray. How Pact works. May 2021.

Beth Skurrie, Matt Fellows, and Elliot Murray. Webhooks. Oct. 2021.

Beth Skurrie and Elliot Murray. When to use Pact. July 2020.

Beth Skurrie, Elliot Murray, and obinna240. Can I Deploy. Nov. 2021.

Beth Skurrie et al. FAQ. Mar. 2022.

Beth Skurrie et al. Writing Consumer tests. Jan. 2021.

Johannes Thönes. “Microservices”. In: IEEE Software 32.1 (2015), pp. 113–116.

Unit testing best practices with .NET Core and .NET Standard. Nov. 2021.

Markos Viggiato et al. Microservices in Practice: A Survey Study. 2018. arXiv: 1808.04836 [cs.SE].

Ham Vocke. The Practical Test Pyramid. Feb. 2018.

Downloads

Published

2025-10-22

How to Cite

A Consumer-Driven Contract-Based Approach to Verifying User Interface Integration in Microservices Architectures. (2025). International Journal of Modern Computer Science and IT Innovations, 2(10), 85-98. https://doi.org/10.55640/

How to Cite

A Consumer-Driven Contract-Based Approach to Verifying User Interface Integration in Microservices Architectures. (2025). International Journal of Modern Computer Science and IT Innovations, 2(10), 85-98. https://doi.org/10.55640/

Similar Articles

1-10 of 12

You may also start an advanced similarity search for this article.