Re: httpunit servletunit log level
Russell Gold <[email protected]> Fri, 07 Aug 2009 10:16:54 -0400
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
What are you trying to log? When HttpUnit was developed, there were no
standard debug frameworks and we have yet to go back and add this
capability, although it sounds like a really good enhancement.
On Aug 6, 2009, at 11:34 AM, Mitchell Bass wrote:
> Hi. Thanks for a great tool. question: is there a way to set log
> level?
> My console output during a test runs looks like it is at debug
> level? And that is TMI.
> Tried some of the methods in HttpUnitUtils and HttpUnitOptions to no
> avail. Thank you kindly, -Mitch
>
> protected void setUp() throws Exception {
> super.setUp();
>
> if (servletRunner == null) {
> // set log level?
> //HttpUnitOptions.setLoggingHttpHeaders( false );
> //
> HttpUnitOptions.setExceptionsThrownOnErrorStatus( false );
> HttpUnitUtils.setEXCEPTION_DEBUG( fasle );
>
> // Suppress script errors detected by HttpUnit
> HttpUnitOptions.setExceptionsThrownOnScriptError( false );
> HttpUnitOptions.clearScriptErrorMessages();
>
> final File webContentRoot = getWebContentRoot();
> assertNotNull(webContentRoot);
>
> //final File webXML = new File(webContentRoot + "/WEB-
> INF/web.xml");
> final File webXML = new File(webContentRoot + "/WEB-INF/
> test-web.xml");
> assertTrue(webXML.exists());
>
> servletRunner = new
> ServletRunner(webXML.getAbsoluteFile(), "/centauri");
> //servletRunner.registerServlet( servletPath,
> MainServlet.class.getName() );
> }
> }
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop