Interview Questions   Tutorials   Discussions   Programs   Videos   

QTP - How to call functions in QTP?




240
views
asked marvit August 13, 2014 09:04 AM  

How to call functions in QTP?


           

1 Answers



 
answered By Dharma   0  
Transfers control to a Sub or Function procedure.

Syntax:

[Call] name [argumentlist]

Arguments
Call:     (Optional) keyword, If specified, you must enclose argumentlist in parentheses.
name:     (Required) Name of the procedure to call.
argument list:     (Optional) Comma-delimited list of variables, arrays, or expressions to pass to the procedure.

Example:
'Call a Sub procedure
Call Addition(5 , 4)
 
Sub Addition( num1,num2)
Result=num1+num2
Msgbox "the Sum of the numbers is  " & Result
 
End SubAdd Code Here

flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert