Hi Dierk, Hi all, The problem is solved. The problematic HTML line was:
<img src="/cms/jcaptcha" /> As WebTest does not load images, the captcha servlet did not get called. I have now added a separate invoke step for the captcha servlet, and the test works fine now. Thanks a lot for your hints :-) Mit freundlichen Grüßen / Best regards Robert Spielmann IT Consultant -- codecentric GmbH Grünewalder Str. 29-31 42657 Solingen Telefon +49 (212) 2494-322 Fax +49 (212) 2494-334 Mobil +49 (151) 14705709 E-Mail [EMAIL PROTECTED] Internet www.codecentric.de <http://www.codecentric.de/> Geschäftsführer: Peter Gierse, Mirko Novakovic und Rainer Vehns Sitz der Gesellschaft: Solingen Registergericht: Amtsgericht Wuppertal, HRB 19214 > -----Ursprüngliche Nachricht----- > Von: Dierk Koenig [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 30. August 2007 19:51 > An: [email protected]; Robert Spielmann > Betreff: RE: [Webtest] Testing a form with captcha results in > server error 500 > > yes, see "sleep" :-) > > Dierk > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of Robert Spielmann > > Sent: Donnerstag, 30. August 2007 18:14 > > To: [email protected] > > Subject: AW: [Webtest] Testing a form with captcha results in server > > error 500 > > > > > > Hi Dierk, > > > > I've debugged into the captcha servlet. There is only one > > session; session IDs on the registration form jsp and in the > > captcha check jsp tag are the same. At the moment, I simply > > suspect that WebTest goes ahead too quickly - the captcha might > > not be fully initialized and stored when the form is submitted. > > Can I delay the clickButton step in any way? > > > > Mit freundlichen Grüßen / Best regards > > > > Robert Spielmann > > IT Consultant > > > > -- > > > > codecentric GmbH > > Grünewalder Str. 29-31 > > 42657 Solingen > > > > Telefon +49 (212) 2494-322 > > Fax +49 (212) 2494-334 > > Mobil +49 (151) 14705709 > > > > E-Mail [EMAIL PROTECTED] > > > > Internet www.codecentric.de <http://www.codecentric.de/> > > > > Geschäftsführer: Peter Gierse, Mirko Novakovic und Rainer Vehns > > Sitz der Gesellschaft: Solingen > > > > Registergericht: Amtsgericht Wuppertal, HRB 19214 > > > > > > > > > -----Ursprüngliche Nachricht----- > > > Von: Dierk Koenig [mailto:[EMAIL PROTECTED] > > > Gesendet: Donnerstag, 30. August 2007 13:32 > > > An: [email protected]; Robert Spielmann > > > Betreff: RE: [Webtest] Testing a form with captcha results in > > > server error 500 > > > > > > Hi Robert, > > > > > > welcome to Canoo WebTest. > > > > > > Your tests probably uses multiple <webtest></webtest> scopes and > > > therefore multiple sessions. > > > If that is not the case, please post the respective test > sources, the > > > minimal Html in use and maybe even the Servlet source, such > > > that we have > > > enough info for helping. > > > > > > happy testing > > > Dierk > > > > > > > -----Original Message----- > > > > From: [EMAIL PROTECTED] > > > > [mailto:[EMAIL PROTECTED] Behalf Of > Robert Spielmann > > > > Sent: Donnerstag, 30. August 2007 10:59 > > > > To: [email protected] > > > > Subject: [Webtest] Testing a form with captcha results in > > > server error > > > > 500 > > > > > > > > > > > > Hi all, > > > > > > > > I've successfully created a bunch of view tests for the > > > > application we are currently developing. Unfortunately, I'm now > > > > facing a problem for which I haven't been able to find a > > > > solution. I want to test the behaviour of a registration form > > > > which contains a captcha (JCaptcha, jcaptcha.sf.net). As soon as > > > > I send off the form, I get a server error 500. The captcha > > > > servlet is unable to validate the captcha string because it > > > > cannot find the captcha associated with the current captcha ID. > > > > This seems to be some kind of session or general > servlet problem, > > > > and I'm completely stumped right now. Anyone else around who has > > > > had such problems? Any pointers are greatly appreciated. > > > > > > > > Mit freundlichen Grüßen / Best regards > > > > > > > > Robert Spielmann > > > > IT Consultant > > > > > > > > -- > > > > > > > > codecentric GmbH > > > > Grünewalder Str. 29-31 > > > > 42657 Solingen > > > > > > > > Telefon +49 (212) 2494-322 > > > > Fax +49 (212) 2494-334 > > > > Mobil +49 (151) 14705709 > > > > > > > > E-Mail [EMAIL PROTECTED] > > > > > > > > Internet www.codecentric.de <http://www.codecentric.de/> > > > > > > > > Geschäftsführer: Peter Gierse, Mirko Novakovic und Rainer Vehns > > > > Sitz der Gesellschaft: Solingen > > > > > > > > Registergericht: Amtsgericht Wuppertal, HRB 19214 > > > > > > > > _______________________________________________ > > > > WebTest mailing list > > > > [email protected] > > > > http://lists.canoo.com/mailman/listinfo/webtest > > > > > > > > _______________________________________________ > > WebTest mailing list > > [email protected] > > http://lists.canoo.com/mailman/listinfo/webtest > > _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

