newbe needs help.
User dkowald (firstname.lastname@example.org) posted:
I'm fairly new to the use of winrunner, and have hit a little snag:
How to test a list item doesn't exist?
I can readily use any number of list_* functions, such as
Re: newbe needs help.
User Steve Simmons (email@example.com) posted:
Content-Type: text/plain; charset=us-ascii
If you use list_get_item_num, then a return value of 0 (zero) indicates the item was not in the list. No error should be displayed in the test run results. Consider the following code:
if (number == 0)
# Item was not in the list
# Item was in the list