Hello to all. I am fairly new to QTP. Issue is:
Action 1 calls action 2.
Action 2 returns variable x (as output parameter) with value initialize so Action 1 can use.
I have x defined as an output parameter for Action 2. But when I print x in action 2, it has no value but x has a val in action 1.
I'll be grateful for the help. Thanks
In Action1, the call to Action 2 should look like this:
RunAction "Action2", oneIteration, "Input Vars", "Output Var"
In Action 2 here is how to set x:
Parameter("x") = "Some Value"
So to display or use x in Action 1, you use "Output Var" instead.
I'm not a complete idiot - some parts are missing.
Thanks a lot for the response. I tried that and it worked
Thanks a lot.It is ok