Sunday 6 November 2016

SoapUI : Start/Stop of mock services

When you are testing an application which has various interfaces with different application, you will need many mocks to execute your unit tests. With multiple mocks it is also difficult to manage them. Think of a scenario where the application has interface with 20 or perhaps even more application/web services, and in such cases that many number of mock services. In these kind of scenarios starting and stopping all the mocks is a time taking activity. 

So, why shouldn't we automate them :)

Starting mock service

Below groovy script will help you start all the mock services in the current workspace and minimize them all.



Stopping mock service

Below groovy script will stop all the open mock services and close all the open windows under the current soapUI workspace.
 

No comments:

Post a Comment