Let soapUI 'Deploy As War' Supports Multi Projects

soapUI的Deploy As War can deploy MockServices as a WAR,but only supports one project, if you want to use multi projects, you need to deploy corresponding multi WARs. Can I make it easier?

After reading MockAsWarServlet source code, I found when init Servlet, it will read projectFile param, and load project file to start MockServices in this project.

So we can make a little change, add a parameter called projectPath, located all of projects file. It will scan all of projects file in that directory at Servlet init step, and start corresponding MockService one by one.

Download jar



web.xml:

0 评论:

My Favorites