How to call a function in QTP?

Answer Posted / amarendra kothuru

Syntax to declare a function
Function functionname(parameter1, parameter2, etc...)
'statements....
End Function

E.g: Function Myfunc(a,b,c)

Calling the function in test script:

E.g:
1)Call Myfunc(a,b,c)
2)Myfunc a,b,c

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is business process testing(bpt) in qtp?

892


When ‘option explicit’ keyword is used in qtp?

966


What is QTP testing process?

816


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

2381


What will be happen if i load object repository at run time, but it has already associated.

1496


can i compare two databases using QTP ?

2133


what is Property......End Property loop? how to write sript for it in QTP

2124


What is the default object synchronization timeout in qtp?

882


desribe a situation where u faced a stressful situation and how did u cope with it

1635


Explain qtp(quick test professional)?

773


How many add-ins comes by default with quicktest professional (qtp)?

755


Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.

1919


Explain how qtp identifies objects?

775


Our company is having a windows client server application developed in vb.net. so there is a treeview and i am not in a position to record the click events in QTP. so kindly help. Vivek

1797


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1553