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

How to create runtime property for an object?

1540


Does QTP run in any environment?

694


In Remote acess server how u run a test?

1368


can any one say that where we can download the QTP trail version ??????????

1451


what type of automation is follwed in the project?

1581






What is the parameterization? Give one example?

676


Explain qtp(quick test professional)?

659


In qtp, explain what is keyword driven automation framework?

700


To which environments does quicktest professional (qtp) supports?

674


What is QTP scenario.

1817


Can any one say what exact diff between test->parameters, action properties-> parameters. after defining the parameters in test->settings, how can we access those parameters.(i know how to use action prop parameters)

1720


Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

1516


please post the interview questions for QA position in FACTSET

4045


What are the features and benefits of quick test pro (qtp 8.0)?

684


can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.

5286