Logo QF-Test

Im Archiv der Mailingliste
wertvolle Antworten finden.

 

Gratis Testen  Download  Kaufen

Thomas Max, QF-Test Training und Support

Tipp für die Recherche in der Mailingliste: Volltextsuche (oben) verwenden.

Thomas Max,
Sr. Software Engineer & Trainer, QFS

2017 bis heute 2016 2015 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007


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

Re: [QF-Test] Strange problem with global variable bindings


  • Subject: Re: [QF-Test] Strange problem with global variable bindings
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: 11 May 2007 21:43:48 +0200

Hi Adrian,

thanks for the suite. This would have been difficult indeed with the
run-log alone.

It turns out you uncovered a very subtle bug in QF-Test. The globals
can get temporarily messed up - so that values are not assigned
correctly - when you manually execute a node that binds a local
variable on completion, like the procedure calls in your suite. The
nature of the bug is such that it manifests only when you run multiple
nodes in that fashion. Tricky to spot...

The bug will be fixed in the upcoming maintenance release. Thanks a
lot for spending the (substantial) effort to report it instead of
simply thinking "what the hell"... :-)

Best regards,
    Greg

"Adrian Chamberlain \(BE/ETL\)" <adrian.chamberlain@?.com> writes:

> Hi Greg,
>
> Please find attached the test-suite file 'stacks.qft'.
>
> NOTE:
>
> If you select and play the node 'Sequence: Create and push',
> then look at the global variables (Edit->Options->Variables->Globals)
> all is correct :
>
> i.e.
>
> stack_test_item_0      item1
> stack_test_item_1      item2
> stack_test_item_2      item3
> stack_test_item_3      item4
> stack_test_item_4      item5
> stack_test_maxSize   5
> stack_test_ptr            5
>
> However, if you highlight (group selection i.e. CTRL + mouse button)
> all the six 'call procedure' nodes under this sequence and play them,
> the end result is :
>
> Edit->Options->Variables->Globals
> stack_test_item_0      item5
> stack_test_maxSize   5
> stack_test_ptr            1
>
> Kind Regards
> Adrian
>
> p.s. Just play the node 'Sequence: Pop and destroy' to clear &
> destroy the stack (consequently remove the associated global
> variables).

--
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



Videos Downloads Dokumentation Kaufen Gratis Testen