| CPC G06F 11/3688 (2013.01) [G06F 11/328 (2013.01); G06F 11/3414 (2013.01); G06F 11/3692 (2013.01); G06F 18/214 (2023.01); G06N 20/00 (2019.01)] | 20 Claims |

|
1. A computer-implemented method comprising:
receiving, by one or more processors, a plurality of expected image frames for a user interface application to be tested, the plurality of expected image frames being pre-defined and representing a series of workflows and operations of the user interface application to be expected based on a design requirement;
sampling, by one or more processors, the user interface application at a specified frequency to capture a plurality of testing image frames during an automation test run on the user interface application, wherein the automation test run is recorded, and wherein the specified frequency comprises a common video frame rate;
ensuring that expected image frames, of the plurality of expected image frames, and corresponding sampled image frames, of the plurality of testing image frames, have a same image size and resolution by converting the expected image frames and the corresponding sampled image frames into a same coordinate before hashing of the expected image frames and the testing image frames;
calculating, by one or more processors, a first set of hash-values for each corresponding expected image frame;
calculating, by one or more processors, a second set of hash-values for each sampled testing image frame;
building a first operation path based on the first set of hash-values and building a second operation path based on the second set of hash-values, each hash-value representing a state of a user interface application operation;
comparing, by one or more processors, the first set of hash-values to the second set of hash-values, and performing a matching process between the first operation path and the second operation path;
verifying, by one or more processors, whether the second set of hash-values matches the first set of hash-values; and
in response to a hash-value of the second set of hash-values not matching a corresponding hash-value of the first set of hash-values, indicating the automation test run on the user interface application fails for an expected image frame associated with the hash-value of the first set of hash-values.
|