Logo QF-Test

Finding valuable answers
in the Mailing List Archive.


Free Trial  Download  Buy

Thomas Max, QF-Test training and support

Use the full-text search on our web site to find helpful tips on the mailing list.

Thomas Max, 
Sr. Software Engineer & Trainer, QFS

2017 up to now  | 2016 | 2015 | 2014 | 2013 | 2012 | 2011 | 2010 | 2009 | 2008 | 2007

(older archive entries before 2007 are not shown here, but included in the onsite-search)

Mailing List - Entries of 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

Videos Downloads Documentation Buy Free Trial