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

Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma

0 Answers  


what are the critical test cases in crm? tell me atleast 5 critical test cases? what are the critical bug u find out while testing crm domain?

0 Answers  


How many types of parameters are available in quicktest professional (qtp)?

0 Answers  


How to execute a winrunner script in quicktest professional (qtp)?

0 Answers  


How to start recording using quicktest professional (qtp)?

0 Answers  






Hi all please solve this.It is urgent..... When I right clicked on a Web image manually It displayed Open link,open link in new window,save picture as, Email picture,Printpicture,propeties...etc. While automation I have written a code like this 'browser("Google").Page("ramseeker®: Memory and_3").Image ("graphOfModel").Click 10,10,micRightBtn But the right click menu was not displayed. I want to save that image in a seperate folder

6 Answers  


How many regression test suits in your appliction?

2 Answers   CTS,


In website, protocol has been changed http:to https what you will do? tell me your approach?

1 Answers  


How can I test the unix shell in QTP

2 Answers   Persistent,


Which property will you use to check the object state? (Exist)

2 Answers   Symphony,


Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..

0 Answers  


Can we use Virtual Objects in Discriptive Programming?

5 Answers   Keane India Ltd,


Categories