Get console result from TPTPProcess [message #119534] |
Fri, 14 December 2007 12:43 |
Eclipse User |
|
|
|
Originally posted by: cguibert.axway.com
Hello
In my test, I need to run an application that write some data to the
console, in particularly, whether the start process was OK or not. So I
need to get the console output in order check if my TestMethod is success
or failed.
I'm using the TPTPProcess sample to do that, but I'm not able to get the
console output using the sample.
I did the below tests:
Test1:
proc.setExecutable("myApplication");
proc.setParameter(" >toto.out 2>toto.err");
Test2:
proc.setExecutable("MyTest.bat")
where MyTest.bat contains the following:
@echo off
myApplication >toto.out 2> toto.err
But I have no ways to get the console output in my Test.
I guess I missed something but I can't see what.
Do you have any idea ?
Regards
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04073 seconds