Objectives: This paper presents a new hybrid ACO-NSA algorithm for the automatic test data generation problem with path coverage as an objective function. Method: In it, at first instance, (detectors) are generated ant colony optimization (ACO), and then set (detector set) has been refined by negative selection (NSA) Hamming distance. Findings: The algorithm’s performance is tested on several b...