Results 1 to 2 of 2
  1. #1

    newbe needs help.

    User dkowald (dkowald@bigpond.net.au.nospam) 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

  2. #2
    Junior Member
    Join Date
    Sep 2002
    Bangalore, Karnataka, India

    Re: newbe needs help.

    User Steve Simmons (s_p_simmons@yahoo.com.nospam) 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:

    set_window("window-name", 1);

    if (number == 0)
    # Item was not in the list
    # Item was in the list


    - Steve.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:15 PM.

Copyright BetaSoft Inc.