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 find Total no of Text Fields in the Page..Anybody please answer me..Thanks in Advance

2 Answers   BirlaSoft,


Hello, Can we capture only the labels of the web page in the object repository. If yes, then how. Actually my scenario is: I have to capture all the label of mercury site http://newtours.mercuryinteractive.com/tour/mercurypurchase. php. and want to copy all these labels in the notepad. So,please help me how to do this all. Thanks in advance, Gaytri

4 Answers  


what is the abbrivation of .mtr in action reposirtory?

8 Answers   GE,


Can we call a parameter from an action to other action?

4 Answers  


Hello Friends, I am working with QTP 9.2 descriptive programming. Can you please let me know how to work with below. Browser is IE, for my site, it opens another page with different browser name, For example Parent Page is google.com and child page is inteview questions. How to work with this second page.

3 Answers  


Is it possible to convert QTP scripts to Silk scripts?

2 Answers   Sierra Atlantica,


what is the difference between call to copy action and call to an existing action

5 Answers  


i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

0 Answers   TCS,


Explain about import and export files?

1 Answers  


1) What is the diff Between GetRoproprty and Gettoproperty? 2)What is Redim?

5 Answers   STC,


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

0 Answers  


How to create runtime property for an object?

0 Answers  


Categories