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

Differentiate the type of test cases which can be automated and which cannot be automated?

784


Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)

1857


Have you used xml check point in your project?

751


Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak

1863


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1628


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

2741


What is checking bitmaps?

776


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",

1550


Hi, Can we open a test in qtp10 which is saved in qtp 9.2?

1661


Explain the new feature of UFT regarding the export of test results?

788


what is actually contain test report? can anybody post the test report

1702


what is impact analysis on regression testing?

2231


If the weblist is identified as webelement,and by clicking on webelement if the values are displayed,and if the values the values also identified as webelement.then how to fetch the values through script?

4942


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

889


Where we can use the synchronization?

769