Ask a Question

Can't access Testcomplete through COM interface

Occasional Contributor

Can't access Testcomplete through COM interface



I have a Macro that opens Testcomplete and checks every Testcase in all the projects found in the project suite, ie it simply goes through each and every project and makes sure all test cases are checked.I am using the lines below found in to get an object to Testcomplete. For some reason and that's where I need help, the TestCompleteObject is returning nothing and is empty. Can someone help me there?


Thanks in advance



Const TCProgID As String = "TestComplete.TestCompleteApplication.14"

Dim TestCompleteObject As TestCompleteApplication

On Error Resume Next
TestCompleteObject = GetObject(, TCProgID)
If Err.Number <> 0 Then
    TestCompleteObject = CreateObject(TCProgID)
End If
On Error GoTo 0

Showing results for 
Search instead for 
Did you mean: