Mailingliste - Einträge 2012
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [QF-Test] dependency should be executed only on test-set
Hi Gabriel,Dependencies are designed to run before every test-case as they should fulfill pre-conditions for any test-case in order to make test-cases as independent as possible. In the respective Setup node you should then try to check whether it's required to run through the actual steps via a try-catch or if-else condition.
In your case it might be better to use Setup and Cleanup nodes normally without any dependencies.
You can also think about the following structure: Test-Set ++Setup ++TestSet ++++TestCase 1 ++++TestCase 2 ++Cleanup Best Regards, Martin--On Freitag, Juni 29, 2012 15:11:21 +0200 "Molnar, Gabriel (GE Healthcare, consultant)" <Gabriel.Molnar@?.com> wrote:
Hi, I have a test with following construction: Now The option "Inherit dependency from parent node" in case of test cases is swiched off. A wish, that the setup run before test-set, and the cleanup after Test-set. Now the setup executes before Test-set item, but the cleanup runs after first Test-case item. If I remove the "Forced cleanup" option, the cleanup doesn't execute. I tried to replace the Test-set item to Test-case, and Test-cases to Test. Thus the test and dependency works correctly, but I think, not this is the best solution. How can I resolve this problem? Thanks/Regards G.Molnár
-- Martin Moser martin.moser@?.de Quality First Software GmbH http://www.qfs.de Tulpenstr. 41 Tel: +49 8171 38648-14 DE-82538 Geretsried Fax: +49 8171 38648-16 GF: Gregor Schmid, Karlheinz Kellerer HRB München 14083