![]() |
Can i create a variable for a treeview data - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Can i create a variable for a treeview data (/Thread-Can-i-create-a-variable-for-a-treeview-data) |
Can i create a variable for a treeview data - richa07 - 11-06-2012 I am testing windows application where data is in treeview. How I can create a Expected Result for comparison . I used array it says type mismatch I used & VbCrLf & for new line bt its not working Code: ExpectedMembers="All Time "& VbCrLf &"Future Time "& VbCrLf &"Surrogate Member " RE: Can i create a variable for a treeview data - K Gaurav Varshney - 11-07-2012 Hi, You have to extract data node wise. Make an array of expected members and compare that array values to the node values. For eg, Code: For i =1 to no. of nodes This type of logic may work. Please try this building your own logic. Regards, K RE: Can i create a variable for a treeview data - richa07 - 11-07-2012 Hi how can we take the no of nodes. The actual value which I am taking from application is like MemberNames =sModelMemberHier.GetContent() Now how can I define the no of nodes Can you please elaborate RE: Can i create a variable for a treeview data - K Gaurav Varshney - 11-08-2012 Hi Richa Please share the SPY window snapshot of this particular treeview object. Regards, K |