Logo QF-Test

Finding valuable answers
in the Mailing List Archive.


Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 2012

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] shell command execution in QF-Test -- how to?

  • Subject: Re: [QF-Test] shell command execution in QF-Test -- how to?
  • From: "Berg, Klaus-Peter" <klaus-peter.berg@?.com>
  • Date: Tue, 14 Feb 2012 10:18:59 +0100

Hello Hajnal,
I guess since Java 5 you can use the java.lang.ProcessBuilder class.
ProcessBuilder.start() returns a Process object, where you can call: getOutputStream() , getErrorStream().
Unfortenately I have no Jython script example like the one you are using now:

import os 

os.system(’systeminfo > temp.txt’)

I'm using Groovy instead of Jython with respect to QF-Test...


Best regards

Klaus Peter

Videos Downloads Documentation Buy Free Trial