0
我正在嘗試運行testcomplete項目及其中的腳本例程。 我用下面的代碼:從外部應用程序運行testcomplete腳本
Dim pn As String, un As String, rn As String
'Set ProjectSuiteName = "C:\Users\s.amin\Documents\TestComplete 10 Projects\DigiStyle1\DigiStyle1.pjs"
pn = "DigiStyle_App"
un = "login_test1"
rn = "loginApp"
' Creates the application object
Set TestCompleteApp = CreateObject("TestComplete.TestCompleteApplication")
' Obtains the integration object
Set IntegrationObject = TestCompleteApp.Integration
' Opens the project suite
IntegrationObject.OpenProjectSuite ("C:\Users\s.amin\Documents\TestComplete 10 Projects\DigiStyle1\DigiStyle1.pjs")
' Runs the routine
IntegrationObject.RunRoutine(pn, un, rn)
但我得到的語法錯誤在最後的陳述。使用smartbear網站本身的代碼。
我在Excel宏文件中編碼本公司vba編輯器。 – sabby