My eclipse version: Mars.2 release (4.5.2), other versions are also available
Open Eclipse, click Help---Install New software
Click Add directly
Enter the name testng and URL http://beust.com/eclipse, click OK
For the first time, name will show pending ..., wait a few minutes, testng the download is complete, click Next
To confirm the next selection, click Next
Select Agree, click Finish
After clicking Finish, go to installation progress ↓
During the installation process, this warning may appear, do not appear this prompt is better, click OK
After the progress bar has gone, a restart Eclipse prompt will appear, click Yes
After restarting, open eclipse to see if the installation was successful
See if there is a testng in the Java directory, it means the installation is complete.
Add testng plug-in steps online in Eclipse (Networking required)