How do you invoke any application and write a script to
invoke QTP using VB Script.

Answer Posted / nanda.d reddy

TO Launch IE using VB Script:

Set IE=CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "www.google.com"

else

systemutil.run "iexplore.exe","www.google.com" (This is not VB Script, this is QTP builtin method)

But i dont understand that "when QTP is providing builting feature why do we need put more effort to write extra script instead using tool features" ( Why interviewers dont ask which are usefull)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to run a test using quicktest professional?

531


1.How to record ,capture and also script to capture the close buttons. 2.How to record ,capture and also script to capture the options ---File ->save and File ->close in a browser and PDF files. 3.How to compare the Excel sheet values in a report using QTP scripting. 4.How to compare 2 PDf reports using QTP scripts as well reording. 5.How to compare 2 Excel reports using QTP scripts as well reording. 6.How to save a PDF report to a folder and then translate the report to an Excel type of report and compare that Excel Report with an other excel report. Please clarify me

1601


If object is not recognized by qtp but the object is standard object what is your approach?

592


Hi, i run scripts in one machine those r passed.when i run the scripts in client side those r failed.Give me such a scenario when ever u faced?

1514


What is recovery scenario manager? When you go for recovery scenario manager?

595






Please guide me release notes of Automation once scripts are completed

1466


X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?

1509


tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?

1529


What are the benefits of quick test pro(qtp)?

560


action contains public and private functions but do we resuable that action or not..If it is reusable How..plz tell me the ans

1630


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

590


how can we test the Triggers, Cursors, Indexes while doing Database testing in DTP??

1589


how to use the regular expression for the below code-- swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:56" There is a tree view window of the folder's ie Medication- >Pharmacy(sub folder)with 56 as count of records...The records can be different or if no records present in the specific folder..then it show "Paharmacy:-no records".Whe i record at the first time .....and try to rerun the same script with different records count say "pharmacy:800"..qtp is not regnizing it...therefore i want to user regular expression..but donot now how to use it and where to use...i have tried.... swf("application name").swftreeview ("Treename").select"Medication;Pharmacy:\*"..but it s of no use..plz help..me

2456


How will you test a keyboard?

603


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

1588