pepo
17 years agoOccasional Contributor
MockService Options – Docroot option
I want to mock http/REST request in SoapUI 2.5.
In previous forum topics you mentioned possibility to do static mocking by Docroot option.
I found only next description in documentation:
“Docroot - path to a local folder that should be used to serve files for GET requests to the MockService path”
How does it work?
Should these files in Docroot folder use any special name convention?
I created file with static response in folder c:\SoapUIResponses.
I named this file as GET part of REST request.
I set c:\SoapUIResponses but I got next error when I called this mock from REST service test:
...
Server com.eviware.soapui.impl.wsdl.mock.DispatchException: com.eviware.soapui.impl.wsdl.mock.DispatchException: java.io.FileNotFoundException: C:\SoapUIResponse (Access is denied)
...
In previous forum topics you mentioned possibility to do static mocking by Docroot option.
I found only next description in documentation:
“Docroot - path to a local folder that should be used to serve files for GET requests to the MockService path”
How does it work?
Should these files in Docroot folder use any special name convention?
I created file with static response in folder c:\SoapUIResponses.
I named this file as GET part of REST request.
I set c:\SoapUIResponses but I got next error when I called this mock from REST service test:
...
Server com.eviware.soapui.impl.wsdl.mock.DispatchException: com.eviware.soapui.impl.wsdl.mock.DispatchException: java.io.FileNotFoundException: C:\SoapUIResponse (Access is denied)
...