One patch level is 11 where it is working, other 10.
True strNodeByPath value is coming as Root so error is geniune but i am not getting, how same code giving full path on another machine or server.
Anyhow. i have hardcoded the path "Root\<FolderName>" Now i am getting Test Sets under given folder but not getting values of child folder under it .
When i try to get child folders through this function , it does show all the folders under given path, then in the end it is giving error "Method 'child' of object 'itestsetfolder4' failed"
Function GetNodesList(ByVal Node, ByRef NodesList)
Dim i
'Run on all children nodes
For i = 1 To Node.Count
msgbox Node.Child(i).Name
Dim NewUpper
'Add more space to dynamic array
NewUpper = UBound(NodesList) + 1
ReDim Preserve NodesList(NewUpper)
'Add node path to array
NodesList(NewUpper) = Node.Child(i).Path
'If current node has a child then get path on child nodes too.
If Node.Child(i).Count >= 1 Then
Call GetNodesList(Node.Child(i), NodesList)
End If
Next
End Function
any help would be great. one thing more, could that be Machine isue as well? as i do not have full admin permissions to machine where it is not working with path.
Where as working fine where i have full admin permissions.