We have a requirement in our project where Application has email server that will send email at 100 Emails per minute. We need to listen that emails and send acknowledgement and also keep the counts with us for statistics . Please let me know how can we achieve this . Which Protocols are supported in 8 and newer version so that i can ask for upgrade accordingly
I am using dev test 8.x.
It is recommended to upgraded to a supported version of DevTest since all versions before DevTest 10.0.0 are no longer supported, but here is some documentation links for DevTest 8.0 for sending emails from DevTest:
Thanks Marcy this is for Sending email for which we already have inbuilt step i want to listen emails on service from a mail server . How can i do that ? I believe we need some specific protocol for this .
Can you give a bit more information on your mail server?
Hi mansi it is as Mail sweeper application that will gnerate emails over SMTP and we need to consume that .
To be simple first i want to send email from my client email and want the same to be consumed by service as a prototype for this .
I think so here IMAP ,POP or HTTP protocol can help but not sure How ?
Rahul, have you seen the communities post below
SMTP in LISA
This is for sending email We already have inbuilt step for the same . I want to do the opposite. Listening to emails
Does your System Under Test really have a full “email server” as a component? Or is the System Under Test behaving like an “email client” and it has a dependency onto an email server where it sends its generated email to?
In the case there is actually an email server inside the System Under Test then the solution would be to have some custom scripting (e.g. Execute Script step) inside a testcase. The scripting would use the POP3 protocol to query the email server and “get a new email”. Inside the testcase there would be a loop around this script step to get all the new messages and do the counting. So, not a virtual service because the requirement is not to listen for new emails, the requirement is to poll the email server for new messages. The testcase can then be scheduled within CVS e.g. once every minute, as that makes the counting and reporting of the new emails more controllable. The testcase could insert the count into a database table, or create a report file on disk. A database table would be easier to make aggregate reports.
In the case there is no email server inside the System Under Test (and there is none within the test environment that can be used) then your application is just an email client and it needs to connect to a virtual email server. In that case there is a need for a custom SMTP Transport Protocol Handler that can be run inside a .vsm. We are not aware of such an implementation.
Thanks Danny . You are right i would need a custom SMTP Data protocol for the same . Lisa does not have support for the same . I have posted Idea .
SMTP Handler For Listening To Emails
Apart from this i would like to get emails from email client also as you mentioned using custom script. Do you have the script or can you help me on the same which snippet in need .