[Webtest] Failling to check an email

Florent Blondeau Florent Blondeau <fblondeau@pingwy.com>
Mon, 12 Nov 2007 18:31:35 +0100


Thanxs for your response,

just after writing my mail, i downloaded mail archive and made a search 
for discussion on email issues .

I found yours, and I decided to get the R_1634 build to see if things 
would behave better.
But my problem seems to be the same, though the "stack trace" is not 
exactly the same,
when I use emailMessageContentFilter() :

DEBUG (com.canoo.webtest.steps.Step) - <<<< Successful Step: 
emailStoreMessageId (2/3)
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - 
fPreviousCurrentResponse: null
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - 
fContext.getCurrentResponse(): null
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - 
isWorthSaving: false, false
DEBUG (com.canoo.webtest.ant.TestStepSequence) - Executing step 
emailMessageContentFilter org.apache.tools.ant.UnknownElement@3e0ebb
DEBUG (com.canoo.webtest.ant.WebtestPropertyHelper) - Notifying 
listeners of properties expansion: #{email01} -> 6
DEBUG (com.canoo.webtest.ant.WebtestPropertyHelper) - Notifying 
listeners of properties expansion: #{email01} -> 6
INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: 
emailMessageContentFilter (3/3)
DEBUG (com.canoo.webtest.plugins.emailtest.EmailHelper) - Login to Email 
server successful, 6 message(s) on server
DEBUG (com.canoo.webtest.plugins.emailtest.EmailHelper) - closing INBOX...
DEBUG (com.canoo.webtest.steps.Step) - Handling exception 
java.lang.RuntimeException: Illegal new current response
java.lang.RuntimeException: Illegal new current response
at com.canoo.webtest.util.Checker.assertTrue(Checker.java:17)
at com.canoo.webtest.util.Checker.assertFalse(Checker.java:12)
at 
com.canoo.webtest.engine.WebClientContext.saveResponseAsCurrent(WebClientContext.java:238)
at 
com.canoo.webtest.engine.WebClientContext.saveResponseAsCurrent(WebClientContext.java:228)
at com.canoo.webtest.engine.Context.saveResponseAsCurrent(Context.java:273)
at 
com.canoo.webtest.plugins.emailtest.AbstractEmailFilter.performOperation(AbstractEmailFilter.java:32)
at 
com.canoo.webtest.plugins.emailtest.AbstractMessageOperationStep.doExecute(AbstractMessageOperationStep.java:53)
at com.canoo.webtest.steps.Step.execute(Step.java:100)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at 
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
at 
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
at com.canoo.webtest.steps.Step.execute(Step.java:100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:197)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at groovy.util.AntBuilder.nodeCompleted(AntBuilder.java:184)
at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:184)
at groovy.util.AntBuilder.doInvokeMethod(AntBuilder.java:145)
at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:95)
at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:136)
at 
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:111)
at 
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:187)
at com.pingwy.groovy.tests.Webtest.main(Webtest.groovy:32)
DEBUG (com.canoo.webtest.steps.Step) - Completed Step: 
emailMessageContentFilter (3/3)
DEBUG (com.canoo.webtest.steps.Step) - Step didn't produce results, no 
need to notifying listeners
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - 
fPreviousCurrentResponse: null
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - 
fContext.getCurrentResponse(): null
DEBUG (com.canoo.webtest.reporting.StepExecutionListener) - 
isWorthSaving: false, false
INFO (com.canoo.webtest.engine.WebClientContext) - Responses restored



Do you know how to see the retreived message (which variable to dump) 
after the step and before the exception ?

Thanks again for your response

Florent Blondeau


Karel Soupal a écrit :
> Hi,
>
> this seems to be an issue of the old build ... R_1551 ... you are 
> using ... I experienced this as well but with R_1620 this disappeared ...
>
> more here: http://webtest-community.canoo.com/jira/browse/WT-325
>
> Dne Mon, 12 Nov 2007 15:32:13 +0100 Florent Blondeau 
> <fblondeau@pingwy.com> napsal/-a:
>
>> R_1551
>
>
>


-- 
Pingwy
27, rue des arènes
49100 Angers