2019 bis heute  2018  | 2017 2016 2015 2014 | 2013 | 2012

Mailingliste - Einträge 2012

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

Re: [QF-Test] Is there a way to "re-execute" only failed test cases

  • Subject: Re: [QF-Test] Is there a way to "re-execute" only failed test cases
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Thu, 06 Sep 2012 21:16:33 +0200

Hi Sean,

there's no out-of-the-box way to do this, but you can implement this
functionality with the help of a TestRunListener, described in manual
section 39.5:


Basically you need to register the listener at the beginning of your
test. You'll want to implement the nodeExited method. When exiting a
TestStep, call event.getLocalState to determine whether it failed and
in that case, save it's name in a list. At the end of your test,
in the Re-Run Test, disable the list and go through the list to call
each failed test.

Best regards,

Sean Cook <qftest@?.net> writes:

> Is there a way to capture the failed test cases and when the test run is complete, simply re-run
> the individual test cases that failed a second time? I would like to only mark tests that fail as
> failed when the have failed twice.
> Test Suite A
> Test Case 1
> Test Case 2
> Execution
> Test Suite A
> Test Case 1 Fail
> Test Case 2 Pass
> Re-Run
> Test Case 1 Pass
> Cheers,
> Sean

Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                               Tel: +49 8171 38648-0
DE-82538 Geretsried                         Fax: +49 8171 3864816
GF: Gregor Schmid, Karlheinz Kellerer          HRB München 140833