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] How to handle name resolvers with multiple clients?

  • Subject: Re: [QF-Test] How to handle name resolvers with multiple clients?
  • From: Michael Höber, QFS Support <support@?.de>
  • Date: Fri, 2 Nov 2012 08:46:04 +0100

Hello Clement,


the 'resolvers' module is only available at 'SUT script' nodes and thus a resolver is always running at a defined SUT context.

Every 'SUT script' node has a 'Client' attribute which describes the client process in which to execute the script.

That means you have to launch the client at first and afterwards register all necessary resolver in its context.

If you have multiple clients you have to register the resolvers for each client.

To avoid redundant code you could place those resolvers at a 'Procedure' where the 'Client' attribute is a variable

which gets expanded to the respective client when the procedure is called e.g. from the setup dependencies.

For more information please see:




Best regards,




Get the most out of QF-Test - through training directly from the authors

* via webinar       http://www.qfs.de/en/info/OnlineTraining_QF-Test.pdf

* here at QFS             http://www.qfs.de/en/info/Training_QF-Test.pdf


QFS Support - Michael Hoeber            

Quality First Software GmbH                http://www.qfs.de

Tulpenstr. 41                         Tel: +49 8171 38648-20

DE-82538 Geretsried                   Fax: +49 8171 38648-16

GF: Gregor Schmid, Karlheinz Kellerer     HRB München 140833



From: qftest-list-bounces@?.de [mailto:qftest-list-bounces@?.de] On Behalf Of MEVEL Clement
Sent: Wednesday, October 31, 2012 10:16 AM
To: qftest-list@?.de
Subject: [QF-Test] How to handle name resolvers with multiple clients?


Hi all,


I want to add name resolvers for multiple class in multiple clients.

Actually there is only the name resolvers of my 1st client launched that work. The 2nd and other clients launched are not taken into account by the name resolvers.

Here is the code:

"resolvers.addNameResolver2(class, getClassName, class)"


With getClassName:


"def getClassName = {

                Component comp, name -> QFTTools.renameComponentsAttributes(comp)



Are the name resolvers attached to a specific client or are they global to all?


1) If they are attached to one client:

                * How to specify which client is concerned?

2) If they are global:

                * How can I handle my multiple clients?

                * Are the name resolvers active if the clients are not already launched ? It will be useful to declare all the resolvers and then to launch all the clients.


I hope my explanations are understandable.


Best regards


Clement Mevel

Videos Downloads Documentation Buy Free Trial