The application discloses a shadow
test case automatic generation and self-
recovery method based on service characteristic fingerprints, and relates to the field of
software automatic test. The method comprises the following steps: in a production environment or a gray environment, collecting the
event sequence of real user operation through a front-end silent acquisition probe, and extracting the multi-dimensional service characteristic fingerprints of the operated page elements; after the
event sequence is denoised, cleaned, desensitized and parameterized, the standardized shadow
test case is generated and stored in the characteristic
fingerprint library; when playing back in the test environment, the original physical locator is used to locate the target element, and when the location fails, the self-
recovery process is triggered, the multi-dimensional comprehensive similarity
score of the current page candidate node and the historical fingerprints is calculated, the substitute target element is selected to continue the test; after the self-
recovery succeeds, the new physical location information of the substitute target element is written back to the characteristic
fingerprint library. The application realizes the change from physical addressing to service semantic addressing, and reduces the script maintenance cost caused by UI reconstruction.