Interop-MailSim icon indicating copy to clipboard operation
Interop-MailSim copied to clipboard

duplicated random attachments

Open William-Rohm opened this issue 10 years ago • 1 comments

  1. Create a set of attachment files, say Att1.txt through Att5.txt
  2. Create a MailSend operation with a RandomAttachments value of 5
  3. Create a sequence that calls that op 10 times

All the sent messages will have the correct number (5) of attachments. However, some of the messages will have duplicated attachments, where a given attachment file is included more than once.

William-Rohm avatar Aug 05 '15 19:08 William-Rohm

Random attachments are selected by picking a "random" number from the specified range (in this case [0 - 4]). With a small range it's very likely the same number will be selected more than once.

If it's important for all attachments to be unique, better alternative might be an explicit set of attachments in the operation.

v-am avatar Aug 14 '15 02:08 v-am