Hi,

> However to your initial problem I did not find a solution except to
> change (copy) the log4.properties file, make adjustments to it's
> content and to modify the webtest.sh script a little which must be told
> in a certain way which log4j.properties file to use. 

Yep. That was the approach we used before "-q" came to our mind.
The problem however is, that one cannot include an ANT copy task in the script, 
because it will come "too late".
At the point where webtest is executing, the log4j.properties was already 
fetched and changing its contents has no effect any more on the ongoing 
webtest. ;)

Thomas Klein

Senior Associate, QA | Sapient

 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Stephan Robotta
Sent: Thursday, January 14, 2010 1:38 PM
To: [email protected]
Subject: Re: [Webtest] How to set loglevel for webtest.sh on command-line?

Hi,

On Thu, Jan 14, 2010 at 12:21:35PM +0000, Thomas Klein wrote:
> 
> Since quite some testers have little or no experience with output
> redirection, here's a little hint:
> 
> webtest.sh -q > logfile.log 2&>1

logging to a specific logfile can be achieved with -l <logfile> as
well.

webtest.sh -q -l logfile.log

All command line options that ant can handle are here:
http://ant.apache.org/manual/running.html

However to your initial problem I did not find a solution except to
change (copy) the log4.properties file, make adjustments to it's
content and to modify the webtest.sh script a little which must be told
in a certain way which log4j.properties file to use.

Best regards, 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

Reply via email to