-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Record all request even when identical + Expect request sequences when replaying #632
Comments
Would Scenarios-and-States be a solution for your issue? |
Hello. I can achieve part of what I want with scenarios and states as I've mentioned but there are not very convenient.
|
What you seek is a playback functionality. So maybe adding a new property like However I cannot see yet how to mix this functionality with the current static mapping json file support. |
Yes, this PlaybackOrder property will useful for I don't understand the issue with the json file support. I am not familiar with the code. |
For me it's easier to check the PlaybackOrder (nullable int) property in case multiple matches are found. One thing remains is that I need to keep track of which match was returned last time. And I guess there should also be a way to reset this back to the first option. |
Can you leverage the existing scenarios and state feature for that ? You could create a sort of scenario generator that will :
But maybe that appending that "managed" scenario will be confusing when existing along regular "unmanaged" ones. |
Another suggested change, more trivial I think : An option to record all requests even the identical ones in a "static" mapping. Then I could leverage the scenarios and states feature to achieve this |
I have a case where I want to test my actions on a Rest API I do not have control on.
This API is stateful so for example this sequence is possible :
With the static mapping, Request A will always be followed by response X.
I would like to :
For now the only way those were :
Last note : It seems that MockServer would be able to do all of this.
Unfortunately is it decicated to Java and while it exposes a RestAPI, the most up to date .NET client seem to be abandonned.
I also prefer running the server in the same process as the tests like WireMock.Net allows.
The text was updated successfully, but these errors were encountered: