Hi,
I noticed same thing happens with flash variables too. When I set
flash variable and redirect it, tests fail but I can see the variable
value if I access using the browser.
Can anyone guide?
Thanks.
On Mar 22, 11:01 am, "Amit Rana" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a very simple page "page1" which checks for a condition if not
> true it puts a message in the session and redirects to "page2" which
> picks that message from session and displays it.
>
> When I perform this action using a browser all is well and I see the
> message in page2 but doing same using sfTestBrowser doesnt work. This
> is what I am doing.
>
> --some other stuff--
> $browser->
> get('/tests/prodtest')->
> isStatusCode(200)->
> setField('prod','abc')->
> click('go')->
> isRedirected()->
> followRedirect()
> responseContains('Incorrect prod name') //this tests keeps failing
> ;
>
> Using brwoser I to gohttp://server/myapp/tests/prodtest, it shows
> text box, I fill it press enter, I get redirected tohttp://server/myappwhich
> shows the message
>
> Whats wrong in my test?
>
> TIA.
>
> Regards,
> Amit.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---