|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
emailMessageContentFilter failure Illegal new current response - resend with smaller attachment
ErrorMessageUnexpected exception caught: java.lang.RuntimeException Location/home/pezarro/canoo/tim/tests/mail/save.xml (line: 37) Exceptioncom.canoo.webtest.engine.StepExecutionException
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
Re: emailMessageContentFilter failure Illegal new current response - resend with smaller attachmentHi Tim,
It's been a while since I had an e-mail issue, so I can't say for sure if this is the same problem, but looking at your attachment I'm assuming it is. There seems to be a bug in the way Webtest makes email content its current response. It requires that there be a previous response in place. Our fix was to add a dummy invoke as the first line in the test. Have it request an existing page on your server and the e-mail steps should start working. Cheers, John Spann Software Engineer Citrix Online | 6500 Hollister Avenue | Goleta, CA 93117 T: +1 805 690 3489 | M: +1 805 729 0008 john.spann@...<x-msg://29/john.spann@...> http://www.citrixonline.com<http://www.citrixonline.com/> [cid:image001.png@...] Access Your PC From Anywhere: www.gotomypc.com<http://www.gotomypc.com/> Online Meetings Made Easy: www.gotomeeting.com<http://www.gotomeeting.com/> Remote Support Made Easy: www.gotoassist.com<http://www.gotoassist.com/> Web Events Made Easy: www.gotowebinar.com<http://www.gotowebinar.com/> On Oct 1, 2009, at 10:56 AM, Tim Pezarro wrote: == Resend with smaller Attachment == Hello, I am trying to use emailMessageContentFilter Here is my environment: OS Ubuntu 8.10 java version "1.6.0_10" Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing) Created using Canoo Webtest (R_1758). Report created at 30.09.2009 23:36 These are the error messages: Message Unexpected exception caught: java.lang.RuntimeException java.lang.RuntimeException: Illegal new current response Prior to the emailMessageContentFilter I successfully execute several of the email steps. See attached html file. It appears that this is a known issue as described in http://webtest-community.canoo.com/jira/browse/WT-325, however that error listed there is a null pointer exception, not Illegal current response. This is the the thread where I found this information: http://lists.canoo.com/pipermail/webtest/2007q3/008673.html Also, I believe that Karel Soupal reported that it was fixed in subsequent versions (cannot find that thread at this moment), however, http://webtest-community.canoo.com/jira/browse/WT-325 remains open but for WebTest 2.5 and I am running WebTest 3.0. What do I need to do to get emailMessageContentFilter to work? Thanks for your help, Tim Pezarro Manager, Web Services Corporate Marketing tim_pezarro@...<mailto:tim_pezarro@...> Phone: +1-604-415-6044 Cell: +1-604-762-1000 Fax: +1-604-415-6602 PMC-Sierra, Inc. 100-2700 Production Way Burnaby, BC, Canada V5A 4X1 <WebTestReport.html> |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
RE: emailMessageContentFilter failure Illegal new current response - resend with smaller attachmentJohn,
Thanks very much for your reply. I am please to report that your memory is correct. Your fixed worked. For future webtest users here is the entire working webtest: <?xml version="1.0"?> <!DOCTYPE project SYSTEM "../../dtd/Project.dtd"> <project default="SaveMail"> <target name="SaveMail"> <webtest name="SaveMail"> <config haltonerror="false" haltonfailure="false"> <option name="ThrowExceptionOnFailingStatusCode" value="false"/> </config> <steps> <invoke url="${bastion.prefix}"/> <verifyTitle text="PMC-Sierra - Broadband Communications and Storage Chips"/> <emailSetConfig server="${mailserver}" type="${servertype}" password="${mpmc.mail.password}" username="${mypmc.mail.username}" delay="5"/> <emailStoreMessageCount subject="${subject}" property="SubjectMail"/> <verifyProperty description="Test mail if there are 1 to 9 emails with ${subject} in subject" name="SubjectMail" regex="true" text="[1-9]" /> <emailStoreMessageId subject="${subject}" property="message_to_save"/> <echo message="message id is #{message_to_save}" /> <emailStorePartCount messageId="#{message_to_save}" property="part_count" /> <echo message="part_count equals #{part_count}" /> <emailStoreMessageType messageId="#{message_to_save}" property="message_type"/> <echo message="message_type equals #{message_type}" /> <emailStoreHeader headerName="From" messageId="#{message_to_save}" property="message_header"/> <echo message="the message header value is #{message_header}" /> <emailMessageContentFilter messageId="#{message_to_save}"/> <storeRegEx group="1" property="rx.email.txt" text="http\://www\.pmc\-sierra\.com/cgi\-bin/public/extranet/verify\.pl\ ?user=(.{21})"/> <echo message="the value stored is #{rx.email.txt}" /> </steps> </webtest> </target> </project> Cheers, Tim Pezarro Manager, Web Services tim_pezarro@... Phone: +1-604-415-6044 Cell: +1-604-762-1000 Fax: +1-604-415-6602 PMC-Sierra, Inc. 100-2700 Production Way Burnaby, BC, Canada V5A 4X1 > -----Original Message----- > From: John Spann [mailto:John.Spann@...] > Sent: Thursday, October 01, 2009 11:29 AM > To: webtest@...; Tim Pezarro > Subject: Re: [Webtest] emailMessageContentFilter failure > Illegal new current response - resend with smaller attachment > > Hi Tim, > > It's been a while since I had an e-mail issue, so I can't say > for sure if this is the same problem, but looking at your > attachment I'm assuming it is. There seems to be a bug in > the way Webtest makes email content its current response. It > requires that there be a previous response in place. Our fix > was to add a dummy invoke as the first line in the test. > Have it request an existing page on your server and the > e-mail steps should start working. > > Cheers, > > John Spann > > Software Engineer > Citrix Online | 6500 Hollister Avenue | Goleta, CA 93117 > T: +1 805 690 3489 | M: +1 805 729 0008 > john.spann@...<x-msg://29/john.spann@...> > http://www.citrixonline.com<http://www.citrixonline.com/> > > > [cid:image001.png@...] > > > > Access Your PC From Anywhere: > www.gotomypc.com<http://www.gotomypc.com/> > Online Meetings Made Easy: > www.gotomeeting.com<http://www.gotomeeting.com/> > Remote Support Made Easy: > www.gotoassist.com<http://www.gotoassist.com/> > Web Events Made Easy: www.gotowebinar.com<http://www.gotowebinar.com/> > > > > > > On Oct 1, 2009, at 10:56 AM, Tim Pezarro wrote: > > == Resend with smaller Attachment == > > Hello, > > I am trying to use emailMessageContentFilter > > Here is my environment: > > OS Ubuntu 8.10 > > java version "1.6.0_10" > Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java > HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing) > > Created using Canoo Webtest (R_1758). Report created at > 30.09.2009 23:36 > > These are the error messages: > > Message > Unexpected exception caught: java.lang.RuntimeException > > java.lang.RuntimeException: Illegal new current response > > Prior to the emailMessageContentFilter I successfully execute > several of the email steps. See attached html file. > > > It appears that this is a known issue as described in > http://webtest-community.canoo.com/jira/browse/WT-325, > however that error listed there is a null pointer exception, > not Illegal current response. This is the the thread where I > found this information: > http://lists.canoo.com/pipermail/webtest/2007q3/008673.html > > Also, I believe that Karel Soupal reported that it was fixed > in subsequent versions (cannot find that thread at this > moment), however, > http://webtest-community.canoo.com/jira/browse/WT-325 remains > open but for WebTest 2.5 and I am running WebTest 3.0. > > What do I need to do to get emailMessageContentFilter to work? > > Thanks for your help, > > Tim Pezarro > Manager, Web Services > Corporate Marketing > tim_pezarro@...<mailto:tim_pezarro@...> > Phone: +1-604-415-6044 > Cell: +1-604-762-1000 > Fax: +1-604-415-6602 > PMC-Sierra, Inc. > 100-2700 Production Way > Burnaby, BC, Canada > V5A 4X1 > > > > > > > > > <WebTestReport.html> > > WebTest mailing list WebTest@... http://lists.canoo.com/mailman/listinfo/webtest |
| Free embeddable forum powered by Nabble | Forum Help |