Hi Rajinder,
Remember that for each test case method, sessions will be reset. This also
happens when you use beginAt(url). So each test method has to
re-authenticate from the beginning, and make sure you use the navigation
methods (clickLinkWithText, etc) to navigate your application.
Jevon
On Mon, Mar 2, 2009 at 10:36 PM, Singh-2, Rajinder <[email protected]>wrote:
> Hi Julien,
>
>
>
> Thanks for the reply.
>
>
>
> Below are the details asked for:
>
> The website I am testing using JwebUnit uses Cookie and Hidden fields to
> maintain the session.
>
> I am using version 2.1 of JwebUnit .Attached are the jars I am using.
>
> I have been searching for last two days the way how to maintain the session
> but am unable to find the possible solution.
>
> It will be a great if you can help me in finding the solution.
>
>
>
> Regards,
>
> Rajinder
>
>
> ------------------------------
>
> *From:* Julien HENRY [mailto:[email protected]]
> *Sent:* Monday, March 02, 2009 1:49 PM
> *To:* JWebUnit Development mail list
> *Subject:* [JWebUnit-development] Re : Help:JwebUnit Testing
>
>
>
> Hi Rajinder,
>
> Do you know what is the mecanism used by your website to keep the session?
> Cookie? URL rewriting? Hidden form field?
>
> BTW JWebUnit is supposed to handle all these mecanisms. What is the version
> of JWebUnit you are using?
>
> Regards,
>
> Julien
>
>
> ------------------------------
>
> *De :* "Singh-2, Rajinder" <[email protected]>
> *À :* [email protected]
> *Envoyé le :* Lundi, 2 Mars 2009, 8h23mn 10s
> *Objet :* [JWebUnit-development] Help:JwebUnit Testing
>
> Hi,
>
>
>
> This is regarding Jwebunit testing.
>
> I logged into the web site through JwebUnit.
>
> But when I click any link on the home page the connection is refused
> because the authenticated session is not being carried over by JWebUnit.
>
> Can anyone help me and tell me how can I maintain the session in JwebUnit.
>
>
>
> Regds,
>
> Rajinder
>
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> JWebUnit-development mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-development
>
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development