08 November 2017

How to declare a variable in one Function and use the same in different Function in UFT

Function Msg1()

    Execute "Public X : X=10"
    ExecuteGlobal "Public Y : Y=10"


End Function

Function Msg2()

    MsgBox X 'Returns empty
    Msgbox Y 'Returns 10


End Function


Call Msg1
Call Msg2



...

No comments:

Post a Comment

AOM - Automation Object Model

'Creating QuicTest Object Set  qtapp =  createobject ( "QuickTest.Application" ) 'Launching the Application If  qtapp...