To
use TestNG Framework in Eclipse, First of all we have to install
it. Installation of TestNG software testing framework in
Eclipse is very easy process. As I described in my previous post, TestNG is
very powerful and easy to use framework and it is supported by tools
like Eclipse, Maven, IDEA, etc.. Here we are going to use TestNG
Framework with Eclipse so obviously you must have installed latest
Java development kit (JDK) software in your system and you must have Eclipse.
Once
you have installed JDK(Selenium Post-13) and Eclipse(Selenium Post-14) in your
system, You are ready to install TestNG in Eclipse. Bellow given steps will
describe you how to install TestNG in Eclipse.
TestNG Installation Steps In Eclipse
Step 1 : Open Eclipse and go to Menu Help -> Install New Software.
It will open new software installation window as shown in bellow given image.
Step 2 : In new software installation window, Type URL = http://beust.com/eclipse exactly in Work with field and click on Add button as shown in bellow given image.
It will show you option TestNG with check box. Select that check box and click on Next Button as shown in above image.
When you click on Next button, it will check for requirements and dependency first.
When
it completes requirement and dependency test, click on Next button. On Next
screen, it will ask you to accept TestNg terms and license agreement. Accept it
and click on Finish button as shown in bellow given image.
TestNG will take
few minutes to finish its installation when you click on finish button.
Step 3 : Now you need to verify that TestNG is installed in your eclipse or not.
To verify Go to Eclipse's Menu Window -> Show View -> Others as shown in bellow given image.
Step 3 : Now you need to verify that TestNG is installed in your eclipse or not.
To verify Go to Eclipse's Menu Window -> Show View -> Others as shown in bellow given image.
It will open Show View window. Expand java folder as shown in bellow given image and verify that TestNG is available inside it or not. If it is there means TestNG is installed successfully in eclipse.
No comments:
Post a Comment