Micro Focus QTP (UFT) Forums
Action Parameter passing problem - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Action Parameter passing problem (/Thread-Action-Parameter-passing-problem)



Action Parameter passing problem - Qtpuser1 - 04-05-2014

Hello, I am new in QTP. Can anyone help me to solve a problem? I have Action1 and Action2. I called Action2 from Action1. In Action2 I have input, Input2 And Output1 as input and out parameter. In Action 1 I wrote Input1 = 10, Input2 = 30, Dim Output and then RunAction "Action2", Input1, Input2, Output1. then MsgBox Output1
In Action2 I have --- Parameter ("Output1") = Parameter ("Input1") + ("Input2)
But when I execute the test case it only shows 1030 not the addition of the two values. What is the error in the code, can anyone please explain me?


RE: Action Parameter passing problem - kgovadav - 04-18-2014

This will happen if the parameter type is given as string in Action 2.
Please check Action 2 parameter types and change it to Number from String.

Let me know if this works.