I have created one environment variable and I set its value in first action I want to access this value in other action but I am not able to retrieve that value using environment("env").
How can I retrieve values from one action to other ?
I have created a user-defined variable.
Environment variables of type external can't be updated directly.
Here is the sample code for you to start with. http://www.sqaforums.com/showflat.php?Ca...true#Post363541 http://www.sqaforums.com/showflat.php?Ca...true#Post428503
to make it easy why don't you use global variable? add variable in vbs file then access between any action [img]/images/graemlins/smile.gif[/img]
I could solve my issue using Environment.Value
Antoney, how do you define Global variable ?
I hope you know how to create .vbs file for your functions and add that into your repository.
inside the vbs file just dim a variable in the beginning of the file (not inside any function)
I use g_ to identify myself that it is a global variable. for local I use l_
This should work
Environment.Value("Test") = "XYZ"
Tarun Buy the NEW QTP Descriptive Programming Unplugged Book ** Download QTP Unplugged 2nd Edition eBook for FREE **