We want to test the output from a command line program that is started by Tosca.
For instance, we're expecting
java -jar myprogram.jar
to stream the following output to System.out:
2016-10-12 09:00:00 INFO [thread-name] MYPROGRAM started
2016-10-12 09:00:01 INFO [thread-name] MYPROGRAM initialisation successful
2016-10-12 09:00:02 INFO [thread-name] MYPROGRAM completed successfully
How can Tosca capture this information? Can it attach to the program's output stream? Or should we push the information to a file and have Tosca look at the file? If so, how do we redirect the output?