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]

Re: [QF-Test] Dynamic stringification of procedure parameters

  • Subject: Re: [QF-Test] Dynamic stringification of procedure parameters
  • From: GAUTHIER Denis <Denis.Gauthier@?.au>
  • Date: Fri, 24 Nov 2017 11:01:02 +0000
  • Delivered-to: qftest-list@?.net
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=dkim; bh=JBcXkRR/uBr7AS+61hZT9wU7VIKG6d7zcVzTZgU/NcQ=; b=O+hQe97wvjQIeXDF68Va6sXvDsznCyQePgDE3CZQj3HOgNxj8b9vM5/B/jAErhWJ9hWU /xgkD5IrtBRkWkEG0PVnzCy0/nQo0gwO2LOo81qDrnX2nQ08mb5iOor486CX0VCJNBYy 9hSa4xjwOBN0zA6BVts9GD7qa45MbM/10Ji0tJgq/EfKP4kaLzOk9qMCvm3c4Iip7Huy mwtfoj/1KNvkMdw1X1kgVQEIeg9C6artpSfL407Q9w2edDGucaoHquFwGSs2Scds17lW KAvwbtk4f/57mS6gU5lf9rK8eFQHJrqTfixTBvN4/32eIKjZ061RlcjfotzB31DPMLJm Cg==

[@@ 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.



Denis Gauthier
System Integration & Verification Leader for TopSky-ATC (HE)
Air Traffic Management
Tel.: +61 3 8630 4407
Mob.: +61 423 493 408

Thales Australia

The Thales Australia Centre, WTC Northbank Wharf, Atrium Lobby

Siddeley Street
Melbourne, VIC 3005
Australia | 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 byGAUTHIER 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 ?


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 ?







DISCLAIMER: This e-mail transmission and any documents, files and
previous e-mail messages attached to it are private and confidential.
They may contain proprietary or copyright material or information that
is subject to legal professional privilege. They are for the use of
the intended recipient only. Any unauthorised viewing, use, disclosure,
copying, alteration, storage or distribution of, or reliance on, this
message is strictly prohibited. No part may be reproduced, adapted or
transmitted without the written permission of the owner. If you have
received this transmission in error, or are not an authorised recipient,
please immediately notify the sender by return email, delete this
message and all copies from your e-mail system, and destroy any printed
copies. Receipt by anyone other than the intended recipient should not
be deemed a waiver of any privilege or protection. Thales Australia
does not warrant or represent that this e-mail or any documents, files
and previous e-mail messages attached are error or virus free.