Hi Rao
thanks for your hints and pointers so far! Sorry for continue to pester you, but I am afraid, I haven't yet fully understood, how these listeners are supposed to work. What I did so far:
- I added SoapUIExtListeners.jar to the C:\Program Files\SmartBear\SoapUI-5.2.1\bin\ext directory.
- I created a directory C:\Program Files\SmartBear\SoapUI-5.2.1\bin\listeners into which I placed the file custom-listeners.xml.
- I added all the groovy scripts (FilterRequest.groovy, ..., TestSuiteTestStepAdded.groovy) that I found into directory C:\Program Files\SmartBear\SoapUI-5.2.1\bin\scripts
I would have expected that when I now fire a request that I would now find log-entries from these miscellaneous .groovy files in the soapui.log (since most .groovy files contain a log-statement emitting their name), but not so.
What I see instead is:
...
2016-06-01 00:51:15,637 INFO [RequestStepSubmitListener] Dummy script being run, implement required script
2016-06-01 01:04:39,744 INFO [RequestStepSubmitListener] Dummy script being run, implement required script
2016-06-01 01:04:39,747 INFO [RequestFilter] Setting submitContext, request, and log variables
2016-06-01 01:04:39,759 INFO [RequestFilter] Dummy script being run, implement required script
2016-06-01 01:04:39,892 INFO [RequestFilter] Setting submitContext, request, and log variables
2016-06-01 01:04:39,906 INFO [RequestFilter] Dummy script being run, implement required script
...
So: how do I "activate" these listeners? I am obviously missing something here...
Specifically that listener for "Before Submitting Each Request" that you mention: I didn't find any file with that name - I guess you mean "RequestStepBeforeSubmit.groovy"? That's at least the closest match that I found. How do I get that triggered/called?
Regards,
Michael