The application provides a
test case automatic generation
system based on
mutation, which analyzes initial test cases, obtains corresponding component structures and field type information according to case subnode data obtained through analysis, and generates new test cases by applying
mutation operations with correct
semantics according to the type of corresponding subnode data, thus solving the problem that
mutation operations damage the format of test cases and cannot generate effective test cases. Meanwhile, the application uses
randomization and semantic-based mutation, adopts corresponding semantic mutation strategies according to the type of data, enhances the pertinence and effectiveness of generated test cases, enhances the difference and richness of generated test cases through
randomization mutation strategies, and adopts a plurality of mutation strategies designed according to the characteristics of
XML and
JSON formats, so as to eliminate the difference of
XML and
JSON format
test case generation tasks from different sources to the greatest extent and enhance the universality of the
test case generation method.