i faced one question that suppose i declared one variable in action 1 and and i am declared one more variable in .vbs file and associated that .vbs file to that action 1 how can i pass action 1 variable value in to vbs file variable
First of all you can't associate library to an action. You can only associate it to a Test
Second the answer is simple you just assign the value to the global variable
globalVar = ActionLocal
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **
msnreddy note that the code that Tarun notes has to be inserted within the scope of Action1 as the variable 'ActionLocal' is a local variable to that Action.
-- Here to Learn and share ---
Tips - variable defined in action are location to that action but you can use that variable by passing its value to the function used in .vbs file.
For exa:- Dim UserName As string is used in Action1 which you can pass that value to the Commmon_login(Uname,Pw) Function which is decleared in .vbs file.
Please let me know whether i am correct or not?