2019 bis heute  2018  | 2017 2016 2015 2014 | 2013 | 2012

Mailingliste - Einträge 2012

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

[QF-Test] shell command execution how to

  • Subject: [QF-Test] shell command execution how to
  • From: "Hajnal, Zsolt (GE Healthcare)" <zsolt.hajnal@?.com>
  • Date: Mon, 13 Feb 2012 14:21:16 +0100

Dear Support Team!


During developing automatic tests for our application using QFTest I encountered an interesting problem.


The test I’m working on now hast to execute shell commands both on windows and linux operating systems.  The problem is to get the executed commands output. On linux I found the „getoutput” function from „commands” package and it could resolve my problem easily. Unfortunatelly on windows systems this function is not available. Now I’m handling this problem by executing the shell command with „>” operator and printing the output to a file and reading the content of it into a variable. Besides I have permission problems on various operating systems needless to say it is not the best  solution.


My questions are:

-          How could I be able to get the executed shell commands output without using file printing and file reading or

-          How else could I implement this problem on windows systems?



Best regards,


Hajnal Zsolt
Software Tester Intern
GE Healthcare

Email: zsolt.hajnal@ge.com

Akron u. 2.
2040 Budaors, Hungary
GE Hungary Zrt.