Print Page | Close Window

Can we run any script as exe without opening

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: QuickTest Pro @ OneStopTesting
Forum Discription: QuickTest Pro is a fresh approach to automated software and application testing that addresses testing needs of both business analysts and Quality Assurance professionals.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=2803
Printed Date: 21Dec2024 at 4:26am


Topic: Can we run any script as exe without opening
Posted By: tanushree
Subject: Can we run any script as exe without opening
Date 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.



Print Page | Close Window