Performance Testing using E2E Tests
We can do the following, every time we run the E2E tests against any instance: Pre-requisite: Seed the instances with the performance specific test data.
- Use Prometheus APIs to start recording any incoming request's metrics.(ex: API response time)
- Start E2E Tests
- Once E2E Tests are complete, stop recording the metrics in Prometheus.
- Assert the current values with the previous baseline values and if it deviates from the accepted delta - trigger an alert.
This needs to be run against the test bed (or staging to start with).