[Webtest] emailMessageContentFilter does not return message content as the current response

emptin3ss@gmail.com emptin3ss@gmail.com" <emptin3ss@gmail.com
Thu, 02 Nov 2006 01:25:49 +0200


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