2017 bis heute 2016 2015 2014 | 2013 | 2012 | 2011 2010 2009 | 2008 | 2007

(ältere Archiveinträge vor 2007 nicht dargestellt, aber in der Suche enthalten)

Mailingliste - Einträge 2007

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

Re: [QF-Test] How to return a collection from a procedure

  • Subject: Re: [QF-Test] How to return a collection from a procedure
  • From: Martin Moser <martin.moser@?.de>
  • Date: Mon, 04 Jun 2007 14:56:42 +0200

Hello Alfred,

I recommend to use the global statement in Jython-scripts.

So your SUT-script would look like this:

	array = []
	global array
	array = ['a', 'b']

In any following scripts you can do following:
	global array
	#access the array variable again.

If you use the "return" node of QF-Test, you will only get the string
representation of the object, which might cause troubles in reading it


--On Montag, Juni 04, 2007 03:45:23 -0600 Alfred Mathavan
<amathava@?.com> wrote:

Hi Greg,

Any inputs on how to return a collection (List , Tuple )from a procedure
and how to get it in a variable.


To get a list of column values of a table.



Martin Moser                           martin.moser@?.de
Quality First Software GmbH            http://www.qfs.de
Tulpenstr. 41                          Tel: +49 8171 919874
DE-82538 Geretsried                    Fax: +49 8171 919876
GF: Gregor Schmid, Karlheinz Kellerer  HRB München 14083