Thank you, that answers my question...if JWebUnit can't see it, then it
can't deal with it, it only makes requests to the server and receives
responses that it then parses and implements the code created by tests as if
JWebUnit were a browser.

Our company is going to require that we have an integrated environment of
both front end testing and the ability to set some request attributes so
that we can test different scenarios on our pages e.g. we have some login
sections that require ldap logins, we can circumvent this by setting a mock
request object with mock information and we're needing to test all of those
sections where right now a lot of manual work is done.

thx for your replies

timo

On Mon, Feb 15, 2010 at 1:52 PM, Julien HENRY <henr...@yahoo.fr> wrote:

> When you talk about request and attributes are you talking about Java
> servlet API? Because JWebUnit is about testing web application from the end
> user point of view (emulating a web browser). JWebUnit is not accessing your
> server code and consequently is not able to help if you need special
> configuration on server side when running your tests.
>
>
> >
> >De : Stand Trooper <standtroo...@gmail.com>
> >À : Usage problems for JWebUnit <jwebunit-users@lists.sourceforge.net>
> >Envoyé le : Lun 15 Février 2010, 20 h 15 min 28 s
> >Objet : Re: [JWebUnit-users] Re : Request Objects
> >
> >
> >Thx for the reply.  Basically, I need to pass an object I create to the
> request as an attribute.  Basically, this isn't currently an implementation
> within JWebUnit, that I can find.
> >
> >Is this something that will be coming up on the roadmap for an
> implementation?  I'd like to be able to use whatever kind of request object
> I have (MockHttpServletRequest, easymock, whatever) to do this.  Ideally,
> I'd like to do this through JWebUnit as it's our primary testing framework
> for our frontend testing and not have to outline to developers a 2ndary
> route for providing mock requests.  Currently, all freemarker work is being
> tested with the spring frameworks, and JWebUnit was my first choice for
> unified testing of our front end.
> >
> >
> >
> >thx
> >
> >timo
> >
> >
> >On Mon, Feb 15, 2010 at 12:50 PM, Julien HENRY <henr...@yahoo.fr> wrote:
> >
> >Hi,
> >>
> >>There is a similar functionality in HtmlUnit [1]. Therefore it may
> require to acces JWebUnit internal code so I don't know if all components
> have the needed visibility.
> >>
> >>Another solution is to use the same mecanism as JWebUnit JUnit tests. You
> can load an HTML file or access an embedded web server that will be able to
> generate the content your code is expecting.
> >>
> >>[1]
> http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/MockWebConnection.html
> >>
> >>>>Regards,
> >>
> >>Julien
> >>
> >>
> >>>
> >>>De : Stand Trooper <standtroo...@gmail.com>
> >>>À : jwebunit-users@lists.sourceforge.net
> >>>Envoyé le : Lun 15 Février 2010, 19 h 30 min 22 s
> >>>Objet : [JWebUnit-users] Request Objects
> >>>
> >>>
> >>>
> >>>I've tried looking through the documentation and some of the archives
> for the mailing list.  I'm looking to find out if there's a way to pass in a
> MockHttpRequest or some sort of mock request object so I can
> >>> test specific portions of the code that require certain elements to be
> present.
> >>>
> >>>Any help would be greatly appreciated.
> >>>
> >>>thx
> >>>
> >>>timo
> >>>
>
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to