How to call .vbs functions in QTP? plz Explain indetail

Answers were Sorted based on User's Feedback



How to call .vbs functions in QTP? plz Explain indetail..

Answer / kavs

to call function in QTP go to
test--->settings-->resorces-->add the .vbs file

correct me if am wrong.

Is This Answer Correct ?    4 Yes 0 No

How to call .vbs functions in QTP? plz Explain indetail..

Answer / bfakruddin

Above two answers are correct but they forgot to explain
about the differences of those?

1. Call .vbs file

Test Settings-->Resources-->+ button-->show the path of .vbs
file-->Click OK button

Click the "Check Syntax button"

It is available for all actions in the test. If you click
"Set as Default" It will be available for all the new Tests.

In Test Pane.

Call functionname(parameters)
or
var=functionname(parameters)
msgbox var

2. Executefile "path of .vbs" file

It is used to execute the function dynamically but it is
used for only particular action,

Is This Answer Correct ?    2 Yes 0 No

How to call .vbs functions in QTP? plz Explain indetail..

Answer / nandishpatil

You can execute a VB Script function using the statement

ExecuteFile "File"

Eg: If you have the .vbs (MyVBScript.vbs) file in the
path "C:\Temp" then the following statement will call the
same:

ExecuteFile "C:\Temp\MyVBScript.vbs"

Is This Answer Correct ?    1 Yes 0 No

How to call .vbs functions in QTP? plz Explain indetail..

Answer / anonymous

You can Load the function into the test dynamically using the statement

LoadFunctionLibrary "Path of File"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How do function returns a value?How can we pass one function value to other function as input

3 Answers  


General Ques : At What State u start Automating ? means at what stage we start writing QTP scripts ?

2 Answers  


what to do if application have 3 "ok" button with same logical name and same properties, how qtp can identify them.

11 Answers   Infosys, Intel,


Hi, Can any one explain what is mean by Driver Script? is it AOM?

4 Answers   CTS,


Generic function to search for the unique link in webtable and click on it

0 Answers  






hi friends can anyone tell me where can i find descriptive programming material please send me the link also,from which i can download the material

1 Answers  


what is risks of testing a project?

5 Answers   AppLabs,


1. I have asked the same question for the third time, but i am getting wrong answers. Pls give me the script to count the number of edit boxes or checkboxes in an windows application screen. In windows application childobject is not working, anyone very urgent

8 Answers  


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

1 Answers  


What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..

12 Answers   Wipro,


how can we return a value from userdefined function for eg 2 functions in func1 iam getting 2 values(a,b) and storing in var(C). now i want to pass that var(c) to another func2 give me the script

1 Answers  


what skills needed to be good test automation?

3 Answers  


Categories