Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem facing in my project
#1
Not Solved
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..
Reply
#2
Not Solved
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
Reply
#3
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Facing Issue with UFT 12.02 Gowrishankar2585 0 1,219 04-15-2019, 01:20 PM
Last Post: Gowrishankar2585
  Facing a problem while identifying Angular JS objects in a web page vangasantosh 0 1,241 12-20-2017, 01:26 PM
Last Post: vangasantosh
  Project interview Eswari 0 1,833 09-29-2012, 12:26 AM
Last Post: Eswari
  How to make a Auotmation Project plan. anurag12 2 3,356 10-03-2011, 02:35 PM
Last Post: anurag12
  how to test a java project through qtp roli 0 2,380 05-12-2011, 06:02 PM
Last Post: roli

Forum Jump:


Users browsing this thread: 1 Guest(s)