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 the Different types of QTP test assets and their extensions?

0 Answers  


What is Performance testing?

2 Answers   Crea,


how can i call function (which has link with excell sheet at a remote location) within another function

0 Answers  


What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.

0 Answers   Value Labs,


What are the different attribute used with regular expression?

0 Answers  






If requirments changed then how we can teach the QTP this is the new requirment

2 Answers   Accenture,


Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?

3 Answers  


What is TOM in QTP?

0 Answers  


What all challenges you have faced during automation and how you have resolved it?

2 Answers   Genpact,


How do u retrieve data from a text file into different variables. i.e. in a text file named "source" , the data is like : india,1000,japan,200,china,50,singapore,45050 this is given in the first line of the text file. in the second line of the text file the dta is: sun,moon,planet,river,earth,water if u use "readline" method by using FSO concept u can retrieve the entire line in to a variable. but i want to import each field (ex: "india" in one variable, "1000" in another variable etc..). Apprecitae proper replies.

5 Answers   Semantic Space,


What is the use of "Step Generator" in QTP??for what purpose we are using??explain with an example

2 Answers  


If some requirements r changed during the testing process ,then how can u handle this in frame work?

1 Answers  


Categories