Locust + Playwright Custom Design for Scalable Browser Performance Testing: Request for Review & Feedback on Design Patterns #3158
Unanswered
Vignesh-332
asked this question in
Q&A
Replies: 1 comment
-
Hi! This is super interesting, and I'd be very happy if someone were to pick up the mantle from PlaywrightUser (it definitely needs a makeover). Using a browser pool is something I originally wanted to avoid because it adds complexity, but it might also be necessary, for the reasons you mention. It is really hard to tell from a one line description what these choices actually mean. I'd need to see some code. The fact that you need a special test data management sounds a little weird, why would Playwright tests need a its own model for test data management? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I'm developing a Locust + Playwright script for efficient, large-scale browser-based performance testing. My focus has been on addressing the inherent complexities of browser automation in load testing-specifically, robust resource management, comprehensive metrics, and graceful error handling.
Based on my experience, including using the Locust Playwright plugin, I found that achieving the specific level of control and the desired robustness for these complex scenarios required implementing custom architectural patterns that weren't directly available or straightforward to implement using the plugin alone. This led me to develop the approach I'm presenting. While I'm not sharing the full script code at this time, I would greatly appreciate the community's feedback on the technical design choices and patterns I've used.
Below is an analysis comparing my script's approach with the official locust-plugins Playwright example. I'm particularly seeking feedback on the patterns that extend beyond typical examples, such as the custom browser pool, resource management and test flow control.
Are these considered sound approaches for integrating complex browser resources into Locust at scale, please review and share your insights.
Beta Was this translation helpful? Give feedback.
All reactions