ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
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?
 Question Submitted By :: Srikanth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: 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?
Answer
# 1
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 ?    2 Yes 0 No
Abhesheke
 
  Re: 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?
Answer
# 2
Thanks Abhishek
 
Is This Answer Correct ?    0 Yes 0 No
Srikanth
 
 
 
  Re: 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?
Answer
# 3
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
A.thirumalareddy@gmail.com
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
Syntax for how to call one script from another? and Syntax to call one "Action" in another?  2
How to create Userdefined Function.Please write the steps ans also provide example where exatcly we use it. HP1
How to pass a variable in Dos Command using QTP? Eg: Dim path1, path2 path1 = "C:\Test\sample1.doc" path2 = "C:\Test\sample2.doc" How can we pass these path1 and path2 inside the "copy" dos command? I tried like this. this is not working. oShell.run "cmd /K copy" &path1 &path2  1
plz can any one send me what is Automation Testing Frameworks.. Thanks in advance  1
How to Import data from a ".xls" file to Data table during Runtime.  1
where the object repository is located?how to choose the object repository as shared or action object repositories? Datamatics3
Among all the check points what is the most important checkpoint? Semantic-Space5
where did you automate in your project?(please tell me example senarios)  2
Explain about reusable actions? IBM2
OPening of notedpad in QTP to write and execute the coding?  2
why qtp supports vbscript? and not for others just like cgi,phython,shell,perl,html and all.. Cap-Gemini2
hi, i was adding the two numbers in qtp scripts but i didn't get the answer. see my below script, i dont know wht is the problem. i passed the value a=3 b= 2, i got the ans 32 instead of 5. i thing the problem is to be c = a+b my mail id karthis4u@gmail.com Dim a, b, c a = inputbox("enter the a ") b = inputbox("enter the b ") c = a + b print c  5
why don’t use real time they r not using check points Wipro1
Diff b/w WEB TESTING AND Client server testing? Ordain-Solutions3
Hi Friends,I hav Just finished QTP course.Can any body suggest me which is the best place to go and post resume(Ban,Chennai,Pune,Mumbai,NCR,Kolkata).I mean how r calls in these cities,the best one?  1
What is API?  1
explain keyword driven framework? Mindlance2
How many ways we can parameterize data in QTP?  2
using descriptive programming how to close all opend browsers? Satyam4
Hi any body can tell me the in detaled information about Description.Create() thanks in advance  2
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com