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

Explain script generated at the time of setting runtime property?

1 Answers  


Please Clarify if smartidentfication is used at runtime when qtp does not recogonize the objects

3 Answers   Ordain Solutions,


When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)

3 Answers  


What are the common defects found in your project? (in qtp interview)

0 Answers   TCS,


Both static and dynamic arrays are handled by the vb script. Is it true?

0 Answers  






Explain Checking XML....

1 Answers   Crea,


hi i have one issue while automating the script using QTP i want scrool down .i cannot do even using scrool down methqad is not working .the object will take WebElement plz is there any code help me

3 Answers  


In Descriptive programing if i use this below code will it work for login window or flight Res Window. Shud i add the properties like attached text=login and text=Agent Name in the object repository and define a new object first. Pls tell me the procedure in clear inorder to execute this script. Dialog("title:=Login").WinEdit("attached text:=Agent Name:").set"agent123" Dialog("title:=Login").WinEdit("attached text:=Password:").set"mercury" Dialog("attached text:=Login").winbutton("text:=OK").click

2 Answers  


what is the diff b/w assistive and mandatary rules of object repository in QTP???

0 Answers  


What is the latest version of qtp?

0 Answers  


How does quicktest professional identifies the object in the application?

0 Answers  


How QTP recognize the object??how to add objcts into object repository??

3 Answers  


Categories