Hi,
I am attaching the email message from the local email server as it is
stored there and which does not work (pop46386.jmsg) ... and also the xml
with the test definition that I used (mail.xml). What happens is that the
email file sits in the pop3 inbox directory and I am able to retrieve
various information about the email from the pop3 server without problems
(you can see from the text xml the steps) but once I do want to retrieve
the content of the message via emailMessageContentFilter I get the error
mentioned ... I also attach the generated html result file
(phonyx_result.html) ..
I also am able to retrieve the message from the email server via mozilla
or opera email clients and even though it is quite proprietary java email
server, it does the job ..
but what is important I have tried also with my internet provider email
account which is not proprietary for sure and using the same .xml test
file (modified only the login info) and I have got exactly the same
results ...
Thanks,
I was Dne Tue, 14 Aug 2007 14:37:03 +0200 Michael Habbert
<[EMAIL PROTECTED]> napsal/-a:
Hi Karel Soupal,
the source-code indicates, that you have not received any response
------------
Checker.assertFalse(current == null || current.getPage() == null,
"Illegal new current response");
------------
so whats about your webtest? you did work with some other email-tasks?
Hard to say without additional informations ...
yours
Michael Habbert
Karel Soupal wrote:
Hello,
I was trying to use the emailing possibilities of the webtest tool,
but I am getting an 'Illegal new current response' error everytime I
try to use the emailMessageContentFilter step ... please see attached
the output from the webtest run.
I have tried all other commands from the Email steps group and except
the emailMessageStructureFilter (which is giving me the same behavior
as above) all other steps work in my env ...
[...]
--
Karel Soupal
http://www.ework.cz
Software Testing Services and Solutions
pop46368.jmsg
Description: Binary data
<project name="SimpleTest" basedir="." default="main">
<taskdef file="c:\webtest\webtestTaskdefs.properties">
<classpath>
<fileset dir="c:\webtest" includes="**\lib\*.jar" />
</classpath>
</taskdef>
<target name="main">
<webtest name="phonyx test">
<config host="192.168.233.129" port="80" protocol="http" basepath="" haltonerror="no" haltonfailure="no" summary="true" resultpath="_testresults" resultfile="phonyx_result.xml" saveresponse="true" showhtmlparseroutput="false" />
<steps>
<emailSetConfig server="192.168.233.1" type="pop3" password="neco1" username="[EMAIL PROTECTED]" delay="5"/>
<emailStoreMessageId subject="tohle by melo projit" property="midex"/>
<emailStorePartCount property="prop1" messageId="#{midex}" />
<verifyProperty name="prop1" text="0"/>
<emailStoreMessageType property="type1" messageId="#{midex}"/>
<verifyProperty name="type1" text="Simple"/>
<emailStoreHeader headerName="Content-Type" property="ct2" messageId="#{midex}"/>
<verifyProperty name="ct2" text="text/plain" regex="true"/>
<emailStoreMessageCount subject="tohle by melo projit" property="emailcount"/>
<verifyProperty name="emailcount" text="1"/>
<emailMessageContentFilter save="plain" messageId="#{midex}" />
<emailMessageStructureFilter messageId="#{midex}"/>
<emailDeleteMessage messageId="#{midex}" />
</steps>
</webtest>
</target>
</project>
Title: SimpleTest - Test Result Overview
Result Summary
| Results | # | % | Graph |
![ok]() | 0 | 0 | |
![x]() | 1 | 100 |
|
| Sum | 1 | 100 | |
| Groups | # | % | Graph |
![ok]() | 10 | 77 |
|
![x]() | 1 | 8 |
|
![o]() | 2 | 15 |
|
| Sum | 13 | 100 | |
|
Server Roundtrip Timing Profile
| Secs | # | % | Histogram |
| Sum | 39 | 100 | |
| Avg |
|
| 790 ms |
| 0 - 1 | 7 | 18 |
|
| 1 - 3 | 0 | 0 | |
| 3 - 5 | 6 | 15 |
|
| 5 - 10 | 6 | 15 |
|
| 10 - 30 | 0 | 0 | |
| > 30 | 0 | 0 | |
|
Test started at Tue Aug 14 15:06:45 CEST 2007, lasting 00:00:31 (30805 ms).
Based on http://192.168.233.129//
using test L:\YES_svn\ework\TheTestRoboti\macura_phonyx\macura_mail.xml
Test Parameters
| port | 80 |
| summary | yes |
| protocol | http |
| host | 192.168.233.129 |
| resultpath | L:\YES_svn\ework\TheTestRoboti\macura_phonyx\_testresults |
| saveprefix | response |
| basepath | |
| resultfile | phonyx_result.xml |
| haltonerror | no |
| saveresponse | yes |
| haltonfailure | no |
| timeout | 300 |
| showhtmlparseroutput | no |
Error Message: Illegal new current response
Location: (line: )
Exception: java.lang.RuntimeException
Stacktrace
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:311)
at com.canoo.webtest.plugins.emailtest.AbstractEmailFilter.performOperation(AbstractEmailFilter.java:38)
at com.canoo.webtest.plugins.emailtest.AbstractMessageOperationStep.doExecute(AbstractMessageOperationStep.java:53)
at com.canoo.webtest.steps.Step.execute(Step.java:104)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
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:104)
at org.apache.tools.ant.Task.perform(Task.java:364)
at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:164)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
| # | Result | Name | Parameter | Duration |
|
1 | ![ok]() | emailSetConfig
|
| delay | 5 |
| password | kokot1 |
| server | 192.168.233.1 |
| type | pop3 |
| username | [EMAIL PROTECTED] |
| 10 |
|
2 | ![ok]() | emailStoreMessageId
|
| property | midex |
| subject | tohle by melo projit |
| 00:00:05 |
|
3 | ![ok]() | emailStorePartCount
|
| 00:00:05 |
|
4 | ![ok]() | verifyProperty
|
| 0 |
|
5 | ![ok]() | emailStoreMessageType
|
| 00:00:05 |
|
6 | ![ok]() | verifyProperty
|
| 0 |
|
7 | ![ok]() | emailStoreHeader
|
| headerName | Content-Type |
| messageId | 1 |
| property | ct2 |
| 00:00:05 |
|
8 | ![ok]() | verifyProperty
|
| name | ct2 |
| regex | true |
| text | text/plain |
| 10 |
|
9 | ![ok]() | emailStoreMessageCount
|
| property | emailcount |
| subject | tohle by melo projit |
| 00:00:05 |
|
10 | ![ok]() | verifyProperty
|
| 0 |
|
11 | ![x]()
Error | emailMessageContentFilter
|
| 00:00:05 |
|
12 | ![o]() | emailMessageStructureFilter
|
|
|
|
13 | ![o]() | emailDeleteMessage
|
|
|
Back to Test Report Overview