List Icon
Archiv Mailingliste

2019 bis Juli 2022  2018  | 2017 2016 2015 | 2014 | 2013

Die Mailingliste ist seit Juli 2022 geschlossen, dient aber weiterhin als Informationsarchiv zu QF-Test.
Wenn Sie über Neuerungen zu QF-Test informiert bleiben wollen, können Sie einfach unseren Newsletter abonnieren:
Newsletter abonnieren

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

[QF-Test] [QFTest] - How to filter Test-cases for test execution

  • Subject: [QF-Test] [QFTest] - How to filter Test-cases for test execution
  • From: "Yann Spoeri, QFS Support" <support@?.de>
  • Date: Mon, 11 Jun 2018 17:11:55 +0200
  • Delivered-to: qftest-list@?.net

Hi everyone,

> 1- Ability to set label(s) or tag(s) on each Test-case

Simply add the following statement to the condition-attribute of your Test-sets/Test-cases:

len(set(rc.lookup("testsToExecute", None, False).split(";")).intersection(set(["label1", "label2", "label3", "label4"]))) > 0

(and replace the "label1", "label2" ... strings by the wanted labels)

> 2- When launching QF-Test in command line, ability to specify one or more label(s)

Call qftest via:

qftest -variable testsToExecute=label1;label2

now, a test-case/test-set only gets executed when the test-case/test-set contains at least one label that has been passed via command-line. In
case no variable testsToExecute is given (either over command-line or set manually afterwards) an exception will be thrown.

Greetings & Happy testing,

Am 11.06.2018 um 10:03 schrieb Sophie Do Khac:
Hello all,

For our application, we have created severalTest-suites and in eachTest-suite we have severalTest-cases.

Today the execution time of allTest-suites reaches a maximum.
So, we would like not to run allTest-suites andTest-cases each time we have to validate a new change in our application.
Instead we would like to run onlyTest-cases ofTest-suites functionally linked to the change (risk analysis).

I have in mind a process in 2 steps:
1- Ability to set label(s) or tag(s) on eachTest-case
2- When launchingQFTestin command line, ability to specify one or more label(s) (with operators AND and OR) andQFTestonly executesTest-cases
matching the label condition

I've read theQFTestmanual and I don't find any way to reply to my need.
Do you have any idea to help me?

Thanks a lot in advance,


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 8171 38648-20
F: +49 8171 38648-16

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