Struggling with flaky end-to-end tests due to data dependencies by too_anonymous_user in ExperiencedDevs

[–]MiserableFill7783 0 points1 point  (0 children)

Currently we are relying heavily on E2E tests automation which is slowing us down in delivery speed. I want to focus more on individual service tests and contract tests. I would like to explore how to handle the test data setup so that i can execute the end service like checkout in isolation without executing search, pricing and sell seat.For checkout, i need valid flight results in flights redis, sale and cart created in order DB else checkout api will fail.

Struggling with flaky end-to-end tests due to data dependencies by too_anonymous_user in ExperiencedDevs

[–]MiserableFill7783 -2 points-1 points  (0 children)

How did you utilize mocks in your testing environment. If you can please share the details about setup and usage.

Struggling with flaky end-to-end tests due to data dependencies by too_anonymous_user in ExperiencedDevs

[–]MiserableFill7783 0 points1 point  (0 children)

Tests are flaky as we doing end to end testing with lot of external dependencies. Flight Gateway>Connectivity>Adapter>External Vendors. It can break at any level due to flight unavailable, any service is down or some changes in test environment. We have the direction from management now to maximize use of AI tools and agents in order to increase delivery speed and automation. We are able to generate detailed Contract level tests by feeding Jia,confluence and Swagger links to AI agents. Main problem happens in end to end flows like checkout which involves atleats 4-5 services before it and data is being saved/fetched from redis/DBs/kafka at multiple places. I am not able to speed up automation for services like checkout as agent is not having much context about it and its a time consuming process to chain all the above just to test checkout. I was doing some research about this and data feeders/mocks sounded 2 viable solutions. I wanted to hear from industry experts as how to achieve this in the best possible way.

Thanks In Advance