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
Explain the Different types of QTP test assets and their extensions?
What is a Patch in QTP?
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?
How to open a new test using quicktest professional (qtp)?
what are the limitations of smart identification in qtp 9.0
What is the Difference between test object and run time object?
whow much strong on VB and C?
How do you test DLL files using automation Tool QTP?
How to get the particular property value?
What are the different types of checkpoints?
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
I am trying to install QTP 9.5 but i am getting error message saying that ("Path is \QuickTest Professional\bin\vb_init.exe") vb_init.exe file is not find. can anybody give me the advise what to do ?
What are benefits of qtp?
hi can any body give me a script for creating a modularity or keyword driven framework..i am working as a qtp tester for 2 months but still i am not exposed to framework in my company