The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
If you want to stay informed about news about QF-Test, you can simply subscribe to our newsletter:
Subscribe to Newsletter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] Dependencies - is it possible to execute cleanup in a test set exactly after the last testcase?
Hi Bernhard, the cleanup node of dependencies are designed to be executed only on demand. This means: -- at the end of the batch run -- if a characteristic variable has been changed -- if the variables it not used at all If you trigger the test execution via daemon you have the following ways to trigger the cleanup: 1.) If you use -calldaemon batch command, use the parameter -stopsut in addition. 2.) If you use a custom API, call the "cleanup()" method of the daemon object 3.) In both cases you could consider to call a dummy test-case with an empty dependency and empty sequence, which will trigger the cleanup step as well. 4.) Perhaps you should consider to outsource the startWorkerThread and stopWorkerThread to a TestRunListener and implement the runStarted and runStopped methods accordingly. Best Regards, Martin Am 11.09.2017 um 17:47 schrieb Bernhard Schmitt:
Hello, I have a test set ‚TwoTestcase‘ with two test cases. I want to be able to start the complete test set via daemon I want to be able to start a single testcase out ofthis set with the daemon. In both cases, at the startup ofthe test run, I want to launch a worker thread to create html reports in time At the cleanup of the test run, I want to stop the worker thread. My first aproach is: QFTest I have the following topics: ·When the cleanup is not forced, It will be not executed at the end ·When it is forced, it will be executed after each testcase ·Whe I use Setup/Cleanup directly instead of the dependency, I can not start a singe TC via daemon, because setup/cleanup is not proceed in this case What I need is a dependency, which executes the cleanup exactly at the end of the test run. BR Bernhard _______________________________________________ qftest-list mailing list qftest-list@?.de https://movement.qfs.de/mailman/listinfo/qftest-list
-- Martin Moser E: martin.moser@?.de T: +49 8171 38648-14 F: +49 8171 38648-16 Quality First Software GmbH | www.qfs.de Tulpenstr. 41 | 82538 Geretsried | Germany GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer HRB München 140833