2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012

Mailing List - Entries of 2012


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

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


  • Subject: Re: [QF-Test] shell command execution how to
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Tue, 14 Feb 2012 07:54:24 +0100

Hello Zsolt,

are you aware of the availability of ${qftest:client.output.xxx} where
xxx is the name of the client that you assigned when starting the
command?

Typically you'll need the value in a 'Server script' node where it's
best retrieved as

rc.lookup("qftest", "client.output.xxx", expand=false)

to prevent any problems with special characters. The typical sequence
would be

+ Execute shell command
+ Wait for process to exit
+ Script to fetch and parse the output

Best regards,
    Greg

"Hajnal, Zsolt (GE Healthcare)" <zsolt.hajnal@?.com> writes:

> 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@?.com
>
> Akron u. 2.
> 2040 Budaors, Hungary
> GE Hungary Zrt.
>
> _______________________________________________
> qftest-list mailing list
> qftest-list@?.de
> http://www.qfs.de/mailman/listinfo/qftest-list

-- 
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                               Tel: +49 8171 38648-0
DE-82538 Geretsried                         Fax: +49 8171 3864816
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833