I hav written a function in an Action.
In another Action i need to call this function.
How do I pass the parameters without putting
the values in the datasheet.
Please help out.
Export the function to an external library file.
Passing vars between actions is one of the enhancements available in the soon-to-be-released QTP V8.
My linkedIn Profile
You can use environment variables to transfer the data from one action to anthoer action.
No need to create dll or something.
A Test Engineer should be a Programmer.
In QTP 8.0, action parameter function can solve your problem.
Set Output parameter for testscript1 and set input parameter for testscript2 that need the value from testscript1.
For details go to QTP help, search "Using Action Parameters".
Yea, if you are using QTP 8, you can pass values btwn actions. Otherwise, the best way is to have a .vbs library file which can be called froma all actions
<font color="red">I test. Therefore I am. </font>