Existence checks

How to work with checks that verify the existence of windows, controls, or items in an AUT.

  1. Windows which represent desktop application windows or web pages in browsers.
    • When testing an application, you may need to verify that after you start up the Car Rental sample application, the Login window appears. To accomplish this you can use the check window exists action, which checks for the existence of a specified window.

    • You can create a test procedure as follows:

    • If the verification succeeds, the check window exists action reports a Passed message; otherwise, it reports a Failed message.

  2. Controls that denote GUI controls (for example, a button, a list box, a list view, or a table) or HTML elements.
    • Suppose you want to check the existence of the Available Car text box in the View Cars window before making the decision to rent a car. You can use the check control exists action to check for the existence of a specified control.

    • You can create a test procedure as follows:

    • If the verification succeeds, the check control exists reports a Passed message; otherwise, it reports a Failed message.

  3. Items can be menu items, tree nodes, table cells, list/combo box items, and more.