[@@ OPEN @@]
Hi Cedric,
Long time no see J
You could try something like this in a server script:
procedureName = rc.getStr("procedureName")
procedureArguments = rc.getStr('procedureArgument')
argDict = eval(procedureArguments)
result = rc.callProcedure(procedureName, param=argDict)
Just make sure the procedureArgument string can be interpreted as a dictionary.
Hope it helps.
Cheers,
Denis Gauthier
System Integration & Verification Leader for TopSky-ATC (HE)
Air Traffic Management
Tel.: +61 3 8630 4407
Mob.: +61 423 493 408
|
The Thales Australia Centre, WTC Northbank Wharf, Atrium Lobby
Siddeley Street
Melbourne, VIC 3005
Australia
|
www.thalesgroup.com.au |
Denis.Gauthier@?.au
|
|

|
This message contains OPEN
information that is not sensitive and can be freely accessed by people both inside and outside of the Thales Group
This email was classified by
GAUTHIER Denis
on Friday, 24 November 2017 10:00:47 PM
From:
qftest-list [mailto:qftest-list-bounces@?.net] On Behalf Of
BENHAROUS Cedric
Sent: Friday, 24 November 2017 9:03 PM
To: qftest-list@?.de
Subject: [QF-Test] Dynamic stringification of procedure parameters
Hi all,
Is there any way to dynamically "stringify" procedure parameters inside a Jython script ?
Example:
someProcedure takes as parameters:
-
name
-
someOptionalVariable
We need to have a local QFTest variable containing : “name=MyName” or “name=MyName,
someOptionalVariable =MyValue” if someOptionalVariable is defined.
Note: This string is to be inflated as java properties to be passed to a call to a QFTest daemon procedure.
Is there any way to achieve this ?
Cheers,
Cédric
[@@ THALES GROUP INTERNAL @@]