The invention discloses a
software tested test method based on defect embedding and a defect switch, and relates to the field of
software testing and defect management, and the method comprises the following steps: 1, recording defect data, extracting problem features, constructing a
decision tree, independently classifying the defect data into front-end defects and rear-end defects, and storing the front-end defects and the rear-end defects; creating a defect unique code and a defect type corresponding to a defect collection form design, and defining a defect management
list; defect data are recorded, a
decision tree is constructed to classify the defect data into front-end defects and rear-end defects, a defect collection form is created, defect data implantation tasks are divided by a
system architectsman, front and rear ends dynamically execute and create a configuration interface to define defect states according to on-off states, and single and batch
state switching is realized. And allowing to input defect data in a preset form, dynamically switching between a normal
code segment and a defect
code segment, formulating a defect strategy combination according to a teaching target, and creating a
knowledge base to
record each strategy and an implementation process and a
verification result thereof.