Research Article

Adaptive Random Testing with Combinatorial Input Domain

Algorithm 1

Select the best test element based on similarity (BTES).
Input: The candidate set , and the executed set
.
Output: Best test element .
( )   Set ;
( )   for ( to )
( )Set ;
( )for ( to )
( )Calculate the similarity between and , that is, ;
( )if ( )
( )   ;
( )end  if
( )  end  for
( )  if ( )
( )   ;
( )   ;
( )  end  if
( )  end  for
( )  return   .