Tuesday, May 8, 2012

SoapUI start mocks on project load

I wanted to find where you can set all your mocks to load on start up of your project:

1) Double click on your project
2) Click on the Load Script tab
3) Place the below script in the Script section.

Press the play button to test





 The Script
for( ms in project.mockServiceList )
{
    // open window
    def dp = com.eviware.soapui.support.UISupport.showDesktopPanel( ms )

    // start mockservice
    ms.start()

    // minimize window
    com.eviware.soapui.SoapUI.desktop.minimize( dp )
}


Information found at soap ui forum:
http://www.soapui.org/forum/viewtopic.php?f=5&t=1138

No comments:

Post a Comment