JSP page testing with HttpUnit
sudharsan <[email protected]> Sat, 16 Apr 2011 17:52:45 +0530
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============7981770660603768913==
Content-Type: multipart/alternative; boundary=90e6ba6e87cc3f567c04a10837bc
--90e6ba6e87cc3f567c04a10837bc
Content-Type: text/plain; charset=ISO-8859-1
Hi Folks,
I am trying to implement a POC on JSP Unit testing out of container.
But from HttpUnit site i didn't get any use full info for testing jsps pages
out of the container.
There only one example is there for testing Servlets.
I gone through FAQs
Can I use JSPs with ServletUnit?Absolutely! But since you are now emulating
the servlet environment, you will need to make sure that you have access to
the relevant classes. By default, ServletUnit is configured to use Jasper,
the JSP engine which is part of Tomcat. *You will therefore need the Jasper
jar in your classpath, along with any on which it depends*. Once you have
done that, your JSPs should run, just as they would in Tomcat.
Which version jasper jar is required what depends and how to set up those
and how run sample jsp unit testing if you guys provides on site it would be
great use full for black box testers.
Please send me the details.
--
Thanks&Regards
sudharsan
--90e6ba6e87cc3f567c04a10837bc
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi Folks,<br><br>I am trying to implement a POC on JSP Unit testing out of =
container.<br>But from HttpUnit site i didn't get any use full info for=
testing jsps pages out of the container.<br>There only one example is ther=
e for testing Servlets.<br>
<br><br>I gone through FAQs<br><br><h3>Can I use JSPs with ServletUnit?</h3=
>Absolutely! But since you are=20
now emulating the servlet environment, you will need to make sure that=20
you have access
to the relevant classes. By default, ServletUnit is=20
configured to use Jasper, the JSP engine which is part of Tomcat.
<b>You will therefore need the Jasper jar in your=20
classpath, along with any on which it depends</b>. Once you have done that=
,
your JSPs should run, just as they would in Tomcat.<br>=
<br>Which version jasper jar is required what depends and how to set up tho=
se and how run sample jsp unit testing if you guys provides on site it woul=
d be great use full for black box testers.<br>
<br>Please send me the details.<br clear=3D"all"><br>-- <br>Thanks&Rega=
rds<br>sudharsan<br>
--90e6ba6e87cc3f567c04a10837bc--
--===============7981770660603768913==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve
application availability and disaster protection. Learn more about boosting
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
--===============7981770660603768913==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop
--===============7981770660603768913==--