Jun 09, 2021
11:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 09, 2021
11:15 PM
Hello,
I know that the API I'm testing with Cypress has a problem when two calls are sent that are too close (in time) to each other.
I would like to write a flow in Cypress where the same call can be made within X milliseconds and the two results are shown.
I would like to play with interval X to see when the API breaks and whether our fix works.
Could someone let me know if there is a way to do this?
Thanks,
R
Solved! Go to Solution.
Labels
- Labels:
-
Help
1 Solution
Jun 25, 2021
06:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 25, 2021
06:30 AM
Hi @RiFa
The simplest way to achieve this would be with the help of a delay. This would make it a blocking operation and in case you need it to be non-blocking, you can use a timer as well. But in both the cases, only one function would be active at a time.
Best regards,
Hari
5 Replies