Forum Discussion
I don't have a script, but I found information online that said there is an option in the mock response panel where I can set the status code. I can't find that option, does that option not exist? Is a script the only way to do it?
You mentioned that you created a 'fault' which makes me think you might have a SOAP mockservice?
Status Code is not used in SOAP. It will only be an option for mock responses in a REST service.
- briankitt5 years agoOccasional Contributor
Yes, in the mock service, when I create a response, it allows me to create a normal response or a fault response.
My question is, how do I specify which type of fault that is, there are dozens of fault types. According to the documentation, there is supposed to be an option in the fault window to specify which fault type you want. But it's not there. I am current on my install of SOAP UI.
- JHunt5 years agoCommunity Hero
You can only specify the status code for a REST mockservice. See attached. (It should be blue, not green)
- briankitt5 years agoOccasional Contributor
So is there no way to mock a speciifc status code for SOAP? I'm interfacing with a vendor that uses SOAP, and I want to set up negative tests to be sure I handle them properly.
Related Content
Recent Discussions
- 6 days agoruchisingh