Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Reading from console view
Reading from console view [message #97862] Sun, 06 May 2007 12:54 Go to next message
Eclipse User
Originally posted by: eitanush.gmail.com

Hi,
I am building a regression test environments using the TPTP AGR.
I try to read standard output from the console, but can't find the way to
do that (I added a verification hook, but fail to read the contents of the
console).
I am testing the final product itself and not from the development
environment.
How can I read the contents of the console?
Thanks.
Re: Reading from console view [message #98019 is a reply to message #97862] Mon, 07 May 2007 11:28 Go to previous message
Paul Slauenwhite is currently offline Paul Slauenwhite
Messages: 970
Registered: July 2009
Senior Member
Hi Anat,
The TPTP test runners (for example, AGR runner) capture standard out
content, convert it to a message event and send it back to the executing
workbench for persistence in the test log. You can outride this by setting
your own PrintStream for standard out using
java.lang.System#setOut(java.io.PrintStream) and standard error using
java.lang.System#setErr(java.io.PrintStream).

Paul
"Anat Levi" <eitanush@gmail.com> wrote in message
news:9fa9ce713c81d1cfea6f2bc37b5d9d8c$1@www.eclipse.org...
> Hi,
> I am building a regression test environments using the TPTP AGR. I try to
> read standard output from the console, but can't find the way to do that
> (I added a verification hook, but fail to read the contents of the
> console). I am testing the final product itself and not from the
> development environment.
> How can I read the contents of the console?
> Thanks.
>
Previous Topic:Agent Controller is unavailable under port 10002
Next Topic:JUnit Plugin Tests Still Hang Latest 4.4 Dev Build
Goto Forum:
  


Current Time: Fri Oct 24 10:19:44 GMT 2014

Powered by FUDForum. Page generated in 0.10630 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software