|
帮助里面的一段相关代码
Set qtApp = CreateObject("QuickTest.Application") ' Create a Application object
qtApp.Launch ' Start QuickTest
qtApp.Visible = True ' Make the QuickTest application visible
' Open the test
qtApp.Open "C:\Tests\Test1", False ' Open a test named "Test1"
' Import data to the design-time Data Table and then add new data
qtApp.Test.DataTable.Import "C:\Data.xls" ' Import data from an external file
qtApp.Test.DataTable.ImportSheet "C:\Tables.xls", 1, "Action1" ' Import a single sheet
qtApp.Test.DataTable.GlobalSheet("Started") = Now ' Set test run starting time
qtApp.Test.DataTable.GlobalSheet("ParamCount") = 45 ' Set a parameter for the test using the Data Table |
|