[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qftestJUI] Question concerning QF-Test procedures and variable bindings.
Hi, I have a question concerning QF-Test procedures and variable bindings. Basically I have the following situation :- Lets say we have procedure 'proc1' which takes a parameter named 'timeout' We also have a procedure 'proc2' which also takes a parameter named 'timeout'. Lets assume that procedure 'proc2' displays the value passed in for the parameter 'timeout' i.e. Procedure proc1 ( param: timeout ) .... .... call proc2 ( $(timeout) ) End Procedure Procedure proc2 ( param: timeout ) .... .... display value of $(timeout) End Procedure If procedure 'proc1' is called with a value of say 500 for the parameter 'timeout', the value displayed is "" i.e. an empty string. Basically, the call to procedure 'proc2' does not pass on the value of 'timeout' which was passed into procedure 'proc1'. Its seems as though a procedure cannot successfully propagate a value onto another procedure which takes a parameter of the same name!! Is this the intended behaviour for QF-Test, it there a way around this, or has one simply got to ensure that in the situation whereby a procedure propagates a parameter down to another layer, the procedure in the next layer down simply cannot have a parameter of the same name? Comments would be very much appreciated. Thank you Regards Adrian Example test-suite file to illustrate the problem. (See attached file: example.qft)