TestNG is an automated testing framework, more powerful than Junit, may be used for unit testing, functional testing, end to end testing, here we explain how to create a TestNG test based on IntelliJ IDEA?
Open IntelliJ IDEA -> Create New Project -> Next -> Next -> write the project name -> Finished
Open https://mvnrepository.com/artifact/org.testng/testng/7.0.0 download testng-7.0.0.jar file
File -> Project Structure... -> Modules -> Dependencies -> Add JARs or directories 添加testng-7.0.0.jar -> Apply -> OK
Create test cases
Add Configuration... -> Add New Configuration -> TestNG
Custom name TestNG -> select Test hydrocarbons such as TC1 -> OK
Listeners -> Use default reporters -> Apply -> OK
Run TestNG
running result