The invention discloses a testing method and device, equipment, a storage medium and a
computer program product, and aims to solve the problems that according to an existing
automatic testing scheme, when a script error occurs in a testing script in the testing process, manual intervention is often needed for correction, the testing progress is delayed, the reliability of a testing result is possibly reduced due to false positive failure, and the testing efficiency is high. And the
test efficiency is extremely low. The method comprises the following steps: acquiring running state data of a currently running first
test script; when it is determined that the first
test script has the running exception, obtaining an error instruction corresponding to the running exception; according to a pre-constructed
traceability prediction matrix, carrying out
traceability analysis on the error instruction, and determining a candidate self-healing
instruction set; selecting a target self-healing instruction from the candidate self-healing
instruction set according to the similarity
score between the error instruction and each candidate self-healing instruction; and replacing the error instruction in the first
test script according to the target self-healing instruction to obtain a second test script, and executing the second test script.