Mailingliste - Einträge 2005

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

[qftestJUI] Automated way needed to substitute all parameters to calls

  • Subject: [qftestJUI] Automated way needed to substitute all parameters to calls
  • From: "Yuri Tsyganenko" <tsyg@?.com>
  • Date: Fri, 6 May 2005 23:14:38 +0400

Hi Greg, Karl, and all!
   As I now know, when calling a procedure that have a 'var' parameter I
can easy damage the external var definition when setting var to $(var)
in the procedure call. Now I managed to reproduce it in a small example
- it's attached: ParamLost.qft

SkipParam.qrz - default value in InternalProc procedure is look result,
not the one specified in it's call from ExternalProc.

SupplyParam.qrz - shown that when the parameter value is given in
ExternalProc call - the lookup in InternalProc founds those given value.
  I red the manual chapter 9, and understand now it is correct behavior,
not a bug. I wrote test-suites with many procedures, thinking the
variables in procedure are parameters, passed by value. This is my fault

  As I understand, the way to fix my fault is to substitute every
parameter in each call of any procedure.  (Is it correct?)

Currently I'm looking for a way to automatically verify all calls are
supplying all the procedure parameters.  Is there any way, or I have to
program such fix myself?

When writing a procedure call and choosing a procedure there is a very
useful option 'Copy parameters'. Unfortunately in many procedures
parameters were added later - after these procedures were already used
in many scripts.


Yuri Tsyganenko

Attachment: SkipParam.qrz
Description: SkipParam.qrz

Attachment: SupplyParam.qrz
Description: SupplyParam.qrz

Attachment: ParamLost.qft
Description: ParamLost.qft