If the option "Email.DisablePOP=true" is activated and a test does "GetEmail", an appropriate error message should be displayed

Bug #536616 reported by Tatjana
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
TestPlan
Confirmed
Low
Unassigned

Bug Description

When the command line includes the option "Email.DisablePOP=true" and an automated test tries to retrieve an email, there is no correct error message why the test failed, just a standard message:

CHECKPOINT-FAIL testplan.auto.unit.email.GetEmail:getEmail for <email address hidden>

Please throw a correct error message like "EmailUtil is not running due to the following option <Email.DisablePOP=true>. You need to unset this option to get EmalUtil work" or something like that.

Many thanks!

#########################################
Here is the corresponding state log:

gnome@auto1:~/ecmtest$ cd $HOME/ecmtest; cust=cust416; logdir=$(cd /tmp/$USER/user/$cust; pwd -P); mkdir -p $logdir; bin/testplan.sh seq.issue.Issue1849 "+$(cd conf;pwd -P)/$cust.ptest" "Debug.Web=$logdir/web.txt" "Debug.Email=$logdir/email.txt" "System.Recorder.MetricFile=$logdir/metric.csv" "System.Recorder.CheckpointFile=$logdir/checkpoint.csv" "System.Recorder.CheckpointException=$logdir/checkpoint_ex.txt" "System.Recorder.WarningFile=$logdir/warning.txt" "System.LogDir=$logdir" "System.ShowMainLog=true" "Web.SessionType=Selenium" Email.DisablePOP=true;

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.thoughtworks.selenium.DefaultSelenium@1884174
00000004-02 GOTOURL http://cust416.com/index.jsp
... ... ... ... ... ... ... ... ...
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.auto.unit.email.GetEmail:getEmail for \<email address hidden>\E
00000018-02 UNIT-FAIL unit.email.GetEmail
00000019-02 UNIT-FAIL unit.email.RetrieveRegistration
00000020-02 UNIT-FAIL unit.Register
00000021-02 UNIT-FAIL seq.scriptinterface.Invoke
00000022-01 UNIT-FAIL unit.web.CreateUser
00000023-00 UNIT-FAIL unit.web.group.CreateGroup
00000024-00 UNIT-FAIL seq.issue.Issue1849
Test Execution Trace:
        Run: seq.issue.Issue1849 Fail
!!! System.Failed flag set
!!! Failure Count: 1
Finished.

Revision history for this message
edA-qa (eda-qa) wrote :

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

Changed in testplan:
importance: Undecided → Low
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.