3 messages in com.canoo.lists.webtestRe: [Webtest] emailMessageContentFilt...
FromSent OnAttachments
empt...@gmail.com01 Nov 2006 15:25 
empt...@gmail.com02 Nov 2006 03:23 
Paul King02 Nov 2006 04:00 
Subject:Re: [Webtest] emailMessageContentFilter does not return message content as the current response
From:Paul King (pau@asert.com.au)
Date:11/02/2006 04:00:26 AM
List:com.canoo.lists.webtest

Just a warning: I haven't tested the email filter steps since the 2.1 release. Some of the post 2.1 plumbing changes may have impacted these steps. There are unit tests for all the steps but no acceptance tests in the test suite - we just need to include a mail server in the continuous integration environment, e.g. JES, or include a simulator like wiser - though its not quite what we need at the moment.

I will get around to looking at this soon, but probably not for a week or two. Do you have a 2.1 version of WebTest handy? It might pay to try against that. If that is also broken, you may have a configuration issue or found a bug we don't know about.

Cheers, Paul.

empt@gmail.com wrote:

Hi,

It looks like emailMessageContentFilter does not return message content as the current response, as it should.

I've tried to execute that test:

<!-- ... -->

<emailStoreMessageId description="Get message" subject="test" property="mid" />

<emailMessageContentFilter description="Check message" messageId="#{mid}" saveResponse="false" />

<verifyText description="We should see &quot;Testnig...&quot; string" text="Testing..." />

<!-- ... -->

As a result I've got:

EmailTest:

BUILD FAILED D:\www\webtests\resources\webtestsRunner.xml:43: The following error occurred while executing this line: D:\www\webtests\resources\webtestsRunner.xml:86: The following error occurred while executing this line: D:\www\tests\testsuite\emailtest.xml:86: Canoo Webtest: R_1428. Test failed. Exception raised: com.canoo.webtest.engine.StepExecutionException: Unexpected exception caught: java.lang.NullPointerException, Step: VerifyText at D:\www\tests\testsuite\email_test.xml:12: with (taskName="verifyText")com.canoo.webtest.engine.StepExecutionException: Unexpected exception caught: java.lang.NullPointerException, Step: VerifyText at D:\www\tests\testsuite\email_test.xml:12: with (taskName="verifyText")

...

Using

<emailMessageContentFilter description="Check message" messageId="#{mid}" />

instead of

<emailMessageContentFilter description="Check message" messageId="#{mid}" saveResponse="false" />

saves the message correct, but still no message text as the current response after emailMessageContentFilter step.

Any ideas on how to make it work?

Thanks in advance!

-roman