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

Mailing List - Entries of 2012

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

[QF-Test] How to execute a Dependency Cleanup-Node exactly once? (SUT start-stop)

  • Subject: [QF-Test] How to execute a Dependency Cleanup-Node exactly once? (SUT start-stop)
  • From: Markus Fülle <markusfulli@?.com>
  • Date: Wed, 22 Feb 2012 15:42:28 +0100

Hi there,

I have one 'testsuite' with several 'test-sets', each containing several 'test-cases'.

I definded a dependency containing a 'preparation-node' (starts the SUT if not already started) and a 'cleanup-node' (shuts down the SUT).

Is there any way to make qftest run the dependency's 'preparation-node' EXACTLY ONCE before running any 'test-set / test-case'  and running the dependency's 'cleanup-node' EXACTLY ONCE after completing  all 'test-set / test-cases' ?

My efforts until now:

Using a reference to this dependency and switching on dependecy inheritance on 'test-set / test-case' nodes obviously does execute the preparation as often as the dependency is inherited. A 'try' in here helps to prevent the SUT from beeing started multiple times and thus 'faking' the wanted behavior 'execute preparation only ONCE'.
On the other side, the 'cleanup-node' NEVER gets executed, until I set the dependency to 'force clean-up', which leaves the cleanup beeing executed each and every time too - though I want it to be executed only once.

What am I missing? Is the dependency mechanism the right way to do this at all?

Thanks und regards,