Posts

Mock service in SOAPUI

Image
What is mock services?         “Mocking service, is the practice of creating a facsimile environment that works similar to the environment you’re facsimileing”.                  Web Service Mocking is a very useful tool in your testing arsenal. It's the solution to the question "How do I create tests for a Web Service when there is no Web Service to write test against?” Web Service Mocking will come in handy here. It allows you to create a simulation or approximation of the Web Service before the actual Web Service goes live.         Below are the steps for “Mock services”:       Create a new project       Generate mock services         Enter Dummy data in the Mock response         Run MockServices         Generate suite for the project         Run the project    1.     Creating a new Project: Step 1:    Create a new project. Follow the path: File >>New SOAP Project or just click any where in soupUI tool and use ‘Ctrl