Install EclEmma first: (http://liangruijun.blog.51cto.com/3061169/803473/)
1. Start eclipse---click the Help menu---Install New Software, in the pop-up dialog box, click Add
2. Enter a Name, such as EclEmma. Enter Location: http://update.eclemma.org/
3. Select the Location address you just entered at Work With
4. Restart eclipse after installation, if the installation is successful, a new button will appear on the toolbar
Then install TestNG, the installation method is similar to the above:
name:testng
location:http://beust.com/eclipse/
After installation, restart eclipse.