Forum Discussion

javerette's avatar
javerette
New Contributor
13 years ago

Finding specific data in a list box

I have a test created that uses a data driven loop to run multiple tests that compare screenshots. The form I have uses whats known as an API test form to run the tests on and then outputs the data out into a listbox. I need to know if there is a way for test complete to sort through all of the data in the list box and look for a certian error message and if it finds it to then log it as test failed.



Thanks for any help that you can give me.

Justin 
  • javerette's avatar
    javerette
    New Contributor
    One more thing, The specific data I'm looking for will not be in the same location in the list box every time. I've tried multiple types of checkpoints and the one that comes the closest to being correct is the table checkpoint but the only drawback to that is it looks for the data in the same row and column of the list box and it is different each time. 

    i appreciate any assistance someone can give me.



    Justin

  • Hi Justin,


     


    I suppose that your list box has the Items property. You can iterate though all items until you find the item that contains the data you want.