Interface definitions

An automated test execution needs to interact with the application under test through one or more interfaces.

In most cases the interaction is with user-oriented interfaces, like dialog boxes or web pages. In many cases, though, part of the test, or even the entire test, must interact with the AUT through other means, such as messages, API calls or SQL statements. In Action Based Testing, all interface interaction is be supported through the use of interface definitions.

Interface definitions are organized as follows:

An interface is usually related to a platform, such as Java, .Net or Web. An interface entity is typically specific to a screen or a web page. An interface element is usually a control or HTML element.

In the non-UI interfaces, interface definitions can also be applied. For a message protocol, an interface entities can depict a message, while the interface element can describe a message field.

The interface definition in essence assigns a logical name for a physical interface item. Properties of the interface item, like the title of a window or the caption of a button, serve to allow the automation to map the logical name to the actual item during test execution. For example, a dialog box with a title of Application Error might be given the logical name error message. The title, in this case, is the property used to identify the item.

The maintainability of your automation can be greatly enhanced by designing the interface definitions well. In particular, pay attention to:

Copyright © 2021 LogiGear Corporation. All rights reserved. LogiGear is a registered trademark, and Action Based Testing and TestArchitect are trademarks of LogiGear Corporation. All other trademarks contained herein are the property of their respective owners.

LogiGear Corporation

1730 S. Amphlett Blvd. Suite 200, San Mateo, CA 94402

Tel: +1(800) 322-0333