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

Which is the best testing institute for QTP training in Hyderabad.

25 Answers   Wipro,


what is the main process in QTP?

3 Answers   Ordain Solutions,


If I change the property value at runtime is it effect is object repository?

0 Answers  


What is Automation frame work.How we will prepare in real time.

9 Answers   AppLabs,


What is throw object?

1 Answers  






hi this is srinivasa(from blr) i complited my B.tech(e.c.e) in 2007 im searching job in s/w testing but idont have freshers resume for s/w testing please send some s/w testing resume for me(fresfers resumes only) advns thnks you

2 Answers  


how can we do the frame work in qtp

0 Answers   L&T,


If the web applicatoin takes navigation time above 2 hours to dispaly next Web page then how can we synchronize the QTP with Appilication Under Test

4 Answers   TCS,


what is KEYWORD DRIVEN TESTING ? I M NOT ASKIN WHAT IS KEY WORD VIEW PLZ ANS FOR ONLY WHAT IS KEYWORD DRIVEN TESTING EXACTLY THANX

3 Answers  


I am a new tester that needs to create an automatic script involving security questions. On a webpage I need to select a security question(which are random) from a drop down menu, and then input the answer as the last word from the security question. I have the script set-up to automatically select the first security question from the drop down. The problem I am having is trying to insert the security answer. How do I insert the security answer based on the selection from the security question?

0 Answers  


Hello, I am learning QTP. I have recorded test for Login page, i have also inserted checkpoint for Email field & when I run test it passed. But when i tried to run test by inserting 'Adding Parameter Values to a Data Table' for email & password field, it pass the first value in both the fields but after that when test run for second parameter values it displays 'Internet Explorer cannot open the Internet site, Operation aborted' & when i analyze test result it displays run time error 'Object disable'. I have also cleared all the history from IE but it is not working. Please help me. Thank you.

2 Answers  


can a Function return more than one value..??? if so please give me the code for that.

5 Answers   DST Global Solutions,


Categories