- Eclipse (the latest version, download it here. I used Eclipse Luna, which includes Maven support)
- Maven installed (instructions below)
1. Open a terminal
2. Enter the following classic command:
sudo apt-get install maven
3. Once the required files are downloaded and installed, type this in the console: mvn
If you see something like this:
sudo gedit ~/.bashrc
Note: Gedit is a text editor, very useful. If you don't have it yet, install it with: sudo apt-get install gedit
A text editor will be opened. Go to the bottom of the text and enter the following lines:
Of course, you need to set the path where you have Java installed. Now, save the file and type this in the console:
Try the command mvn again. It should be working now.
Installing Eclipse and testNG
1. Once you download the compressed Eclipse file, just extract it somewhere. Once you do that, double click the "eclipse" icon:
2. Go to Help > Eclipse Marketplace...
4. Click 'Install' in 'TestNG for Eclipse'
6. Select 'I accept the terms of the licence agreement' and click 'Finish'
7. Click 'OK' in the Security Warning dialog.
8. Restart Eclipse and that's it, you now have testNG integrated with Eclipse.
With that, you'll be ready for the next article.