Active Topics Memberlist Calendar Search Help | |
Register Login |
One Stop Testing Forum : Testing Tools @ OneStopTesting : QuickTest Pro @ OneStopTesting |
Topic: Can we run any script as exe without opening |
|
Author | Message |
tanushree
Senior Member Joined: 04Apr2007 Online Status: Offline Posts: 2160 |
Topic: Can we run any script as exe without opening Posted: 12Oct2007 at 6:24am |
Here is the often cited code:
Dim qtApp 'As QuickTest.Application ' Declare the Application object variable Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object If Not qtApp.Launched Then qtApp.Launch End If qtApp.Visible = True ' Make the QuickTest application visible qtApp.Open "C:\<path>\<testname>" ' Open the test qtApp.Test.Run Set qtApp = Nothing ' Release the Application object Then just open the vbs file within IE and QTP will be started. You can run many tests within one vbs-file: Just open and run one test after the other. Post Resume: Click here to Upload your Resume & Apply for Jobs |
|
IP Logged | |
Forum Jump |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
© Vyom Technosoft Pvt. Ltd. All Rights Reserved.