You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by "Bose, Shivashis (Cognizant)" <BS...@cal.cognizant.com> on 2004/03/31 16:02:58 UTC

Procedure for logging the output of a cactus test

Hi

The assert method of cactus, displays the results in the browser. Is there any way of sending the output of a assert statement to a log file instead of the browser? 
Thanks in advance for any help.

Regards
Shivashis

RE: Procedure for logging the output of a cactus test

Posted by Vincent Massol <vm...@pivolis.com>.
Hi Shivashis,

The assert method of JUnit is rendered in the JUnit test runner that
runs it. If you're running the Servlet Test Runner, it will be rendered
in the browser; if you're running the <cactus> Ant task, it will be
rendered in an XML file (if you use the XML formatter), etc.

The browser integration of Cactus is the only front end that is expected
to be run manually. Pick any other and you'll be able to get the results
in a file.

See http://jakarta.apache.org/cactus/integration/

Thanks
-Vincent

-----Original Message-----
From: Bose, Shivashis (Cognizant) [mailto:BShivash@cal.cognizant.com] 
Sent: 31 March 2004 16:03
To: Jakarta Help (E-mail)
Subject: Procedure for logging the output of a cactus test

Hi 
The assert method of cactus, displays the results in the browser. Is
there any way of sending the output of a assert statement to a log file
instead of the browser? 
Thanks in advance for any help. 
Regards 
Shivashis