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)
regarding the 'cleanup-node': if you run your tests in batch mode, it will trigger the clean-up node after all tests are run.
At least it does for me :-)
Best Regards / Mit freundlichen Grüßen
Von: Markus Fülle <markusfulli@xxxxxxxxxxxxxx>
Datum: 22.02.2012 16:16
Betreff: [RMX:##] [QF-Test] How to execute a Dependency Cleanup-Node exactly once?(SUT start-stop)
Gesendet von: qftest-list-bounces@xxxxxx
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,
qftest-list mailing list