Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all articles
Browse latest Browse all 1793

Executing RunAction along with Function Call

$
0
0
Action 1:

Dim a, b, c
a = 10
b = 20
c = 30


RunAction "Action2", 0, "Login_To_AUT " & """ & a & """, """ & b & """, """ & c & """

Action 2:

func = Parameter("Function")
spc_func = InStr(1,func ," ")
environment.Value("FnName") = Mid(func ,1,spc_func -1)
Execute func

Function Login_To_AUT(ByVal a, ByVal b, ByVal c)

Print a
Print b
Print c

End Function


Whenthe test was executed it stops at Action 1 of 'RunAction' Statement and displayed the below error.

You specified more parameters in your RunAction statement than the number of parameters defined for the action.

Could you please someone help to find what is the problem with the RunAction statement.

Viewing all articles
Browse latest Browse all 1793

Trending Articles