The optical performances of the spectrometer assembly for the Ultraviolet Coronagraph Spectrometer of the Solar and Heliospheric Observatory mission have been tested. The flight unit of the spectrometer assembly, consisting of the structure equipped with the entrance slits assembly, the grating drive mechanisms mounting two toroidal gratings, and the photon-counting detectors, has been integrated and aligned; also the flight unit of the White Light Channel has been integrated and aligned in the spectrometer assembly. Tests with both visible and UV radiation have been performed. Aberration and stray-light measurements have shown that the instrument performs satisfactorily, almost in compliance with the scientific requirements; also some measurements of the polarimeter modulation curve and the relative error have shown performances within the specified requirements.