ESP Journal of Engineering & Technology Advancements |
© 2023 by ESP JETA |
Volume 3 Issue 3 |
Year of Publication : 2023 |
Authors : Nilesh Jagnik |
![]() |
Nilesh Jagnik, 2023. "RPC Replay for Robust Testing of Golang Applications," ESP Journal of Engineering & Technology Advancements 3(3): 113-115.
Integration and functional testing of systems is quite important for ensuring reliability and correctness. However end-to-end testing is susceptible to randomness due to interactions with external services, which may behave non-deterministically. This presents a need to create hermetic test environments, so that systems can be tested in a vacuum, i.e., without interacting with external dependencies. This normally requires setting up fakes and mocks to stub responses from interactions with external dependencies. However, stubs and mocks need to be manually created and maintained which adds toil. RPC Replay is a simple solution to this problem. RPC Replay automates the task of creating stubbed responses. The grpcreplay package in Golang provides support for RPC Replay of gRPC calls. In this paper, we study RPC Replay, its benefits, caveats and usage in Golang applications.
[1] grpcreplay (Jun 2019), https://pkg.go.dev/github.com/google/go-replayers/grpcreplay
[2] Go Tools for Recording and Replaying RPCs (Jun 2019), https://github.com/google/go-replayers/blob/main/README.md
[3] Record and Replay Testing vs Scripting: Navigating the Pros and Cons for Your Testing Needs (Jan 2023), https://www.testevolve.com/blog/record-and-replay-testing-vs-scripting
[4] Grigori Trofimov, Record & Replay Testing: How to Move Beyond Record-and-Replay for Better Automated API Testing (Apr 2023), https://www.parasoft.com/blog/best-api-testing-tools
[5] Ioan Solderea, In A World Of Record And Play, Where Does Playwright Fit In? (Aug 2023), https://www.ministryoftesting.com/articles/3cfeb5b8
[6] Amy Reichert, 4 ways to use record and playback test automation tools (Apr 2020), https://www.techtarget.com/searchsoftwarequality/tip/How-and-when-to-use-record-and-playback-testing-tools
Record And Replay, Software Testing, Software Debugging.