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

Attachment: 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

Test Scenario Overview (00:00:31)

NoResultNameRun on# StepsDuration%GraphFailing step
1xphonyx testTue Aug 14 15:06:45 CEST 200710 / 1300:00:31100
emailMessageContentFilter


Result Summary

Results#%Graph
ok00
x1100
Sum 1 100 
Groups#%Graph
ok1077
x18
o215
Sum 13 100 

Server Roundtrip Timing Profile

Secs#%Histogram
Sum 39 100 
Avg     790 ms
0 - 1718
1 - 300
3 - 5615
5 - 10615
10 - 3000
> 3000

x phonyx test

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
port80
summaryyes
protocolhttp
host192.168.233.129
resultpathL:\YES_svn\ework\TheTestRoboti\macura_phonyx\_testresults
saveprefixresponse
basepath
resultfilephonyx_result.xml
haltonerrorno
saveresponseyes
haltonfailureno
timeout300
showhtmlparseroutputno
Error Message: Illegal new current response
Location: (line: )
Exception: java.lang.RuntimeException
Show 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)
#ResultNameParameterDuration
  1okemailSetConfig
delay5
passwordkokot1
server192.168.233.1
typepop3
username[EMAIL PROTECTED]
10
  2okemailStoreMessageId
propertymidex
subjecttohle by melo projit
00:00:05
  3okemailStorePartCount
messageId1
propertyprop1
00:00:05
  4okverifyProperty
nameprop1
text0
0
  5okemailStoreMessageType
messageId1
propertytype1
00:00:05
  6okverifyProperty
nametype1
textSimple
0
  7okemailStoreHeader
headerNameContent-Type
messageId1
propertyct2
00:00:05
  8okverifyProperty
namect2
regextrue
texttext/plain
10
  9okemailStoreMessageCount
propertyemailcount
subjecttohle by melo projit
00:00:05
  10okverifyProperty
nameemailcount
text1
0
  11x
Error
emailMessageContentFilter
messageId1
saveplain
00:00:05
  12oemailMessageStructureFilter
messageId#{midex}
 
  13oemailDeleteMessage
messageId#{midex}
 

Back to Test Report Overview

Reply via email to