The synthesis of the antenna pattern measurement and optics measurement is outlined to test the antenna beam alignment. This paper will discuss the application of alignment techniques and tools in the far-field and near-field test facility. Boresight of the antenna was measured by the standard alignment telescope together with the far field pattern test, while the new method to measure the antenna's beam alignment based on the planar near field method was also proposed. This method used the auto-collimator and porroprism with the antenna near-field planar scan test system. The boresight of Haiyang-2 satellite calibration radiometer antenna measurement results verified the validity and accuracy of this method. Both of these two methods can also be opplied to the common high gain antenna measurement.