What is User defined function in QTP

Answer Posted / arun

User defined function is nothing but we write our own
functions to perform set of action which contains a login to
execute some steps on the application without making use of
inbuilt qtp functions or which contain full logical code by us.

For. Eg:
If you need to do some arithmetical operation and just
return the value to some object (textbox) or some thing
else. Then write a funcion on ur own and pass the value to
do the operation and that's it.

Similary if u want to do some event handling like check,
click, select object, do some decission making etc. based on
return value u can make use of functions effectively.

Hope ur got the answer.

Thanks & Regards

Arun*
BOSTON, USA

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is parameter in qtp?

772


How to change the priorities of the recovery scenario properties?

686


1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?

1715


What is a Patch in QTP?

688


What are the different types of qtp test assets and their extensions?

714






Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris

1829


Explain object spy in qtp.

692


Is it possible to call from one action to another action in qtp?

677


Explain the concept of object repository and how quicktest professional recognises objects?

642


Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you

1577


How to handle dynamic objects in quicktest professional?

589


What is the synchronization point in qtp?

651


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1538


What is checkpoints for quicktest professional?

651


What is the Command used to start the QTP

1612