I had JWebUnit2.1 and tests that were working fine. After about a week
or so, without
changing anything, the tests started breaking. I finally traced the
problem to session_regenerate_id()
in the php application. The tests weren't catching the regenerated
session id that was set,
so the application couldn't find the session data through the tests.
Obviously, manually running
through the application worked fine. Finally I upgraded to 2.2 and the
tests started passing
again. Unfortunately, I needed to upgrade my PHP (which was using
5.2.2) to 5.2.4.
The tests started breaking again. Once again, commenting out the
session_regenerate_id()
call allowed the tests to pass.
So what is it in JWebUnit that's not catching the correct id?
I'm using OS X 10.4.11
Through JWebUnit, I fill out the form then use submit() (so I'm not
using beginAt() or anything
to load another page that might miss the session). Once the form is
submitted, an intermediate
php file processes the form (this is where the session_regenerate_id()
occurs) which then sends
the user to another php file that checks for the new session id before
continuing.
GET THE WHOLE STORY
Criminal - Credit - Driving - Education - Employment - Drug - Assessments
http://www.infomart-usa.com
Ask about how we can automate your screening program!
The information contained in this email is privileged, confidential and
protected by disclosure. If you think that you have received this email
message in error, please REPLY with "RECEIVED IN ERROR" in the Subject Box. We
apologize for any inconvenience and thank you for your time.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users