Mailingliste - Einträge 2005


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

[qftestJUI] Assigning procedure result into the variable that is used in parameter


  • Subject: [qftestJUI] Assigning procedure result into the variable that is used in parameter
  • From: "Yuri Tsyganenko" <tsyg@?.com>
  • Date: Wed, 18 May 2005 11:00:32 +0400

Hi all,

I tried some simple tests to understand what's happening when procedure
returns a result. The snag is that the same variable is used in
parameter and in assigning result. 

 To see the strange result execute:
1) the whole test - Works OK
2) Just the mytestFAIL sequence - Fails: the result is not assigned into
'var'
3) mytestOK sequence - it is just to show how to overcome the problem

   Adding local variable 'var' into 'mytestFAIL' sequence changes the
result of procedure execution: the result becomes equal to those
returned by procedure. 
	Otherwise, without that local variable, but when 'var' is
assigned in outer test: executing just 'mytestFAIL' sequence will leave
'var' equal to the very initial value, as if the procedure was not
called.
 Why is this difference? 


Yuri Tsyganenko
tsyg@?.com 
www.DataArt.com 
 

Attachment: test_param_return.qft
Description: test_param_return.qft


Videos Downloads Dokumentation Kaufen Gratis Testen