IP Library Granted Patent US 11,288,169
Granted Patent B2
US 11,288,169 · App. 15/348,363 · Granted Mar 29, 2022

Method of, and apparatus for, handling reference images for an automated test of software with a graphical user interface

Inventor: Jonathan Gillaspie (London, GB)
Assignee: EGGPLANT LIMITED
G06F11/3664G06F11/3688G06F11/3696G06K9/00442G06K9/00456G06K9/00463G06K9/00483G06K9/4604G06K2009/4666
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 11,288,169
App. No.
15/348,363
Granted
Mar 29, 2022
Kind
B2
Abstract

A method for performing an automated computer test that causes a test computer system to control a graphical user interface (GUI) of a system under test (SUT). The method includes: a) receiving a reference image representative of an expected image on the GUI of the SUT, the reference image having an image boundary; b) identifying whether one or more text characters are present within the image boundary; c) responsive to any identified text characters in step b), defining a mask region within the reference image boundary based on the identified text characters; d) identifying a transformed expected image on the GUI of the SUT using one or more transforms of the reference image, the identifying comprises matching an unmasked portion of a transformed reference image to a portion of the GUI; e) responsive to the identification of a transformed expected image, performing subsequent operations and/or verification steps on the SUT.

Claims (41)

1. A method for performing an automated computer test using a test description, the automated test being configured, when executed, to cause a test computer system to communicate with a graphical user interface (GUI) of a system under test (SUT) comprising one or more computer programs being executed upon a computer device, wherein the test description is configured to be executed by a test program to cause the test computer system to perform an automated computer test by comparing a received image from a GUI of the system under test with one or more reference images to identify an expected image, the method comprising:

a) receiving a reference image representative of an expected image on the GUI of the SUT, the reference image having an image boundary;

b) updating the test description with the received reference image;

c) identifying whether one or more text characters are present within the image boundary of the reference image, wherein step c) further comprises storing the identified text characters as text characters associated with the reference image;

d) responsive to any identified text characters in step c), defining a mask region within the reference image boundary based on the identified text characters;

e) applying one or more image transformations to the reference image to generate transformed reference images, wherein the one or more image transformations are applied only to an unmasked portion of the reference image to generate the transformed reference images or the one or more image transformations are applied to the whole of the reference image and a correspondingly transformed mask applied to the transformed reference images, wherein the one or more image transformations comprise a stretch or skew of the unmasked portion of the reference image and the transformed reference images comprise one or more respective stretches or skews of the unmasked portion of the reference image;

f) after generating the transformed reference images, performing image analysis to identify a transformed expected image on the GUI of the SUT using the transformed reference images, wherein the image analysis comprises matching an unmasked portion of a transformed reference image to a portion of the GUI of the SUT, wherein the unmasked portion of the transformed reference image is visually different from a corresponding portion of the reference image;

g) responsive to the identification of a transformed expected image, performing subsequent operations and/or verification steps on the system under test, wherein, subsequent to step f), responsive to the identification of a transformed expected image within a portion of the GUI of the SUT, the method further comprises:

h) identifying, within the portion of the GUI of the SUT, any text characters, wherein subsequent to step h), the method further comprises:

i) comparing the identified text characters within the portion of the GUI of the SUT with the text characters associated with the reference image, wherein step g) is carried out responsive to identification of the expected image and a correspondence between the identified text characters within the portion of the GUI of the SUT and the text characters associated with the reference image.

2. A method according to claim 1 , wherein step d) further comprises determining the boundaries of each text character in the reference image.

3. A method according to claim 2 , wherein step d) further comprises defining the mask region to be equal to or greater than the boundaries of each text character in the reference image.

4. A method according to claim 1 , wherein the one or more image transformations comprise a dimensional scaling of the reference image and the transformed reference images comprise one or more dimensional scalings of the reference image.

5. A method according to claim 1 , wherein the one or more image transformations comprise a rotation of the reference image and the transformed reference images comprise one or more respective rotations of the reference image.

6. A method according to claim 1 , wherein step b) comprises identifying one or more text characters using optical character recognition.

7. A method according to claim 1 , wherein steps a) to e) are performed prior to execution of an automated test on a SUT.

8. A method according to claim 1 , wherein steps a) to e) are performed during execution of an operation or validation step during an automated test on a SUT.

9. A method according to claim 1 , wherein the reference images are generated responsive to the failure to identify a transformed expected image using the reference image.

10. A non-transitory computer readable medium comprising instructions configured when executed to carry out a method for performing an automated computer test using a test description, the automated test being configured, when executed, to cause a test computer system to communicate with a graphical user interface (GUI) of a system under test (SUT) comprising one or more computer programs being executed upon a computer device, wherein the test description is configured to be executed by a test program to cause the test computer system to perform an automated computer test by comparing a received image from a GUI of the system under test with one or more reference images to identify an expected image, the method comprising:

a) receiving a reference image representative of an expected image on the GUI of the SUT, the reference image having an image boundary;

b) updating the test description with the received reference image;

c) identifying whether one or more text characters are present within the image boundary of the reference image, wherein step c) further comprises storing the identified text characters as text characters associated with the reference image;

d) responsive to any identified text characters in step c), defining a mask region within the reference image boundary based on the identified text characters;

e) applying one or more image transformations to the reference image to generate transformed reference images, wherein the one or more image transformations are applied only to an unmasked portion of the reference image to generate the transformed reference images or the one or more image transformations are applied to the whole of the reference image and a correspondingly transformed mask applied to the transformed reference images, wherein the one or more image transformations comprise a stretch or skew of the unmasked portion of the reference image and the transformed reference images comprise one or more respective stretches or skews of the unmasked portion of the reference image;

f) after generating the transformed reference images, performing image analysis to identify a transformed expected image on the GUI of the SUT using the transformed reference images, wherein the image analysis comprises matching an unmasked portion of a transformed reference image to a portion of the GUI of the SUT, wherein the unmasked portion of the transformed reference image is visually different from a corresponding portion of the reference image;

g) responsive to the identification of a transformed expected image, performing subsequent operations and/or verification steps on the system under test, wherein, subsequent to step f), responsive to the identification of a transformed expected image within a portion of the GUI of the SUT, the method further comprises:

h) identifying, within the portion of the GUI of the SUT, any text characters, wherein subsequent to step h), the method further comprises:

i) comparing the identified text characters within the portion of the GUI of the SUT with the text characters associated with the reference image, wherein step g) is carried out responsive to identification of the expected image and a correspondence between the identified text characters within the portion of the GUI of the SUT and the text characters associated with the reference image.

11. A computer system comprising:

a processing device,

a storage device; and

a non-transitory computer readable medium encoded with instructions that when executed cause the processing device to carry out a method for performing an automated computer test using a test description, the automated test being configured, when executed, to cause a test computer system to communicate with a graphical user interface (GUI) of a system under test (SUT) comprising one or more computer programs being executed upon a computer device, wherein the test description is configured to be executed by a test program to cause the test computer system to perform an automated computer test by comparing a received image from a GUI of the system under test with one or more reference images to identify an expected image, the method comprising:

a) receiving a reference image representative of an expected image on the GUI of the SUT, the reference image having an image boundary;

b) updating the test description with the received reference image;

c) identifying whether one or more text characters are present within the image boundary of the reference image, wherein step c) further comprises storing the identified text characters as text characters associated with the reference image;

d) responsive to any identified text characters in step c), defining a mask region within the reference image boundary based on the identified text characters;

e) applying one or more image transformations to the reference image to generate transformed reference images, wherein the one or more image transformations are applied only to an unmasked portion of the reference image to generate the transformed reference images or the one or more image transformations are applied to the whole of the reference image and a correspondingly transformed mask applied to the transformed reference images, wherein the one or more image transformations comprise a stretch or skew of the unmasked portion of the reference image and the transformed reference images comprise one or more respective stretches or skews of the unmasked portion of the reference image;

f) after generating the transformed reference images, performing image analysis to identify a transformed expected image on the GUI of the SUT using the transformed reference images, wherein the image analysis comprises matching an unmasked portion of a transformed reference image to a portion of the GUI of the SUT, wherein the unmasked portion of the transformed reference image is visually different from a corresponding portion of the reference image;

g) responsive to the identification of a transformed expected image, performing subsequent operations and/or verification steps on the system under test, wherein, subsequent to step f), responsive to the identification of a transformed expected image within a portion of the GUI of the SUT, the method further comprises:

h) identifying, within the portion of the GUI of the SUT, any text characters, wherein subsequent to step h), the method further comprises:

i) comparing the identified text characters within the portion of the GUI of the SUT with the text characters associated with the reference image, wherein step g) is carried out responsive to identification of the expected image and a correspondence between the identified text characters within the portion of the GUI of the SUT and the text characters associated with the reference image.

Assignments (6)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 29, 2021
From: KEYSIGHT TECHNOLOGIES UK LIMITED
To: EGGPLANT LIMITED
Reel/Frame 055079/0008 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 14, 2021
From: LIMITED, EGGPLANT
To: KEYSIGHT TECHNOLOGIES UK LIMITED
Reel/Frame 054923/0755 →
RELEASE OF SECURITY INTEREST Recorded Dec 18, 2020
From: SILICON VALLEY BANK
To: EGGPLANT LIMITED (F/K/A TESTPLANT EUROPE LIMITED)
Reel/Frame 054688/0627 →
CHANGE OF NAME Recorded Aug 7, 2020
From: TESTPLANT EUROPE LIMITED
To: EGGPLANT LIMITED
Reel/Frame 053435/0274 →
SECURITY INTEREST Recorded Jun 28, 2018
From: TESTPLANT EUROPE LIMITED
To: SILICON VALLEY BANK
Reel/Frame 046231/0968 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 18, 2017
From: GILLASPIE, JONATHAN
To: TESTPLANT EUROPE LTD
Reel/Frame 043891/0141 →
Continuity (1)
Related Publication 20180129586A1 · May 10, 2018
Cited By (1)
US 12,585,575