Micro Focus QTP (UFT) Forums
search java list - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: search java list (/Thread-search-java-list)



search java list - mitch - 05-12-2011

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!!


RE: search java list - mitch - 05-13-2011

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.