1 message in com.canoo.lists.webtest[Webtest] Problems with log4j and htm...| From | Sent On | Attachments |
|---|---|---|
| Mike Danifo | 18 Nov 2005 07:50 |
| Subject: | [Webtest] Problems with log4j and htmlunit![]() |
|---|---|
| From: | Mike Danifo (mdan...@gmail.com) |
| Date: | 11/18/2005 07:50:39 AM |
| List: | com.canoo.lists.webtest |
Hello list,
I was having some trouble seeing htmlunit debug messages while running one of my webtest scripts and would love some help. I am running build R_1029
I have setup my log4j.properties, located in $webtest.home/lib, like so:
## standard way of logging log4j.rootCategory=debug, stdout
## log debug information about connection calls log4j.logger.com.canoo.webtest.steps.request=debug
log4j.logger.org.apache.commons.httpclient=info
## log what htmlunit is doing, helpful to debug http header relay log4j.logger.httpclient.wire=info log4j.logger.httpclient.wire.header=debug log4j.logger.httpclient.wire.content=debug
## May be useful when looking for javascript problems log4j.logger.com.gargoylesoftware.htmlunit.javascript=debug
## Settings for the Appender(s) log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%5p (%c) - %m%n
In my webtest.bat file, I have added a extra JVM arg to make sure the right log4j.properties is getting used:
-Dlog4j.configuration=c:/java/webtest/lib/log4j.properties
When I run my test, I am expecting to see more info than the following Any help would be appreciated:
addGenericLogicalChildContainer: [testSpec] log4j:WARN No appenders could be found for logger (com.canoo.webtest.ant.TestStepSequence). [testSpec] log4j:WARN Please initialize the log4j system properly. [testSpec] Nov 18, 2005 10:31:37 AM org.apache.commons.httpclient.HttpMethodDirector isRedirectNeeded [testSpec] INFO: Redirect requested but followRedirects is disabled [testSpec] Nov 18, 2005 10:31:43 AM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter warning [testSpec] WARNING: warning: message=[RHINO USAGE WARNING: Missed Context.javaToJS() conversion: [testSpec] Rhino runtime detected object [#document: null] of class org.apache.xerces.dom.DeferredDocumentImpl where it expected String, Number, Boolean or Scriptable instance. Please check your code for missig Context.javaToJS() call.] sourceName=[/incontrol/includes/js/xloadtree.js] line=[185] lineSource=[null] lineOffset=[0] [testSpec] RHINO USAGE WARNING: Missed Context.javaToJS() conversion: [testSpec] Rhino runtime detected object [#document: null] of class org.apache.xerces.dom.DeferredDocumentImpl where it expected String, Number, Boolean or Scriptable instance. Please check your code for missig Context.javaToJS() call. [testSpec] Nov 18, 2005 10:31:43 AM com.gargoylesoftware.htmlunit.javascript.host.Document jsxSet_cookie [testSpec] INFO: Added cookie: xtree=3i0i3%3A1 [testSpec] Nov 18, 2005 10:31:46 AM com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter warning [testSpec] WARNING: warning: message=[RHINO USAGE WARNING: Missed Context.javaToJS() conversion: [testSpec] Rhino runtime detected object [#document: null] of class org.apache.xerces.dom.DeferredDocumentImpl where it expected String, Number, Boolean or Scriptable instance. Please check your code for missig Context.javaToJS() call.] sourceName=[/incontrol/includes/js/xloadtree.js] line=[185] lineSource=[null] lineOffset=[0] [testSpec] RHINO USAGE WARNING: Missed Context.javaToJS() conversion: [testSpec] Rhino runtime detected object [#document: null] of class org.apache.xerces.dom.DeferredDocumentImpl where it expected String, Number, Boolean or Scriptable instance. Please check your code for missig Context.javaToJS() call.




