[@@ OPEN @@]
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.
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
Melbourne, VIC 3005
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
on Friday, 24 November 2017 10:00:47 PM
qftest-list [mailto:qftest-list-bounces@?.net] On Behalf Of
Sent: Friday, 24 November 2017 9:03 PM
Subject: [QF-Test] Dynamic stringification of procedure parameters
Is there any way to dynamically "stringify" procedure parameters inside a Jython script ?
someProcedure takes as parameters:
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 ?
[@@ THALES GROUP INTERNAL @@]