how to call a funtion in a script? i have saved the login
scipt in notepad. with extension .vbs. But when i am
calling the function with the keyword CALL <Function Name>.
its not working out. can any one give me a clue how to call
the external functions. with example.

Answers were Sorted based on User's Feedback



how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. B..

Answer / hemakumar.m

ExecuteFile "Path of vbs file"
Call Login()

Is This Answer Correct ?    4 Yes 0 No

how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. B..

Answer / supriya

you have to associate the library function using file--
>settings-->resources

and then just call the function using its name
It will work

Is This Answer Correct ?    2 Yes 0 No

how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. B..

Answer / sunnyk8

If it still wont work with either of these 2 options of
file-setings-resources & executefile "path of file" then the
problem is with the naming conventions

Naming conventions should b function functionname
---------------
---------
-----
End function

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to retrieve the data from database?

6 Answers   Wipro,


How can we test an XML using QTP? I have been to an interview, where they have given me an XML which had 15 values and they have given those values on a separate page. They asked me to write a QTP script to check the XML is having those particular 15 values.

2 Answers  


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

0 Answers  


There is one login screen,after accepting valid username and apassword, it will show the next screen. In the 2nd screen u r having 2 combo boxes, U have to select any item from these, and click OK button. After closing that, it will show the 3rd screen. If u click CANCEL button from 2nd screen it will show the first screen. Write QTP script for it???

1 Answers   Sonata,


After geting the modules where we generate the script ie in qtp or notpad ?

1 Answers  






1. Pls can anyone give me the descriptive programing script to find the number of edit boxes in a login window in flights reservation (windows application only not web). 2. Using descriptive programing, how do you handle changing URLs. Pls anyone, very urgent

2 Answers   Infotech,


what is use of the object repository?

4 Answers  


what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

0 Answers   Intel, Satyam,


How do u write regular expression for a window name which is changing for each build ? i.e. in first build the window name is : "computer graphics are very ...." . in second build the window name is : "computer graphics can be created" . - Appreciate proper replies

4 Answers   Semantic Space,


give the code to count child objects (Total) in the page

1 Answers  


What are the differences between qtp and winrunner?

0 Answers  


Hi Friends ,I want to Know name of the Site for the QTP Help and the Best Book through that I can start the QTP Practice here also whare can I download the QTP Users Guide I search I was Unable .

4 Answers  


Categories