{'fraction_non_alphanumeric': 0.018500486854917234, 'fraction_numerical': 0.0, 'mean_word_length': 5.385093167701863, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Constrained multi-objective test data generation based on set evolution

A crucial task of software testing is the generation of high-quality test data, so as to find defects and errors during various periods of software development. However, existing coverage-based testing methods seldom consider the fault finding ability of the test data. This paper establishes a constrained multi-objective model of test data generation, so that the generated test suite has better spatial distribution on the basis of satisfying statement coverage criterion, and thereby enhance its error detection ability. In addition, the authors propose a genetic algorithm (GA) based on set evolution to solve the model. The experimental results show that the test data generated by the proposed model have higher fault finding ability than statement coverage testing and adaptive random testing; in addition, compared with conventional GAs, the proposed algorithm needs less execution time with the number of test data not increasing significantly.