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
Describe function procedure in vbscript.
Please guide me release notes of Automation once scripts are completed
iam have done mba(finance)in 2008. in 2008 one reputed consultancy came off campus interview our institution. i got job as "manual test engineer". now iam working as "manual testing engineer". now my problem is when iam going interview the interviewer asking like " ur mba gradute how can u get job in test engineer." this question i have faced every interview. iam explaining how iam getting job. but they are not trust me". pls tell me answer how i am giving relavent ans.. this is my mail id y.ramana84@gmail.com
Explain how qtp identifies object?
what are the limitations of smart identification in qtp 9.0
What are the features of quick test pro(qtp)?
What are the two types of repositories available, explain them?
what could go wrong with test automation?
How to use Environment parameterization? Explain with an example.
What is an optional step in qtp ?
What is standalone database?
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks
What is the use of ordinal identifier in qtp?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.