Steffen Winkler
Steffen Winkler

Reputation: 2864

Test Outlook VSTO add-in

I wrote an Outlook add-in roughly a year ago. The add-in reacts to new e-mails in specific folders.

Now to get rid of some bugs, I need to let my add-in run out of Visual Studio. Problem is, I can't let it run against the installed Outlook since I don't get 'enough' emails.

Is there a solution for that? Something like a fake-Outlook I could install? Or just something that will generate a bunch of e-mails inside an Outlook account?

Both things would be equally 'okay' for me.

Upvotes: 1

Views: 160

Answers (2)

Steffen Winkler
Steffen Winkler

Reputation: 2864

Okay, just found a probable solution: Apache JMeter.

After starting it one can right-click on 'Workbench', select 'Add' -> 'Sampler' -> 'SMTP Sampler'.

Or, you can add a Thread-Group inside the Testplan and add the same sampler there.

In the sampler you can enter log-in informations, the target and source address, the subject and a messagebody. When you are done configuring everything, just click play.

Upvotes: 1

Alex H
Alex H

Reputation: 1503

You could write a script or Program, which will send these emails automatically.

You can read, how you can send an email here, but basicly you culd use something like this:

for(int i = 0; i < Amount; i++)
{
  smtp.Send(message);
  Thread.sleep(timeToWait);
}

Or you could just simply send yourself emails.

Upvotes: 0

Related Questions