List Icon
Archive de la liste de diffusion

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?

  • Subject: Re: [QF-Test] Dependencies - is it possible to execute cleanup in a test set exactly after the last testcase?
  • From: Martin Moser <martin.moser@?.de>
  • Date: Tue, 12 Sep 2017 20:48:22 +0200
  • Delivered-to: qftest-list@?.net

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

2.) If you use a custom API, call the "cleanup()" method of the daemon

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,

Am 11.09.2017 um 17:47 schrieb Bernhard Schmitt:

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:


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.



qftest-list mailing list

Martin Moser

E: martin.moser@?.de
T: +49 8171 38648-14
F: +49 8171 38648-16

Quality First Software GmbH |
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833