Reputation: 513
I was trying to install Eclipse testNG plugin, but it installed the latest version of testNG. Is it possible to install an older version?
Upvotes: 2
Views: 9587
Reputation: 1
Sometimes your project require specific versions of softwares. TestNG 7.4 supports Java 8. If your project runs on Java 8, then please download TestNG 7.4.0 or older.
Keep in mind that sometime your eclipse version also plays an important role. If your project runs on Java 8 and you are using an newer version of Eclipse. Then your project might give error while running.
Please check your Java version, Eclipse Version and TestNG Version compatibility if u want to run the project successfully.
If you want to download the older version of TestNG. For e.g. TestNG 7.4.0 then in Eclipse, Go to "Help > Install New Software > Add > Give name and Link (https://testng.org/testng-eclipse-update-site/7.4.0)
Some times due to the TestNG and java version incompatibility. You also don't get TestNG Option in Run As option. Perform above action and you will be ok to go. This will also solve issue of this thread: TestNG option not showing in RunAs option in Eclipse
Question: TestNG option not showing in RunAs option in Eclipse
Upvotes: 0
Reputation: 11075
As @manojadams stated, use the git-hub documentation to choose the eclipse update site for the version you want. The site doesn't list all versions, but for java 8, I had to roll back to version 7.4 to get TestNG to work.
Paste the ULR they provide into eclipse's Help->Install New Software 'Work With:' edit box.
Upvotes: 0