It will take some time to install TestNg in your machine, after successful installation restart your eclipse.

Step 8: Create a simple Java project. (File-->New--Java project)

Step 9: Give it any name you want to give (for example seleniumTest ). Under src folder of your project create new package.(Right click src-->package ). Name it testDemo (You can use any name for your package)