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 u prepare Test result summary in QTp?

4 Answers   CGI,


What is the differences between image check point and bit map check point?

0 Answers  


How to associate shared object repository to test in qtp?

0 Answers  


unique properties of button,edit box, radio button,check box?

1 Answers   IBM,


What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

0 Answers  






How do we Access, retriew and edit the runtime objects in Automation Testing using QTP

3 Answers   IBM,


Test Life cycle starts IS it Requirments stage or Test Initiation?

1 Answers  


Can we put more than one action in a single script???? yes or no.....

2 Answers   BirlaSoft,


how do u handle an object without name using QTP 9.2?

0 Answers   CTS,


Write a script to verify font style and color of a windows object using descriptive programming

0 Answers  


what are the frame work models of qtp?which frame work you follow in your company?and explain it process?

0 Answers   Covansys,


Hi Samrat, Thank u very much, what u said it is right.

0 Answers  


Categories