The invention relates to the technical field of
software testing, in particular to an
automatic testing method based on behavior-driven testing, which comprises the following steps of: based on user behavior records, capturing
operation time and click times, decomposing behaviors into sequences, extracting behavior characteristic description of a user, and generating a user behavior characteristic
data set. According to the method, the behavior pattern is extracted from the user behavior characteristic
data set, the key operation state is identified, the mapping table of the behavior data and the key operation state is established, the pertinence and accuracy of the test are enhanced, the relation between the state and
observation data is analyzed, and the state conversion frequency and the behavior data probability distribution are calculated; according to the method, interaction between
software behaviors and a user is deeply understood, a
test scene is optimized, the accuracy of predicting a user behavior path model is improved, risk point identification is more accurate, an adjusted
test case set reveals
potential risk points and vulnerabilities of
software, the stability and safety of the software are improved, the test process is accelerated, and the quality of the software is continuously improved.