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

Mailing List - Entries of 2012


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

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


  • Subject: Re: [QF-Test] [RMX:#] Re: How to execute a Dependency Cleanup-Node exactly once?(SUT start-stop)
  • From: Markus Fülle <markusfulli@?.com>
  • Date: Thu, 23 Feb 2012 11:59:02 +0100

Hi again,

thanks alot for making it clear that cleanup-execution is different between batch mode and development mode... now I am happy!

kind regards,
Markus

2012/2/23 <Henrik.Horneber@?.de>
Hi,

> Even in batch mode, QF-Test runs the cleanup node after each and every 'test-case' node (with their 'test-set' node inheriting the dependency).

This sounds like you have the 'force cleanup' flag set, which we don't.

> Inside your dependency node, do you have both a preparation and cleanup node ?

Both.

> At the dependency node itself, do you check the 'force cleanup' button, and if not, how do you make QF-Test run the cleanup node at all (whether in batch mode or not) ?

As I said, we don't set 'force cleanup'. Maybe I misunderstood what you want.

If you run tests in batch mode _without_ 'force cleanup', the 'cleanup-node' will be run _exactly_once_ after all tests are done.
Same settings in interactive mode will keep the SUT open even after all tests are run (which I thought was misbehaviour at first, but started to really like and understand).


Best Regards / Mit freundlichen Grüßen

Henrik Horneber






Von:        Markus Fülle <markusfulli@xxxxxxxxxxxxxx>
An:        Henrik Horneber <Henrik.Horneber@xxxxxxxx>
Kopie:        "qftest-list@?.de" <qftest-list@xxxxxx>
Datum:        23.02.2012 10:13
Betreff:        [RMX:#] Re: [QF-Test] How to execute a Dependency Cleanup-Node exactly once?(SUT start-stop)




Thanks for your answer,

but for me it does not, at least I can't figure out why. Even in batch mode, QF-Test runs the cleanup node after each and every 'test-case' node (with their 'test-set' node inheriting the dependency).

Maybe you can give me a hint?
Inside your dependency node, do you have both a preparation and cleanup node ? At the dependency node itself, do you check the 'force cleanup' button, and if not, how do you make QF-Test run the cleanup node at all (whether in batch mode or not) ?

Thanks,
Markus

2012/2/22 Henrik Horneber <Henrik.Horneber@?.de>
Hi,

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

Henrik Horneber





Von:        
Markus Fülle <markusfulli@xxxxxxxxxxxxxx>
An:        
qftest-list@xxxxxx
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@?.de




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,

Markus

_______________________________________________
qftest-list mailing list

qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list


_______________________________________________
qftest-list mailing list

qftest-list@?.de
http://www.qfs.de/mailman/listinfo/qftest-list