How to call a function in QTP?

Answers were Sorted based on User's Feedback



How to call a function in QTP?..

Answer / 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

How to call a function in QTP?..

Answer / heheheuser

You just have to call the name similarly as your parents
call you by name.
So while running just keep calling the name of the function
with a midtone vice and all izz well !!

Is This Answer Correct ?    1 Yes 0 No

How to call a function in QTP?..

Answer / shaik

Welcome to Cinemachance. The place where you can Show ur
Talent FREE of Cost. Get an instant access to aspiring &
established Indian actors, models, singers , music -
directors , dancers , directors , story / song writers,
cameraman , film-editors , production , technicians male
models under one roof . Actress and female models, preteen
models, teen models, kid models. If you have a dream to
become the one, then this is the right place for you. Just
See the Difference.This site is constantly viewed by movie
producers, casting directors, television commercial makers
,agencies.mail us your photos&videos email
mramnadham@yahoo.com 21\11\2008

Is This Answer Correct ?    2 Yes 4 No

How to call a function in QTP?..

Answer / cv

File-> Settings->Resources This is thecpath for calling
function in qtp

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

It is regarding VBScript, how to export our function results to ExcelSheet through VBscripting. Ex: I have written add function, that result should export to Excel.

3 Answers  


There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code

0 Answers  


what are the design objects in qtp

3 Answers   Wipro,


how to write regular expression for Date field?

12 Answers   Google,


How to call .vbs funtion , Library files in QTP? plz Explain indetail(chandana)

6 Answers   Wipro,






Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5

2 Answers  


how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance

0 Answers   Synergy,


How do I modify a value of an elemnt which is not the first one in xml file? My sample XML file is like: <Environment> <Variable> <Name>Name</Name> <Value>Uday Kumar</Value> </Variable> <Variable> <Name>Designation</Name> <Value>Senior Software Engineer</Value> </Variable> </Environment> for example, I'd like to change the value 'Senior Software Engineer' to 'Student' in the second element. How do I do it in QTP?

3 Answers   QualiTest,


what is output parameters in qtp?explain? 2)

2 Answers   Span Infotech, TCS,


How can we translate the steps between the Keyword and Expert Views?

1 Answers  


How to enter table check points?

2 Answers  


How does QTP identifes the object in the application?

1 Answers  


Categories