![]() |
Problem facing in my project - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: Problem facing in my project (/Thread-Problem-facing-in-my-project) |
Problem facing in my project - swapna.batchu - 01-25-2009 Hi, I have been facing one issue related to my project requirements, here the mentioned below one is such requirement In a web based application: (not window based) Let say i have two list boxes 1. list1 2.list2 list1 consists of two list field values of 'Val1', 'Val2' list2 consists of two list field values of 'Val11', 'Val111','Val22', 'Val222' i) When i select 'Val1' from 'list1' it shown the child values of 'Val11', 'Val111', under 'list2' ii) When i select 'Val2 from 'list1' it shown the child values of 'Val22 'Val222' under 'list2' here i need to genereate a script that , it is displaying the corresponding child values under 'list2' (val22, val222 for selecting 'val2') Please help me in this regard . Please let me know if u need any information apart from this.. RE: Problem facing in my project - kishoreinchennai - 01-26-2009 Hi You are not clear. 1)assume you select Val1 in list1 What happens now list is populated with val11 and val111 do you want to check whether list2 has val11 and val111 or something Else What exactly you mean by generating the Script...... regards Kishore RE: Problem facing in my project - Pranali Sakpal - 01-27-2009 Hi, if the list object you are refering to is of class WebList then you can get all the items listed in the list2 by "all items" property using the GetRoProperty function (the items are returned as string and items are seperated by ";") then you can compare them with the expected values. In case of JavaList object get the item counts using the GetRoProperty and then loop through the list and compare the expected data with actual Regards, Pranali |