-
-
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
Assign Variable in Request Body (Canned JSON File) #646
Comments
Hello Mario. This can be done like you propose: "Body": {
"Matcher": {
"Name": "ExactMatcher",
"PatternAsFile": "requestbody.xml"
}
} Another option would be: "Body": {
"Matcher": {
"Name": "ExactMatcher",
"Pattern": {
"WithFile": "requestbody.xml",
"FromFile": "requestbody.xml",
"UsingFile": "requestbody.xml",
}
}
} |
Hello @devmariodiaz, I think that |
Thanks, Stef for your dedicated time. I'll test this great solution |
(Note that PatternAsFile is not yet implemented, so you cannot test that) |
I got it 👍 |
Hello @devmariodiaz , I've created a preview version For info on preview versions ; see https:/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions |
Hello Stef, I was testing this solution and it's working fine, would you please incorporate this feature in the next version. Thanks a lot for your time. |
Hello Mario, |
Hello Stef,
I hope everything is doing well.
Could you please let me know if there is a way to replace "Pattern" parameter in post request with a filename i.e "request.xml" or variable?
I really appreciate it
i.e "PatternAsFile": "requestbody.xml" such as Request Templating.
SOAPconfiguration.json.zip
The text was updated successfully, but these errors were encountered: