For 5G new radio (NR), there are two frequency bands: Frequency Range 1 (FR-1) (low frequency) and Frequency Range 2 (FR-2) (millimeter-wave frequency). Millimeter-wave has been officially utilized in mobile applications. The wide bandwidth is the key for the milli-meter-wave band. However, higher loss has become the major challenge for the wide use of this frequency range. Antenna array and beamforming technologies have been introduced to resolve the path loss and coverage problems. The key design considerations of the beamform-ing antenna array are low loss, compact system and small size. Antenna-in-package (AiP) has become the most attractive technology for millimeter-wave front-end system. For the design of AiP, many parameters such as RF transition, material and heat need to be considered and de-signed properly. The Over-the-Air (OTA) testing technology is also very critical for AiP mass production. In this paper, the detail of AiP design and new OTA testing technology are dis-cussed and demonstrated.