Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Action Parameter passing problem
#1
Not Solved
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?
Reply
#2
Not Solved
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Part of parameters missing when passing between actions skumar007 1 3,033 10-10-2014, 02:00 AM
Last Post: skumar007
  Getting run error passing a Frame into a user defined function!!! sepgs2004 1 2,864 10-14-2013, 06:37 PM
Last Post: anil2u
  Parameter bistritapcv 0 2,362 04-02-2013, 09:10 PM
Last Post: bistritapcv
  Parameter iteration bistritapcv 1 3,419 03-28-2013, 10:40 AM
Last Post: Sathiya
Question Add parameter to Data table during run time switoo 1 3,038 12-06-2012, 02:37 AM
Last Post: frebuffi

Forum Jump:


Users browsing this thread: 2 Guest(s)