TestPlan GetEmail
Document

GetEmail

by Group Public on Wednesday August 05 2009 @ 14:50:00 (1/1 Points)

API ↪Reference ✑ Reply ✓ Stick It ✗ Ditch It ⚐ Tag It

GetEmail is a function that allows retrieval of a single email.

Also see SendEmail for how to send an email.

Syntax

The typical syntax is to just call GetEmail with the email address of interest. This must be properly configured.

set %MyAddress% %Var:ClientEmail%
SendEmail with
  %From% %MyAddress%
  %To% notreally@yahoo.com
  %Subject% How's it going
  %Body% Just fine I hope. %Tokens:{Email}%
end

GetEmail %MyAddress%

Options

Email

The email may be a regex expression instead of a specific email address. This means any matching email, but just one, will be retrieved.

Timeout

If not specified the global timeout Email.Loop.Timeout will be used. Otherwise specify a Duration for how long to wait for the email.

HeaderFilter

If specified the email must match both this filter as well as the email address. The format is Header:regex. The regex must match the header in its entirety (no partial matches).

This can also be combined with a match-anything regex to collect emails by a field other than email.

GetEmail /.*/ with
  %HeaderFilter% X-CustomField:.*MARK.*
end
© 2008-2010 edA-qa mort-ora-y
Using Persephone and TestPlan
Tag: