how to create user defined functions in QTP? can any one
expalin me with example..
Thanks in Advance for help

Answer Posted / chandu

u can create user defined functions by saving the file
as .vbs..just open notepad and write as below and save the
file with the ext .vbs

public function test
x=6
For i= 1 to x-1
x=i*x
Next
msgbox x
end function
then in QTP goto
File>settings>resources tab..add the .vbs file u created..
and then write call test.....in ur editor.

thanks
chandu

Is This Answer Correct ?    18 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should I use smart identification?

592


How to handle the exceptions using the recovery scenario manager in qtp?

560


What is the extension of the qtp local repository? If it is .mtr then what is .bdb extension stands for?

560


what is test scheduleling?

2002


How can you exit from an action?

605






What is Distributed testing? How does UFT support it?

597


How to remove associated function library?

550


who QTP recognizes the object stored in object repository?

1655


How to use actions in qtp ?

581


What is a programmatic description?

589


what are the limitations of smart identification in qtp 9.0

1917


What are the features supported by UFT?

657


How to analyzing test results using quicktest professional (qtp)?

576


What test you perform mostly? Regression or retesting in your testing process?

566


Explain the qtp test phases.

609