Browse Prior Art Database

Concept for Locating Widgets of Graphical User Interface of Software Application in Automated Functional Testing

IP.com Disclosure Number: IPCOM000198747D
Publication Date: 2010-Aug-13
Document File: 3 page(s) / 30K

Publishing Venue

The IP.com Prior Art Database

Abstract

The disclosed is a concept for locating widgets (components) of the Graphical User Interface (GUI) of a software application in automated functional testing. A prototype has been developed with Eclipse and the Abbot SWT framework to prove the feasibility of the disclosed concept. This article presents details about the particular prototype.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 41% of the total text.

Page 1 of 3

Concept for Locating Widgets of Graphical User Interface of Software Application in Automated Functional Testing

Disclosed is a process for locating widgets (components) of a graphical user interface (GUI) of a software application in automated functional testing. A prototype using the disclosed process was developed with Eclipse and the Abbot software-testing framework (available from http://sourceforge.net/

projects/abbot/) to demonstrate the feasibility of the disclosed process.

A functional test scenario is implemented as a plug-in in an example embodiment or prototype of the disclosed process. The plug-in is referred to as a test scenario container. Object maps are created in a particular plug-in to record information describing the widgets of the application-under-test. An object map is an extensible markup language (XML) document. A helper class is generated for each object map with

etter methods for the widgets recorded in the

articular object map. Using the graphical user interface of the prototype a user initiates the

  rocess of recording widgets in an object map. Initiating the process of recording widgets in an object map results in the creation of a server socket bound to a predetermined port. The port is referred to as the communication port. A listener instance is created for and bound to the server socket to accept information describing widgets transmitted to the prototype by the application-under-test. The listener instance is also responsible for saving received information describing widgets in the corresponding object map.

Various types of listener instances are also created in the application-under-test to capture types of events including, mouse enter, mouse exist, key up, and key down. The user presses a

p

p

 redefined key or key combination (for example, the Alt key) to activate recording of widgets of the application-under-test. Once recording has been activated, the prototype is notified when the mouse cursor moves within boundaries of each widget of the application-under-test. When the mouse cursor is within the boarders of a widget, a rectangle is drawn around the widget to indicate the readiness of the prototype for recording the particular widget. Releasing the pressed key or key combination while a widget is being highlighted triggers the following actions in the application-under-test:

Information about the selected widget is gathered.

A socket is created and bound to the communication port.

The gathered information about the selected widget is transmitted to the object map via the newly created socket.

The following information describing a widget is gathered and transmitted to the object map by the application-under-test:

Type, name and textual contents such as text, items …etc.

For a container widget


Type and textual contents such as text, items …etc.

For each immediate child widget

Type and textual contents such as text, items …etc.

1

g

p

Page 2 of 3

For the container widget

         Type and tex...