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 2014

[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: www.qfs.de/en/qftest/training.html
* Phone & email support: www.qfs.de/en/qftest/support.html

Yann Felix Spöri

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

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

Videos Downloads Documentation Buy Free Trial