TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

TestNG

Enable TestNG in IntelliJ IDE

TestNG is bundled with there IntelliJ installation. In-case if its disabled in the IDE, we can enable the plugin using the below steps.

Steps to Enable

File >> Settings… >> Plugins

Click on the Installed tab.

Search for TestNG plugin.

 

TestNG Plugin IntelliJ

 

Adding TestNG to project

We can add the TestNG dependency to the Maven project. Its a one time step to configure the TestNG in the project.

Just add @Test annotation, click on the red bulb icon and click on the drop down.

Choose Add Maven dependency…

<dependencies>
 <dependency>
 <groupId>org.testng</groupId>
 <artifactId>testng</artifactId>
 <version>7.1.0</version>
 <scope>test</scope>
 </dependency>
</dependencies>

 

Maven would automatically download the latest TestNG jar artifact to the local repository ( .m2 directory).

 

Add TestNG to Project

 

Related Posts

Tests TestNG Suite testng.xml

TestNG /

Run tests from TestNG Suite testng.xml file

Add TestNG library

TestNG /

Add the TestNG library to the project

new TestNG class

TestNG /

Create TestNG test class in Eclipse IDE.

Installing Eclipse from Update Site

TestNG /

Install TestNG latest version from the update site

Before and After TestNG Annotations

TestNG /

TestNG Before and After Annotations

‹ Install TestNG latest version from the update site› Create TestNG test class in Eclipse IDE.

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com