List Icon
Mailing list Archive

2019 up to July 2022 | 20182017  |  2016  2015 2014 | 2013

The mailing list has been closed since July 2022, but continues to serve as an archive of information about QF-Test.
If you want to stay informed about news about QF-Test, you can simply subscribe to our newsletter:
Subscribe to Newsletter  

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

Re: [QF-Test] Possible enhancement

  • Subject: Re: [QF-Test] Possible enhancement
  • From: "Yann Spöri, QFS Support" <support@?.de>
  • Date: Thu, 20 Nov 2014 17:16:52 +0100

Hello Bryan,

First of all have a look at the "External data and special groups"
section in the manual [1]. QF-Test already provides some miscellaneous
statistical values. For example you can get the number of successful
test-cases in the current test-run with ${qftest:count.testcases.ok}.

Next you can write your own TestRunListener [2] for statistics that
QF-Test doesn't already provide. For example the following
TestRunListener counts the number of executed (check/event) steps - add
a Jython Server Script with the following content to your setup sequence:

    from de.qfs.apps.qftest.extensions.qftest import TestRunListener

    class StatisticTestRunner (TestRunListener):
        def __init__(self):
            self.allSteps, self.checkSteps = 0, 0
            self.eventSteps = 0
        def runStopped(self, event):
            print "steps: %s\ncheckSteps: %s" % (self.allSteps,
            print "eventSteps: %s" % (self.eventSteps)
            # reset counts
            self.allSteps, self.checkSteps = 0, 0
            self.eventSteps = 0
        def nodeEntered(self, event):
            self.allSteps += 1
            nodeType = event.getNode().getType()
            if (nodeType.startswith("Check")):
               self.checkSteps += 1
            elif (nodeType.endswith("EventStep") or nodeType ==
                self.eventSteps += 1

    global statisticTestRunner

    statisticTestRunner = StatisticTestRunner()



Am 18.11.2014 20:16, schrieb Kaufman, Bryan H (IS):

Has anyone ever asked for a feature that would report the number of test
steps executed in a test suite? It would be nice to know how many steps,
how many checks, the volume of testing being performed, etc. during a
test run. It seems like it could be good marketing as well, to be able
to express how much work is being performed by the automated testing tool.


Bryan Kaufman

Highly Satisfied QF-Test user since 2008

qftest-list mailing list


Get the most out of QF-Test - Support directly from the authors
* Training & consulting:
* Phone & email support:

Yann Felix Spöri

E: support@?.de
T: +49 (0)8171 38648-20
F: +49 (0)8171 38648-16

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