TestNG is good framework
inspired by JUnit, It is having advanced features than JUnit. I tried to
install TestNG eclipse plugin to my Eclipse version of Juno. But I got some
hell errors. Finally I was failed to install that in online. Then I tried to
install that in offline. Initially I did some research on how to install TestNG
plugin in offline and I found different jars for different versions of eclipse
and some online forum users stated that they still getting some configuration
issues. Then I decided to build suitable version of TestNG plugin with my own
Eclipse. Follow the below procedure for successful installation
Download
TestNG Eclipse Plugin Project
Download
TestNG from the Github ( https://github.com/cbeust/testng-eclipse ).
Once you download the ZIP file, extract it. Now you can see testing-eclipse-plugin folder in it. This is the Eclipse
plugin project that we have to build.
Import
Eclipse Plugin Project
Open
your Eclipse
Click
on "File > Import"
Now select "General > Existing Projects into Workspace"
Now click on "Next"
Now select "General > Existing Projects into Workspace"
Now click on "Next"
Now
click on "Browse"
Now select
the folder "testing-eclipse-plugin"
Now
click on "ok"
Project will be created
Now right click on the project and click on "export"
Project will be created
Now right click on the project and click on "export"
Now
select "Plug-in Development > Deployable plug-ins and fragments"
Click
on "Next"
Now
click on "Browse" and select the target folder
Click
on "Finish"
Jar
will be generated as like shown in the below image
This is the plugin jar which we required
This is the plugin jar which we required
Now
copy this jar and paste in "dropins" folder of eclipse
Now restart the eclipse, Now you can see all TestNG options in active mode
Now restart the eclipse, Now you can see all TestNG options in active mode
No comments:
Post a Comment