Hi,

I'd like to ask for input regarding the following testing solution I'm
working on

  https://issues.apache.org/jira/browse/SLING-6949

When working with email-enabled applications it is sometimes desirable
to interact with the emails send by the applications, either by
verifying the contents of the emails or just validating that a certain
email is sent.

A good solution for this is Wiser, which works quite well.

One scenario where this does not apply is when the application under
test is running as a container, and it cannot access the host
application to deliver emails to the Wiser instance.

To have an unitary approach I propose that we create an OSGi bundle
which wraps Wiser and starts in the Sling application. The messages
received by Wiser can then be read using an HTTP API.

I've committed an initial working prototype at

  https://github.com/apache/sling/tree/trunk/testing/email

I am considering adding functionality to clear the email messages and
also adding client-side support in the org.apache.sling.testing.clients
bundle ( not yet decided for the latter ).

Your thoughts are more than welcome on the subject.

Thanks,

Robert

Reply via email to