Micro Focus QTP (UFT) Forums

Full Version: search java list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I'm writing a test for Oracle e-Business suite.

I have a screen with a JavaList, and I need to determine if a certain item is within the list.

The list is a tree that is expanded when the user clicks the + symbol next to an expandable list item. So if the list has say 20 items, how do I search the whole list (or tree) for an item titled "Transaction"?

I need to search the list, and then respond as either included or not included (does Transaction show up in the list, or not).

Does this make sense? Feel free to ask away...

Thanks!!
So far I'm thinking about creating an array, loading the array with the content from the javalist, and then searching the array.

Does that sound like a sound approach? If not, any other suggestions?


Thanks again.