Possibilities of stress testing in Cypress

Viewed 20

Might I know what are possibilities of testing in Cypress? If one want to test visiting or creating order for few hundred/thousands of times? I would expect there would be some limitations to address misusing of DDoS attacks, but Cypress as tool might offer some safe and valid solution in this kind of manner.

Thank you for answers!

1 Answers

Cypress is not the right tool for this. It doesn't handle concurrency or have the type of reporting that a dedicated tool for this would.

I encourage you to look into load testing tools like jMeter (though there are others). These tools will track the timings and compile a report of min/max/mean times as well as any errors.

Ideally you'd leverage something like AWS or Azure for a multi-source load test to get a good idea of how a service may perform under load. You would use this to test the APIs, and not the UI/interface since that load is usually handled via client. (though if you have an SSR setup, you might need to test the interface)

Related