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 2007


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

Re: [QF-Test] How to show SUT output in batch mode?


  • Subject: Re: [QF-Test] How to show SUT output in batch mode?
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 22 Aug 2007 19:30:44 +0200

Hello Frank,

that can't be done directly, but indirectly it's possible. You can
place "Server script" nodes in Jython at strategic places in your
test-suite that get the output of the SUT and print that (replace XXX
with the client name of your SUT):


output = rc.lookup("qftest", "client.output.XXX")
print output


Of course, if you want to do that repeatedly while the SUT is running,
yet but prevent the same output from being printed multiple times,
things are more difficult:


global outsize

try:
    # will raise an exception if outsize is not defined yet
    outsize
except:
    # in which case we initialize it to 0
    outsize = 0

output = rc.lookup("qftest", "client.output.XXX")
if len(output > outsize):
    print output[outsize:]
outsize = len(output)


A prerequisite to this is using a shell that actually shows QF-Test's
output. On Unix this is not problem. The standard Windows console will
not print it, but cygwin bash, other Unix shells for Windows, or cmd
run as a shell inside Emacs will.

Best regards,
    Greg

Frank Bowers <fbowers@?.com> writes:

> I want to see the program output from the SUT in the shell window from
> which qftest is invoked in batch mode.  Is there any way to do this?
>
> Thanks,
>
> Frank

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