Where we write the FUNCTIONS, in Expert view (or) in any
textfiles like Notepad and save it in Library functions
folder? How to cal that functions to our script? How to
save that functions to Function generator?

Answers were Sorted based on User's Feedback



Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Lib..

Answer / abhesheke

it very easy dude
i will tell u

assume i have written a function in notepad and save it with
.vbs extension

"assume this is the function written in notepad"
function Testing

msgbox("welcome to testing world")

end Function

now add this to the library
navigation is test->setting->resources (add this file there)

and in ur expert view just write the function name i.e
Testing run the script it will work

i hope u understood dude any doubt ping me

Is This Answer Correct ?    3 Yes 0 No

Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Lib..

Answer / srikanth

Thanks Abhishek

Is This Answer Correct ?    0 Yes 0 No

Where we write the FUNCTIONS, in Expert view (or) in any textfiles like Notepad and save it in Lib..

Answer / a.thirumalareddy@gmail.com

we can save that library files in our local folder and by using "executefile" method we can directly associate those files

for e.g executefile "path of the library file"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

What is use of object spy?

0 Answers  


Why u don’t like recording the script and writing the script

3 Answers   Wipro,


Explain the terms test and business component?

0 Answers  


what is meant by Implicit and explicit requirements?

0 Answers  


where we are going to write the descriptive programming.for example we are invoking qtp application where we are going to write that code

3 Answers  






Explain in brief about the QTP Automation Object Model.

1 Answers   Crea,


what are the cases in which we use XML and accessibility check points.

2 Answers  


Tell me few important difference Between QTP and WinRunner?

3 Answers   Syntel,


what is retesting?

2 Answers  


HOW to invoke any recorded script in QTP with out using RECORD & PLAYBACK CONCEPT?

1 Answers  


HOW DO U CALL A ACTION IN QTP?

2 Answers   BirlaSoft,


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

0 Answers  


Categories