Hi PLZ explain User Defined Functions in QTP with eample?
Answer Posted / amarendra kothuru
Functions - two types
1)Buitin - Prepared by QTP
2)User Defined - Prepared by programmer/tester
Syntan to creat User defined function in QTP
Function FunctionName(Parameter1, Param2,.....)
Statement1
Statement2
.....
.....
End Function
Example:
Function Bigger(value1, value2)
If value1 > value2 Then
Bigger = value1
Else
Bigger = value2
End If
End Function
Calling the function in the script
Result = Bigger(20,21)
Msgbox Result 'gives 21
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is a data driven test in qtp?
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
How to test login module with different username and password by using data driven testing in QTP?
when will you do debug your script? and explain that process?
write script for bitmap image?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
Can we use index on view?
If created one virtual object? Next time I changed the window position will it work?
how to prepared for first for the first interview?
What is system testing and what are the different types of tests you perform in system testing?
Name the different types of recording modes?
What does mean by Scope of Automation?n How we defined it?
Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John
What is the expert view?