You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Pierre Goupil <go...@gmail.com> on 2010/01/04 12:32:45 UTC
Wicket tester & login pages
Hello all,
Is there a way to access directly a page in Wicket tester? I mean:
by-passing the login page in order not to execute the whole workflow leading
to a certain page.
We use, of course, @AuthorizedInstantiation-based login. We've found
examples where people provide directly the credentials to the login form and
then browse to the desired page, but I was wondering whether something more
"direct" existed.
Regards,
Pierre
--
Ad augusta per angusta
Des résultats grandioses par des voies étroites
Re: Wicket tester & login pages
Posted by Pierre Goupil <go...@gmail.com>.
We use @AuthorizedInstantiation. But what we're looking for is not a way to
inject the credentials but rather a way to access directly a protected page
in unit tests.
We know how to provide credentials and browse to the page but find it
dangerous: what if the credentials change, what if the Website layout
changes... ?
Regards,
Pierre
On Mon, Jan 4, 2010 at 12:36 PM, Martin Makundi <
martin.makundi@koodaripalvelut.com> wrote:
> Hi!
>
> Depends on your login but ofcourse wicket is a whitebox so you can
> inject any credentials you want. But visit the login page first to
> create session.
>
> **
> Martin
>
> 2010/1/4 Pierre Goupil <go...@gmail.com>:
> > Hello all,
> >
> > Is there a way to access directly a page in Wicket tester? I mean:
> > by-passing the login page in order not to execute the whole workflow
> leading
> > to a certain page.
> >
> > We use, of course, @AuthorizedInstantiation-based login. We've found
> > examples where people provide directly the credentials to the login form
> and
> > then browse to the desired page, but I was wondering whether something
> more
> > "direct" existed.
> >
> > Regards,
> >
> > Pierre
> >
> >
> > --
> > Ad augusta per angusta
> >
> > Des résultats grandioses par des voies étroites
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Ad augusta per angusta
Des résultats grandioses par des voies étroites
Re: Wicket tester & login pages
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!
Depends on your login but ofcourse wicket is a whitebox so you can
inject any credentials you want. But visit the login page first to
create session.
**
Martin
2010/1/4 Pierre Goupil <go...@gmail.com>:
> Hello all,
>
> Is there a way to access directly a page in Wicket tester? I mean:
> by-passing the login page in order not to execute the whole workflow leading
> to a certain page.
>
> We use, of course, @AuthorizedInstantiation-based login. We've found
> examples where people provide directly the credentials to the login form and
> then browse to the desired page, but I was wondering whether something more
> "direct" existed.
>
> Regards,
>
> Pierre
>
>
> --
> Ad augusta per angusta
>
> Des résultats grandioses par des voies étroites
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Wicket tester & login pages
Posted by Pierre Goupil <go...@gmail.com>.
OK! On which object? Is there a way to do: setAuthenticated(true)? <:^-)
On Mon, Jan 4, 2010 at 12:44 PM, Martijn Dashorst <
martijn.dashorst@gmail.com> wrote:
> You probably store the credentials (or isAuthenticated() == true) in
> the session. Just set the credentials *on* your session during
> testing.
>
> Martijn
>
> On Mon, Jan 4, 2010 at 12:32 PM, Pierre Goupil <go...@gmail.com>
> wrote:
> > Hello all,
> >
> > Is there a way to access directly a page in Wicket tester? I mean:
> > by-passing the login page in order not to execute the whole workflow
> leading
> > to a certain page.
> >
> > We use, of course, @AuthorizedInstantiation-based login. We've found
> > examples where people provide directly the credentials to the login form
> and
> > then browse to the desired page, but I was wondering whether something
> more
> > "direct" existed.
> >
> > Regards,
> >
> > Pierre
> >
> >
> > --
> > Ad augusta per angusta
> >
> > Des résultats grandioses par des voies étroites
> >
>
>
>
> --
> Become a Wicket expert, learn from the best: http://wicketinaction.com
> Apache Wicket 1.4 increases type safety for web applications
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Ad augusta per angusta
Des résultats grandioses par des voies étroites
Re: Wicket tester & login pages
Posted by Martijn Dashorst <ma...@gmail.com>.
You probably store the credentials (or isAuthenticated() == true) in
the session. Just set the credentials *on* your session during
testing.
Martijn
On Mon, Jan 4, 2010 at 12:32 PM, Pierre Goupil <go...@gmail.com> wrote:
> Hello all,
>
> Is there a way to access directly a page in Wicket tester? I mean:
> by-passing the login page in order not to execute the whole workflow leading
> to a certain page.
>
> We use, of course, @AuthorizedInstantiation-based login. We've found
> examples where people provide directly the credentials to the login form and
> then browse to the desired page, but I was wondering whether something more
> "direct" existed.
>
> Regards,
>
> Pierre
>
>
> --
> Ad augusta per angusta
>
> Des résultats grandioses par des voies étroites
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org