2019 jusqu'à présent |  2018  2017 | 2016 | 2015 | 2014 | 2013 | 2012

Liste de diffusion - Entrées de 2012

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

Re: [QF-Test] passing global variable from command line to test-suite

  • Subject: Re: [QF-Test] passing global variable from command line to test-suite
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Thu, 06 Sep 2012 21:10:22 +0200

Hello Erik,

basically, what you describe looks correct. The command line argument
-variable is the way to pass a variable to QF-Test with a stronger
binding that variables bound at test-suite level.

I suggest you (re)read manual chapter 8


to get familiar with QF-Test's way of handling variables. Then modify
your test-suite so it runs into an error after trying to look up the
value passed from the command line. In the run-log you'll find a
'Stacktrace' node close just before the screenshots for the error. It
shows all variable bindings on the primary and fallback stack and by
selecting a line you can examine the individual values.

Best regards,

Erik Macisevskij <erik.macisevskij@?.com> writes:

> Dear Sir or Madam,
> I have created a dummy test to try to understand the way variables work in qftest. I have added a
> variable at Test-Suite level calling it '$(server)'
> I have tried to call this test-suite from command line using -variable server="abc.com" and
> command ran with no exceptions
> Then I went to results and noticed that the variable was still not set
> I then added a server script to a Test-Case level and tried to use rc.setGlobal() and rc.lookup()
> function suggested so many times in support section of you website,  and tried to print the value
> - but no luck at all.
> Everything I need is access to certain Test-suite parameters within any child node of that
> Test-Suite and ability to pass it from outside of QF-Test.
> Many thanks,
> Erik M

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