If the option "Email.DisablePOP=true" is activated and a test does "GetEmail", an appropriate error message should be displayed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TestPlan |
Confirmed
|
Low
|
Unassigned |
Bug Description
When the command line includes the option "Email.
CHECKPOINT-FAIL testplan.
Please throw a correct error message like "EmailUtil is not running due to the following option <Email.
Many thanks!
#######
Here is the corresponding state log:
gnome@auto1:
00000001-00 SEQUENCE Creating a group
00000002-01 SEQUENCE Creating a user
00000003-02 NOTICE Starting a new browser (0:0:0:0:1) com.thoughtwork
00000004-02 GOTOURL http://
... ... ... ... ... ... ... ... ...
00000015-02 NOTICE Registered: <email address hidden>
00000016-02 GETEMAIL <email address hidden>
Waiting for email to \<email address hidden>\E
00000017-02 CHECKPOINT-FAIL testplan.
00000018-02 UNIT-FAIL unit.email.GetEmail
00000019-02 UNIT-FAIL unit.email.
00000020-02 UNIT-FAIL unit.Register
00000021-02 UNIT-FAIL seq.scriptinter
00000022-01 UNIT-FAIL unit.web.CreateUser
00000023-00 UNIT-FAIL unit.web.
00000024-00 UNIT-FAIL seq.issue.Issue1849
Test Execution Trace:
Run: seq.issue.Issue1849 Fail
!!! System.Failed flag set
!!! Failure Count: 1
Finished.
The motivation is clear, but the implementation is tricky for a few reasons:
1. The email getting can be stopped during running and there still be emails available for GetEmail
2. There is an alternate path (top POP3) to feed emails into the system (an existing test-case would break with this change)
3. EmailUtil is a utility class that can't report extended information when an email is not present