The invention discloses a method for testing the amplitude and phase of a TR module based on matrix gating. According to the invention, the method can noticeably reduce 
workload of test workers. The method is implemented by the following technical solutions: mounting a multipath matrix switch on a 
phased array radar antenna for receiving test signals, a frequency source inside a 
radar generating two paths of test signals, inputting a to-be-tested TR module and a feed 
branch through the matrix switch; a wave controller, according to a TR module receiving amplitude and phase testing command program by a 
radar terminal computer, superimposing amplitude and 
phase adjustment and 
frequency conversion information on the test signals, transmitting the test signals superimposed with the amplitude and phase information to a 
receiver connected thereto, the 
receiver transmitting the input signals to a 
signal processor connected thereto after conducting down-conversion and amplification on the input signals, the 
signal processor computing the amplitude values and the phase values of the test signals, the radar terminal computer comparing the actual amplitude values and the actual phase values with the theoretic amplitude value and the theoretic phase value, and determining whether the TR module and the feed 
branch are normal so as to acquire the phase shift and 
amplitude modulation error of the TR module. The aforementioned steps are continued until the completion of the testing of all TR assemblies and corresponding feed networks.