Micro Focus QTP (UFT) Forums
How to control WAIT time with STATIC variable? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to control WAIT time with STATIC variable? (/Thread-How-to-control-WAIT-time-with-STATIC-variable)



How to control WAIT time with STATIC variable? - chong67 - 06-21-2012

I got a few test scripts with different WAIT time.

I am trying to declare STATIC variable on my Function file (.qfl)

For example, I declare this in the function libraries (.qfl) file

Dim MAINPAGETIMER = 20

On my test case, I try to do this:

WAIT(MAINPAGETIMER)

But it doesnt work.

Can someone help me more on this?


RE: How to control WAIT time with STATIC variable? - sshukla12 - 06-21-2012

Hi,
Declare the variable as
Public MAINPAGETIMER
MAINPAGETIMER =20

and associate this file to ur script.

It will work 4 u.

Regards,
Sankalp


RE: How to control WAIT time with STATIC variable? - chong67 - 06-22-2012

Thank you Sankalp!

That help alot!


RE: How to control WAIT time with STATIC variable? - sshukla12 - 06-22-2012

U r always welcome. Wink

Regards,
Sankalp