Buschfunk
14 years agoFrequent Contributor
Reading StdOut for Java applications
Hello,
Using TestComplete 8 I followed this article http://support.smartbear.com/viewarticle/16559 - "Working with Console StdIn and StdOut Streams". This works fine for the given example. However I need to call a runnable JAR like this:
java -jar myApp.jar
This command prints some data to the console using System.out.println(). Using the above sample code does not return the output of the Java application but an empty string. Also "java -version" as a command gives an empty string in TestComplete.
How can I get the output of this Java application?
Sincerely,
Robert
Using TestComplete 8 I followed this article http://support.smartbear.com/viewarticle/16559 - "Working with Console StdIn and StdOut Streams". This works fine for the given example. However I need to call a runnable JAR like this:
java -jar myApp.jar
This command prints some data to the console using System.out.println(). Using the above sample code does not return the output of the Java application but an empty string. Also "java -version" as a command gives an empty string in TestComplete.
How can I get the output of this Java application?
Sincerely,
Robert