La liste de diffusion est fermée depuis juillet 2022, mais sert toujours d'archive d'informations sur QF-Test.
Cependant, si vous souhaitez rester informé des nouveautés concernant QF-Test, vous pouvez simplement vous abonner à la newsletter :
abonner à la 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
|
1. Cookies fonctionnels
Nous utilisons des cookies fonctionnels pour garantir la fonctionnalité de base du site web.
2. Cookies de performance et de statistique
Nous utilisons Matomo pour analyser et améliorer notre site web. Des cookies permettent une collection anonyme des informations qui nous aident à vous offrir un visite clair et facile à utiliser de nos pages web.
This cookie contains a unique, pseudonymized visitor ID internal to Matomo for recognizing repeat visitors.
This cookie is used to track from which website the anonymized user proceeded to any page or sub-page.
The Matomo session cookie is used to track the visitor's page requests during the session. The cookie is automatically deleted at the end of each session (website visit), at the latest after one day.
is created and should be then directly deleted (used to check whether the visitor’s browser supports cookies).
short lived cookies used to temporarily store data for the visit.
short lived cookies used to temporarily store data for the visit.