Thanks for letting us know.
The passive scanner might take some time to finish scanning all the
messages, that's why the delay makes a difference. Note though that the
recommended way is to check if the passive scanner no longer has any
messages in the queue (i.e. poll `zap.pscan.recordsToScan()` instead of
using a hardcoded sleep).
Best regards.
> I have added a "*Thread.sleep(5000)*" before calling "
> *api.core.htmlreport()*".