(older archive entries before 2007 are not shown here, but included in the onsite-search)
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)
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,