Following illustration created in VBScript launches the QTP when it is already closed from the beginning means no process in the RAM.
Set obj = CreateObject("QuickTest.Application") 'Creates an instance of the QTP
obj.Launch
obj.Visible = True
obj.WindowState = "Maximized" 'Maximizes the application window of the QTP
obj.ActivateView "ExpertView" 'Displays the Expert View of the QTP
obj.open "D:\ExpertQTP", False 'Opens the script from C:\ ExpertQTP in an editable mode
obj.Test.Run 'Runs the script
obj.Quit 'Quits the QTP application
Anyways, thereafter we can paste the above script in a Text Editor like “Notepad”, provide the name as "ExpertQTP.vbs" and save this file in the D:\ drive. And lastly, dont forget the double quotes which will go along with the name..
Keywords: QTP, hp quicktest, VbScript
QTP VBScript new series + Interview Question Bank on QTP for enrichment of Knowledge in QTP
This Site has been brought to you by HP Certified Expert of QTP.
Exciting new articles for October:
1) QTP Tip:Deselect all Radio Buttons
2) HP QTP Crypt Object
3)Adding Hyperlinks in Excel Spreadsheet
Best of Luck Friends ! ! !
Expert QTP
expert.qtp@gmail.com
All Articles are Copyright Protected. These are Free for Reading & Personal Use. Reproduction in Any Form without the Permission is Illegal & Strictly Prohibited.
Copyright © 2009 ExpertQTP
Google Search
Friday, June 6, 2008
Open QTP through VBScript when it is already Closed
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment