Hi all, So for those interested, it's pretty simple:
Webtest.sh -q Done;) Thomas Klein Senior Associate, QA | Sapient Sapient GmbH Hammer Str. 19 40219 Düsseldorf Deutschland Tel.: +49 211.54034-202 Mobil: +49 162.2773-202 Fax: +49 211.54034-600 e-Mail: [email protected] www.sapient.com Geschäftsführung: Dr. Christian Oversohl, Wolf Ingomar Faecks Handelsregister: Amtsgericht München HRB 161057, Sitz der Gesellschaft: München USt.-IdNr. DE-210831918 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort die Sapient GmbH unter +49 89 552 987-0 und löschen Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail und der darin enthaltenen Informationen ist nicht gestattet. Vielen Dank. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this email in error) please immediately notify Sapient GmbH on +49 89 552 987-0 and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Thank you for your cooperation. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Thomas Klein Sent: Thursday, January 14, 2010 11:43 AM To: [email protected] Subject: RE: [Webtest] How to set loglevel for webtest.sh on command-line? Hi Stephan, Thanks for the response. >the command line should probably look like: > webtest.sh -f build.xml -DlogLevel.root=error Yeah, that was my assumption too. It also was the first thing I tried. ...and it was the first trial (of a couple of trials) that simply didn't change anything in the behaviour on stdout. That's why I am getting a bit, ehh... slightly frustrated. Thanks a lot anyway, Thomas Klein Senior Associate, QA | Sapient Sapient GmbH Hammer Str. 19 40219 Düsseldorf Deutschland Tel.: +49 211.54034-202 Mobil: +49 162.2773-202 Fax: +49 211.54034-600 e-Mail: [email protected] www.sapient.com Geschäftsführung: Dr. Christian Oversohl, Wolf Ingomar Faecks Handelsregister: Amtsgericht München HRB 161057, Sitz der Gesellschaft: München USt.-IdNr. DE-210831918 Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort die Sapient GmbH unter +49 89 552 987-0 und löschen Sie diese E-Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail und der darin enthaltenen Informationen ist nicht gestattet. Vielen Dank. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this email in error) please immediately notify Sapient GmbH on +49 89 552 987-0 and delete this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. Thank you for your cooperation. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Stephan Robotta Sent: Thursday, January 14, 2010 11:36 AM To: [email protected] Subject: Re: [Webtest] How to set loglevel for webtest.sh on command-line? Hi Thomas, On Thu, Jan 14, 2010 at 10:06:52AM +0000, Thomas Klein wrote: > > what is the magic that needs to be done in order to have webtest.sh > use (and pass along) a specific loglevel on the command line? I > tried various combinations of -DANT_OPTS= or -Dlog4j or > -Dwhateveryoumighttellme to no avail. I didn't try the log4j properties yet but did so with other properties. Send these along with the webtest call: webtest.sh -f build.xml -Dsome_property=some_value In the log4j.properties there is a sample as you found out already. The ANT_OPTS must go in your build xml. To set the loglevel on ERROR the command line should probably look like: webtest.sh -f build.xml -DlogLevel.root=error INFO is the default log level (in my case) so I would ommit it in the call. > Q1: How do I do it? Please don't tell me I will have to use separate > log4.properties Hope it works as described as above, maybe also try: webtest.sh -f build.xml -DlogLevel.httpclientWire=error -DlogLevel.htmlunit=error as suggested in the log4j.proerties HTH, Stephan _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

