Cause Delay in server responding #345

Closed
opened 2025-12-29 15:21:25 +01:00 by adam · 5 comments
Owner

Originally created by @jthomas2021 on GitHub (Mar 29, 2021).

How can I make the server delay in responding so that the application calling my mockservice will timeout.

Originally created by @jthomas2021 on GitHub (Mar 29, 2021). How can I make the server delay in responding so that the application calling my mockservice will timeout.
adam added the question label 2025-12-29 15:21:25 +01:00
adam closed this issue 2025-12-29 15:21:26 +01:00
Author
Owner

@StefH commented on GitHub (Mar 29, 2021):

Hello @jthomas2021,

Does this help?
https://github.com/WireMock-Net/WireMock.Net/wiki/Stubbing#simulating-delays

@StefH commented on GitHub (Mar 29, 2021): Hello @jthomas2021, Does this help? https://github.com/WireMock-Net/WireMock.Net/wiki/Stubbing#simulating-delays
Author
Owner

@jthomas2021 commented on GitHub (Mar 29, 2021):

Hi @StefH ,

Is it possible to add the delay in the json stubs?

@jthomas2021 commented on GitHub (Mar 29, 2021): Hi @StefH , Is it possible to add the delay in the json stubs?
Author
Owner

@StefH commented on GitHub (Mar 29, 2021):

Sure.

See example: https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#get----__adminmappings

@StefH commented on GitHub (Mar 29, 2021): Sure. See example: https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#get----__adminmappings
Author
Owner

@StefH commented on GitHub (Mar 30, 2021):

See also Swagger : https://app.swaggerhub.com/apis/StefHeyenrath/WireMock/1.4.7

 Delay:
        type: integer
        description: Gets or sets the delay in milliseconds.
        format: int32
@StefH commented on GitHub (Mar 30, 2021): See also Swagger : https://app.swaggerhub.com/apis/StefHeyenrath/WireMock/1.4.7 ``` Delay: type: integer description: Gets or sets the delay in milliseconds. format: int32 ````
Author
Owner

@jthomas2021 commented on GitHub (Mar 31, 2021):

Thank you @StefH .This worked.

@jthomas2021 commented on GitHub (Mar 31, 2021): Thank you @StefH .This worked.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net-wiremock#345