Forum Discussion
Dmitry_Nikolaev
14 years agoStaff
Hi Ryan,
I can suggest you posting the entire object tree of the process you are working with from TestComplete and TestExecute and then comparing these trees. You can do this using the LogAppStructure script routine below. I hope this information will help you in your investigation. If it does not, please send us both result sets via the Contact Support form.
Sub Test
Set proc = Sys.Process("iexplore")
Call LogAppStructure(proc)
End Sub
Sub LogAppStructure(obj)
Dim count, i, Str
ReDim params(8)
params(0) = "WndClass"
params(1) = "WndCaption"
params(2) = "Index"
params(3) = "Visible"
params(4) = "Exists"
params(5) = "tagName"
params(6) = "ObjectType"
params(7) = "ObjectIdentifier"
params(8) = "Caption"
On Error Resume Next
Str = ""
For i = 0 To UBound(params)
Err.Clear
If IsSupported(obj, params(i)) Then
Str = Str & params(i) & " = " & VarToStr(Eval("obj." & params(i))) & VbCrLf
End If
If Err.Number <> 0 Then
Str = Str & params(i) & " = Error: " & Err.Description
End If
Next
On Error GoTo 0
Call Log.AppendFolder(obj.Name, Str)
For i = 0 To obj.ChildCount - 1
Call LogAppStructure(obj.Child(i))
Next
Log.PopLogFolder
End Sub
Related Content
Recent Discussions
- 6 hours agoJacobjacob44