IP Library Granted Patent US 7,644,368
Granted Patent B2
US 7,644,368 · App. 11/171,973 · Granted Jan 5, 2010

System and method for regression tests of user interfaces

Assignee: SAP AG
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,644,368
App. No.
11/171,973
Granted
Jan 5, 2010
Kind
B2
Abstract

Embodiments of the invention are generally directed to a system and method for regression tests of graphical user interfaces. In one embodiment, a testing system receives the actual state and the target of a GUI under test. The testing system computes the difference between the actual state and the target state based, at least in part, on a weighting function. The computed difference is compared to a threshold value. In an embodiment, if the difference is within the threshold, then the system indicates that the GUI is valid.

Claims (54)

1. A method for testing a graphical user interface comprising:

receiving a first image file containing data representing an actual state of at least a portion of the graphical user interface, the actual state including an actual visual appearance of the graphical user interface as it appears when the graphical user interface is displayed on a computer display;

receiving a second image file containing data representing a valid state that is intended for the portion of the graphical user interface, the valid state including a valid visual appearance for the portion of the graphical user interface;

computing a difference between the first image file containing data representing the actual state of the graphical user interface and the second image file containing data representing the valid state intended for the portion of the graphical user interface based, at least in part, on a weighting function, the weighting function providing weights for parameters of the graphical user interface based on a relative importance of each parameter, wherein computing the difference between the first image file and the second image file includes removing one or more regions of the graphical user interface from consideration through use of the weighting function;

comparing the difference between the first image file and the second image file to a threshold value; and

determining whether the graphical user interface is valid based, at least in part, on whether the difference between the first image file and the second image file exceeds the threshold value.

2. The method of claim 1 , wherein the first image file and the second image file are raster image files.

3. The method of claim 1 , wherein removing one or more regions of the graphical user interface from consideration in the computation of the difference between the first image file and the second image file through use of the weighting function is based, at least in part, on user input.

4. The method of claim 3 , further comprising:

receiving a list of one or more regions of the graphical user interface to be removed from consideration through use of the weighting function.

5. The method of claim 4 , wherein receiving the list of one or more regions of the graphical user interface to be removed from consideration comprises receiving, for each region, at least one of:

a set of rectangular grid coordinates to specify the location of the region within the graphical user interface; and

a set of non-rectangular grid coordinates to specify the location of the region within the graphical user interface.

6. The method of claim 1 , further comprising:

receiving an input specifying a type for the graphical user interface; and

altering a parameter of the weighting function based, at least in part, on the type.

7. The method of claim 6 , wherein altering the parameter of the weighting function for the computation of the difference between the first image file and the second image file based, at least in part, on the type for the graphical user interface comprises altering at least one of:

a color parameter;

a placement parameter;

a new object parameter;

a time/date parameter; and

a status indicator parameter.

8. The method of claim 1 , wherein determining whether the graphical user interface is valid comprises:

generating a vector of values indicating similarities in performance indicators for the actual state and the valid state.

9. The method of claim 8 , wherein the vector of values includes one or more of a color value, a contrast value, or an orientation value.

10. An apparatus comprising:

a display for a graphical user interface;

a memory to hold a valid image file containing data representing a valid state of at least a portion of the graphical user interface, the valid state including a valid visual appearance intended for the portion of the graphical user interface;

a development environment to test the graphical user interface, testing of the graphical user interface including obtaining an actual image file containing data representing an actual state of the portion of the graphical user interface, the actual state including an actual visual appearance of the graphical user interface as it appears when the graphical user interface is displayed to a user; and

a processor and logic executable thereon, the logic including a difference computing logic and a comparison logic, the logic to:

receive the actual image file containing data representing the actual state of the portion of the graphical user interface,

receive the valid image file containing data representing the valid state intended for the portion of the graphical user interface;

compute a difference between the actual image file and the valid image file using the difference computing logic, the difference being based, at least in part, on a weighting function, the weighting function providing weights for parameters of the graphical user interface based on a relative importance of each parameter, wherein computing the difference between the actual image file and the valid image file includes removing one or more regions of the graphical user interface from consideration through use of the weighting function;

compare the difference between the actual image file and the valid image file to a threshold value using the comparison logic; and

determining whether the graphical user interface is valid based, at least in part, on whether the difference between the actual image file and the valid image exceeds the threshold value.

11. The apparatus of claim 10 , wherein the actual image file and the valid image file are raster image files.

12. The apparatus of claim 10 , wherein the removal of one or more regions of the graphical user interface from consideration in the computation of the difference between the actual image file and the valid image file through use of the weighting function is based, at least in part, on user input.

13. The apparatus of claim 12 , wherein the user input regarding the one or more regions to be removed from consideration is to be received locally or remotely from a user as a file.

14. The apparatus of claim 12 , further comprising a tool for receiving user input regarding regions that are to be removed from consideration.

15. The apparatus of claim 10 , wherein the logic is further to:

receive an input specifying a type for the graphical user interface; and

alter a parameter of the weighting function based, at least in part, on the type for the graphical user interface.

16. An article of manufacture comprising:

a computer-readable medium providing instructions that, when executed by a processor, cause the processor to:

receive a first image file containing data representing an actual state of at least a portion of the graphical user interface, the actual state including an actual visual appearance of the graphical user interface as it appears when the graphical user interface is presented on a computer display;

receive a second image file containing data representing a valid state that is intended for the portion of the graphical user interface, the valid state including a valid visual appearance for the portion of the graphical user interface;

compute a difference between the first image file containing data representing the actual state of the graphical user interface and the second image file containing data representing the valid state intended for the portion of the graphical user interface based, at least in part, on a weighting function, the weighting function providing weights for parameters of the graphical user interface based on a relative importance of each parameter, wherein computing the difference between the first image file and the second image file includes removing one or more regions of the graphical user interface from consideration through use of the weighting function;

compare the difference between the first image file and the second image file to a threshold value; and

determine whether the graphical user interface is valid based, at least in part, on whether the difference between the first image file and the second image file exceeds the threshold value.

17. The article of manufacture of claim 16 , wherein the first image file and the second image file are raster image files.

18. The article of manufacture of claim 16 , wherein the removal of one or more regions of the graphical user interface from consideration in the computation of the difference between the first image file and the second image file through use of the weighting function is based, at least in part, on user input.

19. The article of manufacture of claim 16 , wherein the computer-readable medium provides further instructions that, when executed by the processor, cause the processor to:

receive an input specifying a type for the graphical user interface; and

alter a parameter of the weighting function based, at least in part, on the type.

Assignments (2)
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0334 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 26, 2005
From: PINS, MARKUS
To: SAP AG
Reel/Frame 016920/0686 →
Continuity (1)
Related Publication 20070006043A1 · Jan 4, 2007