Forum Discussion

M_McDonald's avatar
M_McDonald
Super Contributor
15 years ago

SoapUI 3.0 Mock Service - OnRequest and AfterRequest scripts don't execute

The OnRequest and AfterRequest scripts are not getting executed in a MockService in SoapUI 3.0.

To demonstrate:
1) Create a Mock Service
2) Add log.info() to Start, Stop, OnRequest and AfterRequest scripts
3) Use the "Run this script" button in the editor to attempt to execute each script.
4) Start and Stop scripts run.
5) OnRequest and AfterRequest do not respond.

These scripts are also not executed when called by an HTTP step or from a browser.

Using latest build (Jul 23)