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
How u will do versioning in QTP?
what you mean by artifact,milestone...
Explain the check points in quicktest professional?
How to do the scripting. Are there any inbuilt functions in QTP? What is the difference between them? How to handle script issues?
What is the difference between run time object and test object in QTP?
How can I import environment from a file on disk?
write a script to verify the image path(src property) of the images which are in web pages.
Explain the features of quick test pro(qtp)?
Which scripting language used by quicktest professional?
Explain the checkpoint in qtp?
HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
How will internal and external links be validated and updated? how often?
What we are looking for is to load properties of object dynamically as for our application the global repository will pretty huge. It will be really helpful to us if something similar to following functions of Winrunner is available in QTP. #Define descriptor auto strDesc; #set property in the descriptor Gui_desc_set_attr(strDesc,?Class?,?Edit?); --- put other properties #Add Edit box to GUI Map Gui_add(? ?,strWindowName,strEditboxName,strDesc);
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.