Adopting and implementing EU qualitz standards represent an important challenge for Romanian firms with a view of efficient integration into international market. Certified test and trial laboratories perform activities involving a severe rigor. It follows that it is necessarz to carry out and to make operational mathematival models in order to reduce uncertaintz of the results and to eliminate testing errors. This paper presents a flexible software able to give a solution to the quality control in a test and trial laboratory. This program can determine an optimal assignment of resources, i.e. an optimal assignment of staff per procedure and an optional assignment of procedures per apparatus. The criterion to be optimized is the minimization of every procedure cost. This way, it is possible to get a detailed analyze required by the quality management.