Research Article

An Enhanced Adaptive Random Testing by Dividing Dimensions Independently

Algorithm 2

Procedure GenTcByLCSFscs (, ).
(1)If , then
(2)tc = Random (); //randomly select a test case tc from the domain as the first TC;
(3)else
(4)If , then
(5)Init domain; //;
(6)end if
(7)Randomly generate k candidates c1, c2, …, ck from the domain; //
(8)select the best one as the next test case tc; //Max-Min Euclidean Distance (FSCS)
(9)end if
(10)generated tabu subdomain of tc, noted as ; (Definition 3)
(11)recalculate domain by (formula 2);
(12)return tc