How to update IntelliJ Idea testng-plugin to testNG version 6.8 or latest version?


TestNG is an open−source automation testing framework. It can be used along with build tool such as maven, Gradle, ant and even with snapshot. However, user can separately download the TestNG jar file and configure it with the project without using build tool.

In this tutorial, we will see how to update IntelliJ IDEA testing−plugin to TestNG version 6.8 or latest TestNG jar.

Download latest TestNG jar

Following steps should be followed to download the latest/specific version of TestNG jar.

  • Open the browser and navigate to https://testng.org.

  • Once page opens, click on Download present at top.

The following screenshot displays testing.org page and download button.

It displays Current release Version along with how to use in build tools − maven, Gradle and Snapshot.

To download the TestNG jar, go to https://mvnrepository.com/. Search with TestNG at search bar.

The following screenshot displays how to search TestNG in maven repository:

Now, click on TestNG. It displays all available version to download. Then, click the latest version or any specific version to download as shown in below screenshot:

Now, click on Jar as shown in below screenshot to download the TestNg jar file.

Once the user clicks on it, it starts downloading and ready to configure.

Update testng plugin in intellij

Following steps should be followed to update the latest/specific version of TestNG in intellij idea.

  • After downloading the file, unzip it if it is a zip file else keep the jar file as it is.

  • Delete C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3\plugins\testng\lib<testng−version>.jar

  • Now, copy the testng−6.8.jar or other version or latest jar to the same location at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3\plugins\testng\lib\

OR, there is another way to update testng jar version in an existing project.

  • Navigate to File −> Project Structure

  • It opens Project Structure windows. Click on Modules.

  • Move to Dependencies as shown in below screenshot.

  • Click on + icon present at bottom and upload the latest testng jar.

  • After uploading make sure old jar version is unchecked while current jar version is checked.

  • After that, click on Apply and then OK. It will upgrade the testng to specific version.

This is how you can update IntelliJ IDEA testng−plugin to TestNG version 6.8 or latest.

Updated on: 17-Aug-2023

280 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements