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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the features and benefits of quick test pro(qtp)?

518


How will you test a keyboard?

605


How can I change object description or check point values in qtp?

559


What are parameterizing tests?

551


What are the views available in qtp?

592






Which environments are supported by hp qtp?

602


How many add-ins comes by default with qtp?

547


What are the check points can be inserted without recording?

600


What is qtpro? What is a quick test professional?

587


How can get count of list box?

635


if numbers are always changing write a script for that

3406


what is run-time data?

1699


Define object spy ?

565


What is the synchronization point in qtp?

567


Why to use descriptive programming?

571